On Thu, 4 Feb 1999, Garst R. Reese wrote:

> Bob McElrath wrote:
> > 
> > Lyx 1.0.0 (and all pre versions that I've tried) crash when I try to load
> > some documents created with 0.12.  Here's the backtrace:
>  
> > Attached is the document that caused this crash.  This is on a:
> > (0)<mcelrath@draal:/home/mcelrath> uname -a
> > Linux draal.physics.wisc.edu 2.2.1-ac1 #18 Wed Feb 3 11:57:20 CST 1999 alpha 
>unknown
> > 
> > thanks!
> > -- Bob
> I can't reproduce this on a pentium, linux-2.2.1, teTeX-9, glibc-2.0.112
> Maybe the rest of the talk would help :)

Hmmm...likely an alpha-specific problem then.  I'm using egcs 1.1.1 on an
alpha LX164, 533MHz (compiled lyx myself...not from RPM or deb).  Know of
anywhere in your math code <off the top of your head> that you assume
sizeof(long) == sizeof(int) == sizeof(void*)? Because it isn't on
alpha...longs and pointers are 64 bit.

Anyway, here's another crash:

Program received signal SIGSEGV, Segmentation fault.
MathedXIter::Next (this=0x120364778) at math_iter.C:582
582           w = px->Width();
(gdb) bt
#0  MathedXIter::Next (this=0x120364778) at math_iter.C:582
#1  0x12012e5d8 in MathedXIter::Prev (this=0x120364778) at math_iter.C:663
#2  0x120147bd8 in MathedCursor::Insert (this=0x120423f10, p=0x1204232f0,
t=6)
    at math_cursor.C:420
#3  0x12014883c in MathedCursor::Interpret (this=0x120423f10, s=0x11fffb6b0
"^")
    at math_cursor.C:622
#4  0x1200ee7cc in InsetFormula::LocalDispatch (this=0x120420a60, action=-1, 
    arg=0x11fffe9e0 "^") at formula.C:1137
#5  0x120091acc in LyXFunc::Dispatch (this=0x12039db40, ac=-1, 
    do_not_use_this_arg=0x11fffe9e0 "^") at lyxfunc.C:495
#6  0x120090388 in LyXFunc::processKeyEvent (this=0x12039db40,
ev=0x200002c71b8)
    at lyxfunc.C:319
#7  0x1201992c8 in LyXView::KeyPressMask_raw_callback (fl=0x120364778,
xev=0x11fffb011)
    at LyXView.C:337
#8  0x20000158fac in pre_emptive_consumed ()
#9  0x20000157f0c in do_interaction_step ()
#10 0x20000158808 in fl_treat_interaction_events ()
#11 0x20000158854 in fl_check_forms ()
#12 0x120016288 in LyXGUI::runTime (this=0x11ffff0e0) at lyx_gui.C:624
#13 0x1200087b8 in LyX::LyX (this=0x11ffff428, argc=0x11ffff420,
argv=0x11ffff4e8)
    at ../src/lyx_main.C:119
#14 0x120007d88 in main (argc=1, argv=0x11ffff4e8) at ../src/main.C:51


This happens when trying to create a superscript (open document, C-M, A, ^
...crash).  I get an identical (down to the pointers) backtrace when trying
to do subscripts, or fractions, or square root.  This one is from when I try
to insert a sum:


Program received signal SIGSEGV, Segmentation fault.
0x1200fa5b4 in MathParInset::Metrics (this=0x120409230) at math_draw.C:172
172                   p->SetStyle(size);   
(gdb) bt
#0  0x1200fa5b4 in MathParInset::Metrics (this=0x120409230) at
math_draw.C:172
#1  0x120149c84 in MathedCursor::Interpret (this=0x120426750, s=0x1202181e1
"sum")
    at math_cursor.C:715
#2  0x1200eb590 in InsetFormula::InsertSymbol (this=0x12041db30, 
    s=0x1 <Address 0x1 out of bounds>) at formula.C:505
#3  0x1200ed534 in InsetFormula::LocalDispatch (this=0x12041db30,
action=107, 
    arg=0x1202181e1 "sum") at formula.C:937
#4  0x120091acc in LyXFunc::Dispatch (this=0x12039db40, ac=107, 
    do_not_use_this_arg=0x1202181e1 "sum") at lyxfunc.C:495
#5  0x1200b9688 in Menus::ShowMathMenu (ob=0x120393030) at menus.C:1398
#6  0x20000144d88 in fl_object_qread ()
#7  0x20000158840 in fl_check_forms ()
#8  0x120016288 in LyXGUI::runTime (this=0x11ffff0e0) at lyx_gui.C:624
#9  0x1200087b8 in LyX::LyX (this=0x11ffff428, argc=0x11ffff420,
argv=0x11ffff4e8)
    at ../src/lyx_main.C:119
#10 0x120007d88 in main (argc=1, argv=0x11ffff4e8) at ../src/main.C:51


This one is when I try to do an integral:


Program received signal SIGSEGV, Segmentation fault.
0x1200fa5b4 in MathParInset::Metrics (this=0x120423100) at math_draw.C:172
172                   p->SetStyle(size);   
(gdb) bt
#0  0x1200fa5b4 in MathParInset::Metrics (this=0x120423100) at
math_draw.C:172
#1  0x120149c84 in MathedCursor::Interpret (this=0x120420730, s=0x1202181e5
"int")
    at math_cursor.C:715
#2  0x1200eb590 in InsetFormula::InsertSymbol (this=0x1204263d0, 
    s=0x1 <Address 0x1 out of bounds>) at formula.C:505
#3  0x1200ed534 in InsetFormula::LocalDispatch (this=0x1204263d0,
action=107, 
    arg=0x1202181e5 "int") at formula.C:937
#4  0x120091acc in LyXFunc::Dispatch (this=0x12039db40, ac=107, 
    do_not_use_this_arg=0x1202181e5 "int") at lyxfunc.C:495
#5  0x1200b96d4 in Menus::ShowMathMenu (ob=0x120393030) at menus.C:1401
#6  0x20000144d88 in fl_object_qread ()
#7  0x2000015886c in fl_check_forms ()
#8  0x120016288 in LyXGUI::runTime (this=0x11ffff0e0) at lyx_gui.C:624
#9  0x1200087b8 in LyX::LyX (this=0x11ffff428, argc=0x11ffff420,
argv=0x11ffff4e8)
    at ../src/lyx_main.C:119
#10 0x120007d88 in main (argc=1, argv=0x11ffff4e8) at ../src/main.C:51

Looks like your linked list is going wrong somewhere...

-- Bob

Bob McElrath ([EMAIL PROTECTED]) Univ. of Wisconsin at Madison

Reply via email to