Boost log uses all inodes if file system is full

Bug #1421060 reported by Michi Henning
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Unassigned
unity-scopes-api (Ubuntu)
Fix Released
High
Michi Henning

Bug Description

boost::log, if file rotation happens while the file system is full, creates hundreds of empty log files per log directory, eventually consuming all available inodes.

But reported here: https://svn.boost.org/trac/boost/ticket/11016

We need to track this.

Related branches

Changed in unity-scopes-api (Ubuntu):
importance: Undecided → High
affects: unity-scopes-api (Ubuntu) → canonical-devices-system-image
Changed in unity-scopes-api (Ubuntu):
importance: Undecided → High
Revision history for this message
Michi Henning (michihenning) wrote :

The boost log maintainer has published a fix that partially fixes the problem. Instead of losing thousands of inodes, we now only lose dozens. But, even once a complete fix is done, it won't become available to us until boost 1.58.

Is it worth cherry-picking the eventual fix and shipping our own patched version of libboost_log?

Note that the problem appears only once /home is full. But, once full, we are losing inodes very rapidly (potentially many thousands per minute while scopes are active).

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

I say yes to cherry picking a fix

Revision history for this message
Michi Henning (michihenning) wrote :

Pat, can you help here? I can prepare a diff against the boost 1.55 source once the maintainer has finalised the fix. But I don't know what to do to get the patched boost log into the archives.

Changed in unity-scopes-api (Ubuntu):
assignee: nobody → Michi Henning (michihenning)
status: New → In Progress
Revision history for this message
Michi Henning (michihenning) wrote :

The linked branch implements a work-around for the bug in boost log. This means we won't need a patched boost log lib.

Also, I don't think system image is affected because the RTM release does not use boost log. (We added that functionality later.)

Pat, I think this means that Canonical System Image is not affected. If you agree could you remove it from the bug?

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

good to know, can track it here for vivid as well

Changed in canonical-devices-system-image:
milestone: none → ww11-2015
status: New → In Progress
Changed in unity-scopes-api (Ubuntu):
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Changed in unity-scopes-api (Ubuntu):
status: Fix Committed → Fix Released
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.