isis-group/isis — Issue #37: segfault when linked statically
Author: DerOrfa
Created: 2011-11-16 15:18:05+00:00
State: open

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

```
Program received signal SIGSEGV, Segmentation fault.
0x000000000040f3c8 in boost::checked_delete (x=0x618640) at /usr/include/boost/checked_delete.hpp:34
34 delete x;
(gdb) bt
#0 0x000000000040f3c8 in boost::checked_delete (x=0x618640) at /usr/include/boost/checked_delete.hpp:34
#1 0x000000000040ea09 in boost::scoped_ptr::~scoped_ptr (this=0x702800, __in_chrg=)
at /usr/include/boost/smart_ptr/scoped_ptr.hpp:80
#2 0x000000000040e7f8 in isis::util::_internal::ValueReference::~ValueReference (this=0x702800, __in_chrg=)
at /buildfarm/resources/src/isis/lib/Core/DataStorage/../CoreUtils/generic_type.hpp:84
#3 0x000000000040e812 in isis::util::PropertyValue::~PropertyValue (this=0x702800, __in_chrg=)
at /buildfarm/resources/src/isis/lib/Core/DataStorage/../CoreUtils/property.hpp:38
#4 0x00007ffff77f3b00 in std::_Destroy (__pointer=0x702800) at /usr/include/c++/4.5/bits/stl_construct.h:89
#5 0x00007ffff77f326d in std::_Destroy_aux::__destroy (__first=0x702800, __last=0x702810) at /usr/include/c++/4.5/bits/stl_construct.h:99
#6 0x00007ffff77f1d7c in std::_Destroy (__first=0x702800, __last=0x702810) at /usr/include/c++/4.5/bits/stl_construct.h:122
#7 0x00007ffff77f0613 in std::_Destroy (__first=0x702800, __last=0x702810)
at /usr/include/c++/4.5/bits/stl_construct.h:148
#8 0x00007ffff77ef07a in std::vector >::~vector (this=0x7ffff7ddbc30, __in_chrg=)
at /usr/include/c++/4.5/bits/stl_vector.h:313
#9 0x00007ffff77f30d9 in isis::util::_internal::treeNode::~treeNode (this=0x7ffff7ddbc00, __in_chrg=)
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 ?? ()
```