[Debtags-devel] Segfaults when destructing Debtags::Vocabualry for the second time

Benjamin Mesing bensmail@gmx.net
Sun, 13 Mar 2005 20:35:26 +0100


>         void DebtagsSettingsWidget::init( const set<string>& hiddenFacets )
>         {
>         	Debtags::Vocabulary vocabulary = Debtags::Environment::get().vocabulary();
>         }
> 
> Calling it once is fine, but calling it a second time leads to a segfault.
> 
> Any ideas which changes in the library might cause this behaviour? Any workaround?

Sorry, forgot to attach the backtrace:

#0  0x00000330 in ?? ()
#1  0x401d5a4f in Tagcoll::DerivedTagList::~DerivedTagList () from /usr/lib/libtagcoll.so.0
#2  0x41cedef8 in ~Vocabulary (this=0xbfffe860) at debtagssettingswidget.ui.h:68
#3  0x41cec094 in DebtagsSettingsWidget::init (this=0xacf14c0, hiddenFacets=@0xa9c4544) at debtagssettingswidget.ui.h:71
#4  0x41cd628d in NPlugin::DebtagsPluginContainer::getSettingsWidget (this=0xa9c44b8, pParent=0xbfffe970) at debtagsplugincontainer.cpp:140
#5  0x080a2e20 in NPlugin::PluginSettingsDlg::addPlugin (this=0xbfffe970, pPluginContainer=0xa9c44e0) at pluginsettingsdlg.cpp:50
....