[Clam-devel] puzzling segmentation fault

Pau Arumi parumi at iua.upf.edu
Tue Aug 14 10:49:13 PDT 2007


Here goes a patch with the RunTimeLibraryLoader refactoring. It
makes segfault NetworkEditor this way.
If I remove the static AutomaticRunTimeLibraryLoader object then it
doesn't. What puzzles me is the place where it crashes.
Anyway, I'm sending this mostly to discuss on irc

pau

[CLAM Plugins] Looking at path 
'/home/parumi/patchedClam/CLAM/plugins/spacialization/'

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1257765168 (LWP 31239)]
0xb652ba97 in std::_List_node_base::hook () from 
/usr/lib/libstdc++.so.6
(gdb) bt
#0  0xb652ba97 in std::_List_node_base::hook () from 
/usr/lib/libstdc++.so.6
#1  0x081546b1 in 
CLAM::Factory<CLAM::Processing>::Registry::AddAttribute 
(this=0xb7f32338, key=@0xbf908a38, attribute=@0xbf908a34,
     value=@0xbf908a30) at 
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h:1140
#2  0xb7edfbae in CLAM::Factory<CLAM::Processing>::AddAttribute 
(this=0xb7f32338, key=@0xbf908a38, attribute=@0xbf908a34,
     value=@0xbf908a30) at scons/libs/core/include/CLAM/Factory.hxx:195
#3  0xb505b564 in FactoryRegistrator (this=0xb507fc01, 
metadata=0xb507c50c) at 
/home/parumi/plocal/include/CLAM/Factory.hxx:460
#4  0xb505a984 in __static_initialization_and_destruction_0 
(__initialize_p=<value optimized out>, __priority=<value optimized 
out>)
     at MyFFT.cxx:40
#5  0xb505bd56 in __do_global_ctors_aux () from 
/home/parumi/patchedClam/CLAM/plugins/spacialization//libplugins_specialization.so
#6  0xb5009c75 in _init () from 
/home/parumi/patchedClam/CLAM/plugins/spacialization//libplugins_specialization.so
-------------- next part --------------
A non-text attachment was scrubbed...
Name: run-time-library-loader-refactoring-SEGFAULT.patch
Type: text/x-diff
Size: 12734 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070814/2ba9f3c4/attachment-0003.patch>


More information about the clam-devel mailing list