Hi!
Appears to be difficult to make a short example, working on
that right now. In the meanwhile here is the backtrace of the crash:
#0
0x0000000100004777 in H5::DataType::DataType () at singleton.hpp:149
#1 0x00000001000049d3 in H5::AtomType::AtomType () at singleton.hpp:149
#2
0x0000000100004a53 in H5::PredType::PredType () at singleton.hpp:149
#3
0x0000000100002a83 in __static_initialization_and_
Sebastian Weber wrote:
> Hi!
>
> I am experiencing quite odd errors with the serialization library: My
> program compiles fine, but crashes when static constants are
> declared, i.e. before the program even starts with main(). The
> debugger tells me that some singleton declared in the seralization
> library conflicts:
>
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
> 0x0000000100003aaf in H5::DataType::DataType () at singleton.hpp:149
> 149 BOOST_DLLEXPORT T & singleton<T>::instance =
> singleton<T>::get_instance();
>
> Any suggestions would be great here.How about including the smallest example you can make which demostrates the problem?>What makes it even harder to
> understand is the fact that the exact same code runs perferctly on a
> Linux machine, whereas the crash is on MacOS 10.6. My setup here is a
> boost 1.43.0 compiled with gcc 4.5 from pacports (or apples gcc 4.2,
> no difference).
>
> It seems that the singleton does things which are not allowed on a
> 10.6 MacOS machine...
>
> Many thanks for help,You're welcome.Robert Ramey
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users