Abdelrazak Younes wrote: > > #2 0x0000000000c92810 in lyx::frontend::ControlToc::initialiseParams ( > > this=0x7fff124878d0, [EMAIL PROTECTED]) at ControlToc.C:54 > > I wonder why data is suddenly wrong whereas it is fine there: > > #3 0x0000000000c0d42e in lyx::frontend::Dialog::show (this=0x1f7a1b0, > > [EMAIL PROTECTED]) at Dialog.C:80 > > I suspect a gcc bug here... please copy data to a temporary data2 here > and pass it to ControlCommand::initialiseParams(). If there is no crash > gcc is at fault here. Maybe we've reached the maximum number of const > reference allowable?
Did this, it still crashes. The value of data at this place is "toc LatexCommand tableofcontents", btw. Here's the backtrace: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 47774381565120 (LWP 24872)] lyx::InsetCommandMailer::string2params ([EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]) at /usr/include/c++/4.1.2/bits/basic_string.h:591 591 { return _M_rep()->_M_length; } (gdb) bt #0 lyx::InsetCommandMailer::string2params ([EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]) at /usr/include/c++/4.1.2/bits/basic_string.h:591 #1 0x0000000000c61443 in lyx::frontend::ControlCommand::initialiseParams ( this=<value optimized out>, [EMAIL PROTECTED]) at ControlCommand.C:35 #2 0x0000000000c94360 in lyx::frontend::ControlToc::initialiseParams ( this=0x7fff585f18c0, [EMAIL PROTECTED]) at ControlToc.C:54 #3 0x0000000000c0f0fa in lyx::frontend::Dialog::show (this=0x15962a0, [EMAIL PROTECTED]) at Dialog.C:84 #4 0x0000000000a38b13 in lyx::Dialogs::show (this=0x1478fd0, [EMAIL PROTECTED], [EMAIL PROTECTED], inset=0x0) at Dialogs.C:118 #5 0x00000000006f3975 in lyx::LyXFunc::dispatch (this=0x141f8d0, [EMAIL PROTECTED]) at lyxfunc.C:1102 #6 0x00000000006bfc54 in lyx::dispatch ([EMAIL PROTECTED]) at lyx_main.C:1450 #7 0x0000000000a408b6 in lyx::LyXView::dispatch (this=0x15e4048, [EMAIL PROTECTED]) at LyXView.C:441 #8 0x0000000000bfa01f in lyx::frontend::Action::action ( this=<value optimized out>) at Action.C:98 #9 0x0000000000bfa05a in lyx::frontend::Action::qt_metacall (this=0x1d8a3b0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=<value optimized out>) at Action_moc.cpp:64 #10 0x00002b735483045b in QMetaObject::activate (sender=0x1d8a3b0, from_signal_index=5, to_signal_index=6, argv=0x1f45778) ---Type <return> to continue, or q <return> to quit--- at kernel/qobject.cpp:2940 #11 0x00002b7352832897 in QAction::triggered (this=0x7fff585f18c0, _t1=false) at .moc/release-shared/moc_qaction.cpp:208 #12 0x00002b735283333d in QAction::activate (this=0x1d8a3b0, event=<value optimized out>) at kernel/qaction.cpp:1070 #13 0x00002b7352af79d0 in QMenuPrivate::activateAction (this=0x1539860, action=0x1d8a3b0, action_e=QAction::Trigger) at widgets/qmenu.cpp:751 #14 0x00002b735287d178 in QWidget::event (this=0x1539f50, event=0x7fff585f4700) at kernel/qwidget.cpp:5698 #15 0x00002b7352af524b in QMenu::event (this=0x1539f50, e=0x7fff585f4700) at widgets/qmenu.cpp:1896 #16 0x00002b735283853c in QApplicationPrivate::notify_helper (this=0x1423b20, receiver=0x1539f50, e=0x7fff585f4700) at kernel/qapplication.cpp:3434 #17 0x00002b735283aad1 in QApplication::notify (this=0x1425290, receiver=0x1539f50, e=0x7fff585f4700) at kernel/qapplication.cpp:3133 #18 0x00002b735288d151 in QETWidget::translateMouseEvent (this=0x1539f50, event=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:186 #19 0x00002b735288b72a in QApplication::x11ProcessEvent (this=0x136, event=0x7fff585f4bd0) at kernel/qapplication_x11.cpp:2850 #20 0x00002b73528ace65 in x11EventSourceDispatch (s=0x142baf0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:122 #21 0x00002b7354af2f94 in g_main_context_dispatch () ---Type <return> to continue, or q <return> to quit--- from /opt/gnome/lib64/libglib-2.0.so.0 #22 0x00002b7354af5dc5 in g_main_context_prepare () from /opt/gnome/lib64/libglib-2.0.so.0 #23 0x00002b7354af62ee in g_main_context_iteration () from /opt/gnome/lib64/libglib-2.0.so.0 #24 0x00002b7354840c30 in QEventDispatcherGlib::processEvents (this=0x1429910, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:363 #25 0x00002b73528acc7f in QGuiEventDispatcherGlib::processEvents ( this=0x7fff585f18c0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:178 #26 0x00002b735481f6b8 in QEventLoop::processEvents ( this=<value optimized out>, flags=<value optimized out>) at kernel/qeventloop.cpp:126 #27 0x00002b735481f7c9 in QEventLoop::exec (this=0x7fff585f4f50, [EMAIL PROTECTED]) at kernel/qeventloop.cpp:172 #28 0x00002b73548219c0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:727 #29 0x0000000000ae3919 in lyx::frontend::GuiApplication::exec ( this=<value optimized out>) at GuiApplication.C:152 #30 0x00000000006ce368 in lyx::LyX::exec (this=0x7fff585f6160, argc=<value optimized out>, argv=<value optimized out>) at lyx_main.C:462 #31 0x0000000000429fef in main (argc=1, argv=0x7fff585f6278) at main.C:48 Jürgen