isis-group / isis

The ISIS project aims to provide a framework to access a large variety of image processing libraries written in different programming languages and environments.
GNU General Public License v3.0
17 stars 14 forks source link

segfault when linked statically #37

Closed DerOrfa closed 12 years ago

DerOrfa commented 12 years ago

if isiscore is linked statically, the cleanup when after normal execution causes a segfault in PropMap/treeNode.

Program received signal SIGSEGV, Segmentation fault.
0x000000000040f3c8 in boost::checked_delete<isis::util::_internal::ValueBase> (x=0x618640) at /usr/include/boost/checked_delete.hpp:34
34          delete x;
(gdb) bt
#0  0x000000000040f3c8 in boost::checked_delete<isis::util::_internal::ValueBase> (x=0x618640) at /usr/include/boost/checked_delete.hpp:34
#1  0x000000000040ea09 in boost::scoped_ptr<isis::util::_internal::ValueBase>::~scoped_ptr (this=0x702800, __in_chrg=<value optimized out>)
    at /usr/include/boost/smart_ptr/scoped_ptr.hpp:80
#2  0x000000000040e7f8 in isis::util::_internal::ValueReference<isis::util::_internal::ValueBase>::~ValueReference (this=0x702800, __in_chrg=<value optimized out>)
    at /buildfarm/resources/src/isis/lib/Core/DataStorage/../CoreUtils/generic_type.hpp:84
#3  0x000000000040e812 in isis::util::PropertyValue::~PropertyValue (this=0x702800, __in_chrg=<value optimized out>)
    at /buildfarm/resources/src/isis/lib/Core/DataStorage/../CoreUtils/property.hpp:38
#4  0x00007ffff77f3b00 in std::_Destroy<isis::util::PropertyValue> (__pointer=0x702800) at /usr/include/c++/4.5/bits/stl_construct.h:89
#5  0x00007ffff77f326d in std::_Destroy_aux<false>::__destroy<isis::util::PropertyValue*> (__first=0x702800, __last=0x702810) at /usr/include/c++/4.5/bits/stl_construct.h:99
#6  0x00007ffff77f1d7c in std::_Destroy<isis::util::PropertyValue*> (__first=0x702800, __last=0x702810) at /usr/include/c++/4.5/bits/stl_construct.h:122
#7  0x00007ffff77f0613 in std::_Destroy<isis::util::PropertyValue*, isis::util::PropertyValue> (__first=0x702800, __last=0x702810)
    at /usr/include/c++/4.5/bits/stl_construct.h:148
#8  0x00007ffff77ef07a in std::vector<isis::util::PropertyValue, std::allocator<isis::util::PropertyValue> >::~vector (this=0x7ffff7ddbc30, __in_chrg=<value optimized out>)
    at /usr/include/c++/4.5/bits/stl_vector.h:313
#9  0x00007ffff77f30d9 in isis::util::_internal::treeNode::~treeNode (this=0x7ffff7ddbc00, __in_chrg=<value optimized out>)
    at /buildfarm/resources/src/isis/lib/Core/DataStorage/../CoreUtils/propmap.hpp:431
#10 0x00007ffff59f9d3d in __cxa_finalize (d=0x7ffff7dda8e8) at cxa_finalize.c:56
#11 0x00007ffff77ba906 in __do_global_dtors_aux () from /usr/lib/libisis_core.so.0.4.0
#12 0x0000000000000000 in ?? ()