I think I'm getting heap corruption...

I load up my thesis into 1.2cvs just to try it out
then use navigate menu to jump to a section

I get some messages when I click on the "Navigate" menu button:
In Xpup [xpopup.c 335] too many menu items. Max=80
About 52 of them, actually...

When I release the mouse button, I get

lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting 
instructions in Help->Introduction and send us a bug report, if 
necessary. Thanks !
Bye.
Aborted (core dumped)

Stack trace is (more info below):

(gdb) where
#0  0x4104d651 in __kill () from /lib/libc.so.6
#1  0x4104d3cd in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2  0x4104ea38 in abort () at ../sysdeps/i386/bits/string.h:230
#3  0x081c01b7 in lyx::abort () at abort.C:9
#4  0x080a60e5 in error_handler (err_sig=11) at ../src/lyx_main.C:229
#5  <signal handler called>
#6  0x4109b2ec in __libc_free (mem=0x4114ba08) at malloc.c:3064
#7  0x40066423 in fl_freepup () from /usr/X11R6/lib/libforms.so.0.88
#8  0x0824aa89 in void (*) for_each<int *, void (*)> (__first=0x8645aec,
    __last=0x8645b44, __f=0x8052a4c <fl_freepup>)
    at /usr/include/g++-3/stl_algo.h:83
#9  0x0819bfaa in Menubar::Pimpl::MenuCallback (ob=0x8329d58, button=1)
    at Menubar_pimpl.C:585
#10 0x08199b04 in C_Menubar_Pimpl_MenuCallback (ob=0x8329d58, button=1)
    at Menubar_pimpl.C:79
#11 0x400318bf in fl_object_qread () from /usr/X11R6/lib/libforms.so.0.88
#12 0x4003fb79 in fl_check_forms () from /usr/X11R6/lib/libforms.so.0.88
#13 0x08159991 in GUIRunTime::runTime () at GUIRunTime.C:86
#14 0x080a5745 in LyXGUI::runTime (this=0x82ed778) at lyx_gui.C:315
#15 0x080a5ea0 in LyX::LyX (this=0xbffff6c0, argc=0xbffff700, 
argv=0xbffff764)
    at ../src/lyx_main.C:177
#16 0x080c3fc5 in main (argc=1, argv=0xbffff764) at ../src/main.C:38
#17 0x4103b0ee in __libc_start_main (main=0x80c3e68 <main>, argc=3,
    ubp_av=0xbffff764, init=0x8052194 <_init>, fini=0x825a6ac <_fini>,
    rtld_fini=0x4100cf28 <_dl_fini>, stack_end=0xbffff75c)
    at ../sysdeps/generic/libc-start.c:129

This looked to me like the heap was being corrupted, because it crashed 
in free...

Now, I tried chopping my thesis in half to try to find a small document 
which still produces the error. However, I could not re-produce the 
error with either half of my thesis as input! Confused...

I have been trying to run LyX under mpatrol (a memory debugging library) 
to see if it will shed some light on the problem, but it is very 
thorough and very slow... and uses LOTS of memory. I currentlly have a 
2.5Gb swap file...

Perhaps someone else may know something more about this without using a 
debugging library?

Unfortunately I cannot send my thesis as example input - archive is 80Mb.

Ben.


Reply via email to