>>>>> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Abdelrazak> The only thing to do is to debug step to step and verify Abdelrazak> that 'data' are passed correctly in initialiseParams(). Abdelrazak> You should start by putting a breakpoint at Abdelrazak> ControlToc::initialiseParams() and continue step by step Abdelrazak> from there. I think that the problem is that the QToc thingy has not been properly allocated. See the following gbb session snippet. Note that lfun_name_ value is 0x0, which is AFAIK not possible with a properly initialized object. Valgrind does not detect anything unfortunately. What else do you want to know? JMarc Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1221152096 (LWP 7237)] operator!=<char, std::char_traits<char>, std::allocator<char> > ( [EMAIL PROTECTED], [EMAIL PROTECTED]) at basic_string.h:265 265 { return &((reinterpret_cast<_Rep*> (_M_data()))[-1]); } (gdb) bt 8 #0 operator!=<char, std::char_traits<char>, std::allocator<char> > ( [EMAIL PROTECTED], [EMAIL PROTECTED]) at basic_string.h:265 #1 0x0875582f in lyx::InsetCommandMailer::string2params ([EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]) at ../../../lyx-devel/src/insets/insetcommand.C:201 #2 0x08b0ef3f in lyx::frontend::ControlCommand::initialiseParams ( this=0x9357d18, [EMAIL PROTECTED]) at ../../../../lyx-devel/src/frontends/controllers/ControlCommand.C:35 #3 0x08b56a22 in lyx::frontend::ControlToc::initialiseParams (this=0x93526c0, [EMAIL PROTECTED]) at ../../../../lyx-devel/src/frontends/controllers/ControlToc.C:54 #4 0x08a3722c in lyx::frontend::QToc::initialiseParams (this=0x93526b8, [EMAIL PROTECTED]) at ../../../../lyx-devel/src/frontends/qt4/QToc.C:112 #5 0x08a7929d in lyx::frontend::Dialog::show (this=0x920fe90, [EMAIL PROTECTED]) at ../../../../lyx-devel/src/frontends/controllers/Dialog.C:80 #6 0x08870d04 in lyx::Dialogs::show (this=0x9096ff0, [EMAIL PROTECTED], [EMAIL PROTECTED], inset=0x9357d18) at ../../../lyx-devel/src/frontends/Dialogs.C:118 #7 0x084161af in lyx::LyXFunc::dispatch (this=0x8fbf610, [EMAIL PROTECTED]) at LyXView.h:139 (More stack frames follow...) (gdb) frame 4 #4 0x08a3722c in lyx::frontend::QToc::initialiseParams (this=0x93526b8, [EMAIL PROTECTED]) at ../../../../lyx-devel/src/frontends/qt4/QToc.C:112 112 if (!ControlToc::initialiseParams(data)) (gdb) p this->lfun_name_ $1 = {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x0}}