program segfaults without upstream fix

Bug #62202 reported by Aristid Breitkreuz
6
Affects Status Importance Assigned to Milestone
boost (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: libboost-dev

A program of mine crashes with a segmentation fault if this patch is not applied to /usr/include/boost/any.hpp from libboost-dev 1.33.1:

http://boost.cvs.sourceforge.net/boost/boost/boost/any.hpp?r1=1.11&r2=1.11.2.1&view=patch

This bug is an obvious trivial typo that slipped through for more than a year because it occurs in an extremely rare situation.

Revision history for this message
Aristid Breitkreuz (aribrei) wrote :

Minimal example part 1

Compile this with

g++ -fvisibility=hidden -fPIC -shared -o test2.so test2.cpp

Revision history for this message
Aristid Breitkreuz (aribrei) wrote :

Minimal example part 2

After having compiled part 1, compile this one like this:

g++ test2.so test.cpp

Then run
./a.out

Revision history for this message
Malcolm Parsons (malcolm-parsons) wrote :

The program crashes.

Changed in boost:
status: Unconfirmed → Confirmed
Revision history for this message
Matti Lindell (mlind) wrote :

This should be fixed on Edgy, boost 1.33.1-7ubuntu1.

Changed in boost:
status: Confirmed → 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.