On 12/01/2016 06:44 PM, Enrico Forestieri wrote:
> On Thu, Dec 01, 2016 at 07:50:19PM +0100, Enrico Forestieri wrote:
>
>> 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:
> Bisect points at a36706c3.

Thanks for finding it. Here's the backtrace again:

#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

I suspect that the problem is that GuiViewSource::bv_ is invalid.

Richard


Reply via email to