On Mon, 16 Dec 2002, Andre Poenitz wrote:

> On Mon, Dec 16, 2002 at 12:10:50PM +0100, Christian Ridderström wrote:
> > Do you know of a useful debug switch to get some more info on where the 
> > problem occurs?
> 
> Start it in the debugger and interupt during the 'freeze'.
> 
I've never used gdb before, but I managed the following:

        >gdb lyx
        >run
        Opened the equnarray.lyx and it freezes
        (tried writing "freeze" in gdb to stop it... didn't work :-)
        Pressed C-z and suspended it in gdb
        (by then lyx had taken about 160 MB of memory).

GDB output:
Program received signal SIGTSTP, Stopped (user).
0x081ed3fe in vector<MathXArray, allocator<MathXArray> >::_M_insert_aux ()
Current language:  auto; currently c++
(gdb) 


I also tried a command 'bt' to get some info:

(gdb) bt
#0  0x081ed3fe in vector<MathXArray, allocator<MathXArray> 
>::_M_insert_aux ()
#1  0x081ea8f7 in MathGridInset::appendRow ()
#2  0x081f2e5e in MathHullInset::appendRow ()
#3  0x081fde58 in {anonymous}::Parser::parse_lines ()
#4  0x081ff0a3 in {anonymous}::Parser::parse_normal ()
#5  0x08202d3e in mathed_parse_normal ()
#6  0x081d5b1e in InsetFormula::read ()
#7  0x080c4350 in Buffer::readInset ()
#8  0x080c0404 in Buffer::parseSingleLyXformat2Token ()
#9  0x080b8e21 in Buffer::readLyXformat2 ()
#10 0x080c4a6d in Buffer::readFile ()
#11 0x080df4de in BufferList::readFile ()
#12 0x080e0817 in BufferList::loadLyXFile ()
#13 0x08142951 in LyXFunc::open ()
#14 0x08139e96 in LyXFunc::dispatch ()
#15 0x08135b32 in LyXFunc::verboseDispatch ()
#16 0x08135a77 in LyXFunc::verboseDispatch ()
#17 0x0830b738 in Menubar::Pimpl::MenuCallback ()
#18 0x08305079 in C_Menubar_Pimpl_MenuCallback ()
#19 0x083744c4 in fl_object_qread ()
#20 0x08373059 in fl_check_forms ()
#21 0x0830436d in GUIRunTime::runTime ()
#22 0x081204fc in LyXGUI::runTime ()
---Type <return> to continue, or q <return> to quit---
#23 0x0812109b in LyX::LyX ()
#24 0x08178749 in main ()
#25 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6

now what?



/C
        

-- 
Christian Ridderström, +46-8-790 91 37           http://www.md.kth.se/~chr
Mechatronics lab, Dept. of Machine Design        http://www.md.kth.se

Reply via email to