Boost logo

Boost Users :

From: Chiedo Acholonu (chiedo_at_[hidden])
Date: 2005-08-17 11:53:27


I built the boost.signals library using bjam and am trying to use it
in an xcode project named TestSignals. The project only consists of
the signals library and the maximum.cpp example file
(boost-root/libs/signals/example/maximum.cpp). The project builds but
it crashes with a SIGBUS signal 10 when run. This only happens with
the dynamic version of signals. I have defined BOOST_SIGNALS_DYN_LINK
and built the library multithreaded, so I'm not sure what I'm doing
wrong. I'm running OS X 10.4.2 with Xcode 2.1.

Here is a snippet of the crash log (I can post the rest on request):

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0 maximum.ob 0x0040c824
std::less<int>::operator()(int const&, int const&) const + 48
(stl_function.h:227)
1 maximum.ob 0x0040e0d8
boost::signals::detail::any_bridge_compare<std::less<int>,
int>::operator()(boost::any const&, boost::any const&) const + 364
(named_slot_map.hpp:62)
2 maximum.ob 0x0040e148
boost::detail::function::function_obj_invoker2<boost::signals::detail::any_bridge_compare<std::less<int>,
int>, bool, boost::any,
boost::any>::invoke(boost::detail::function::any_pointer, boost::any,
boost::any) + 76 (function_template.hpp:119)

Any help would be much appreciated.
Chiedo


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