This only occurs with 2.2.3dev (not with 2.2.2, nor with 2.3.0dev):

1) Start lyx, make sure the source pane is closed
2) File->New
3) View->Source Pane
4) View->Source Pane
5) File->Close
6) File->New
7) View->Source Pane

Now lyx segfaults:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5f3f280 in std::string::empty() const ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0  0x00007ffff5f3f280 in std::string::empty() const ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x0000000000511413 in lyx::BufferParams::getDefaultOutputFormat (this=0x8)
    at ../../src/BufferParams.cpp:2524
#2  0x0000000000510f7a in lyx::BufferParams::getOutputFlavor (this=0x8, 
    format="default") at ../../src/BufferParams.cpp:2474
#3  0x000000000097b121 in lyx::frontend::ViewSourceWidget::currentFormatName (
    this=0x1b73930) at ../../../../src/frontends/qt4/GuiViewSource.cpp:316
#4  0x000000000097c38e in lyx::frontend::GuiViewSource::updateTitle (
    this=0x1b5d880) at ../../../../src/frontends/qt4/GuiViewSource.cpp:456
#5  0x000000000097c34e in lyx::frontend::GuiViewSource::initialiseParams (
    this=0x1b5d880) at ../../../../src/frontends/qt4/GuiViewSource.cpp:449
#6  0x00000000009c5fa0 in lyx::frontend::Dialog::showData (this=0x1b5d8b0, 
    data="") at ../../../../src/frontends/qt4/Dialog.cpp:138
#7  0x000000000096b259 in lyx::frontend::GuiView::doShowDialog (
    this=0x18ea5f0, qname=..., qdata=..., inset=0x0)
    at ../../../../src/frontends/qt4/GuiView.cpp:4278
#8  0x000000000096c0b3 in lyx::frontend::GuiView::qt_static_metacall (
    _o=0x18ea5f0, _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0x7fffffffae50)
    at ./moc_GuiView.cpp:143
#9  0x00007ffff6429c46 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/local/qt/5.7.0/lib/libQt5Core.so.5
#10 0x000000000096c3a7 in lyx::frontend::GuiView::triggerShowDialog (
    this=0x18ea5f0, _t1=..., _t2=..., _t3=0x0) at ./moc_GuiView.cpp:220

-- 
Enrico

Reply via email to