|
Boost : |
Subject: [boost] [Serialization] seg fault with BOOST_CLASS_EXPORT
From: fab (fabien.castan.dev_at_[hidden])
Date: 2010-02-01 16:10:00
Hi,
Simply by adding BOOST_CLASS_EXPORT(MyClass), all executables, unit
tests, etc. which compile with this class failed at the end of the
execution with a seg fault. All the process is done but the application
exit with a seg fault.
I encounter this problem with some classes and not with others... I
don't understand where the error comes from and I don't arrived to
reproduce on a simple test.
Best regards,
Fabien Castan
Program received signal SIGSEGV, Segmentation fault.
strcmp () at ../sysdeps/i386/i686/strcmp.S:40
40 ../sysdeps/i386/i686/strcmp.S: Aucun fichier ou dossier de ce type.
in ../sysdeps/i386/i686/strcmp.S
Current language: auto
The current source language is "auto; currently asm".
(gdb) bt
#0 strcmp () at ../sysdeps/i386/i686/strcmp.S:40
#1 0x004ed2c1 in
boost::serialization::extended_type_info::key_unregister() () from
/usr/lib/libboost_serialization.so.1.40.0
#2 0x004ed3e4 in
boost::serialization::extended_type_info::~extended_type_info() () from
/usr/lib/libboost_serialization.so.1.40.0
#3 0x004edc98 in
boost::serialization::detail::extended_type_info_typeid_0::~extended_type_info_typeid_0()
()
from /usr/lib/libboost_serialization.so.1.40.0
#4 0x0805861b in
boost::serialization::extended_type_info_typeid<tuttle::host::ofx::attribute::OfxhClipDescriptor>::~extended_type_info_typeid()
(
this=0x8189470) at
/usr/include/boost/smart_ptr/detail/shared_count.hpp:221
#5 0x080586e5 in
boost::serialization::detail::singleton_wrapper<boost::serialization::extended_type_info_typeid<tuttle::host::ofx::attribute::OfxhClipDescriptor>
>::~singleton_wrapper() (this=0x8189470) at
/usr/include/boost/smart_ptr/detail/shared_count.hpp:221
#6 0x0054f05f in __run_exit_handlers (status=0, listp=0x661304,
run_list_atexit=true) at exit.c:78
#7 0x0054f0cf in *__GI_exit (status=0) at exit.c:100
#8 0x00536b5e in __libc_start_main (main=0x80561fa <main>, argc=1,
ubp_av=0xbffff3a4, init=0x8126f80 <__libc_csu_init>, fini=0x8126f70
<__libc_csu_fini>,
rtld_fini=0x198d20 <_dl_fini>, stack_end=0xbffff39c) at libc-start.c:252
#9 0x08052501 in _start () at ../sysdeps/i386/elf/start.S:119
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk