Hi,

   I'd created a ticket for this a few days ago but I should have emailed this 
list first.

    http://www.lyx.org/trac/ticket/6564

  Since filing this report I have discovered a little more and hence the issue 
title is more restricted than the bug itself. Basically, when using the left 
arrow key to back out of an inline math formula inset that is by itself in a 
table cell, I get a crash.

   Also, in an eqnarray, I get this crash when backing out of a cases env. in 
some cell. Looks like there is an issue when nesting table-like env.

    My GDB backtrace shows that this error happens at the same location in 
InsetMathGrid::getStatus()  (InsetMathGrid.cpp:1424) code path in either of 
the above cases is different (obviously). It seems to be due to an 
out-of-bounds access on a column-info container.

Platform: KUbuntu 8.04 / i686

---------------------------------------------------------
Backtrace from text-mode table case
---------------------------------------------------------
#5  0xb66f3831 in lyx::doAssert (expr=0xb7d759c2 "asInsetMath()", 
file=0xb7d7594e "../../src/CursorSlice.cpp", line=79)
    at ../../../src/support/lassert.cpp:23
#6  0xb7b3958f in lyx::CursorSlice::row (this=0x89e59c0) 
at ../../src/CursorSlice.cpp:79
#7  0xb7b51eeb in lyx::DocIterator::row (this=0xbffefac0) 
at ../../src/DocIterator.cpp:250
#8  0xb74f7ffc in lyx::InsetMathGrid::getStatus (this=0x89fd0f8, 
c...@0xbffefac0, c...@0x831c710, stat...@0xbffefdd8)
    at ../../src/mathed/InsetMathGrid.cpp:1424
#9  0xb751d280 in lyx::InsetMathHull::getStatus (this=0x89fd0f8, 
c...@0xbffefac0, c...@0x831c710, stat...@0xbffefdd8)
    at ../../src/mathed/InsetMathHull.cpp:1540
#10 0xb7b325c4 in lyx::Cursor::getStatus (this=0x865e670, c...@0x831c710, 
stat...@0xbffefdd8) at ../../src/Cursor.cpp:289
#11 0xb7abd7e9 in lyx::BufferView::getStatus (this=0x865e5d0, c...@0x831c710, 
fl...@0xbffefdd8) at ../../src/BufferView.cpp:961
#12 0xb6b41788 in lyx::frontend::GuiApplication::getStatus (this=0x814ded8, 
c...@0x831c710)
    at ../../../../src/frontends/qt4/GuiApplication.cpp:996
#13 0xb7c29b41 in lyx::getStatus (acti...@0x831c710) at ../../src/LyX.cpp:1148
---------------------------------------------------------


---------------------------------------------------------
Backtrace from eqnarray case
---------------------------------------------------------
#4  0xb7537478 in std::__debug::vector<lyx::InsetMathGrid::RowInfo, 
std::allocator<lyx::InsetMathGrid::RowInfo> >::operator[] (
    this=0x8995770, __n=2) at /usr/include/c++/4.2/debug/vector:205
#5  0xb752a04e in lyx::InsetMathGrid::getStatus (this=0x8995748, 
c...@0xbfacaed0, c...@0x831cb8c, stat...@0xbfacb1e8)
    at ../../src/mathed/InsetMathGrid.cpp:1424
#6  0xb75119af in lyx::InsetMathCases::getStatus (this=0x8995748, 
c...@0xbfacaed0, c...@0x831cb8c, fl...@0xbfacb1e8)
    at ../../src/mathed/InsetMathCases.cpp:126
#7  0xb7b645c4 in lyx::Cursor::getStatus (this=0x86db358, c...@0x831cb8c, 
stat...@0xbfacb1e8) at ../../src/Cursor.cpp:289
#8  0xb7aef7e9 in lyx::BufferView::getStatus (this=0x86db2b8, c...@0x831cb8c, 
fl...@0xbfacb1e8) at ../../src/BufferView.cpp:961
#9  0xb6b73788 in lyx::frontend::GuiApplication::getStatus (this=0x814ded8, 
c...@0x831cb8c)
    at ../../../../src/frontends/qt4/GuiApplication.cpp:996
#10 0xb7c5bb41 in lyx::getStatus (acti...@0x831cb8c) at ../../src/LyX.cpp:1148
---------------------------------------------------------


Thanks,
Manoj

Reply via email to