Boost logo

Boost Users :

From: Sebastian Weber (sebastian.weber_at_[hidden])
Date: 2008-04-07 09:49:58


Hi Peter!

bind_test passes for my compiler. I actually cannot sent you a senseful
backtrace, since the compilation in debugging mode always yields a
executable which works as it should (even though optimizations are on).
Only compiling in release mode with -Ox x>0 yields a crashing
executable. Seems like a gcc bug to me, but I thought some Problems like
this are known. Attached is the affected code.

Greetings,

Sebastian Weber

On Mon, 2008-04-07 at 14:38 +0300, Peter Dimov wrote:
> Sebastian Weber:
>
> > Hello,
> >
> > I'm using boost::bind to bind some member function of class two
> > arguments, making it a nullary function call. If I compile things with
> > any optimizations, then the resulting code causes seg-faults. Without
> > optimizations, everything is fine. Any ideas? Some possible workaround?
> > BTW, boost::lambda::bind results in the same behavior.
> >
> > My versions: gcc 4.1.3 on ubuntu gutsy, boost 1.35.0
>
> Can you please post the code? Does bind_test.cpp (in libs/bind/test) work
> when compiled with optimizations, or does it segfault too? Can you post a
> backtrace of the crash?
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net