Qt

Lyx crashes randomly

Bug #378136 reported by Nick Bolton
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LyX
New
Undecided
Unassigned
Qt
New
Undecided
Unassigned
lyx (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: lyx

Whilst typing, Lyx crashes randomly on Ubuntu 9.04, with the following debug information...

*** glibc detected *** lyx: malloc(): memory corruption: 0x00000000030c4340 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fe355f7efef]
/lib/libc.so.6(__libc_malloc+0x98)[0x7fe355f80828]
/usr/lib/libQtCore.so.4(_ZN9QListData7detach2Ev+0x1d)[0x7fe356ab080d]
/usr/lib/libQtGui.so.4[0x7fe357406f8d]
/usr/lib/libQtGui.so.4[0x7fe3575b24bb]
/usr/lib/libQtGui.so.4(_ZNK19QItemSelectionRange7indexesEv+0x23a)[0x7fe3575aa2ba]
/usr/lib/libQtGui.so.4(_ZNK14QItemSelection7indexesEv+0x64)[0x7fe3575aa384]
/usr/lib/libQtGui.so.4[0x7fe357672eb3]
/usr/lib/libQtGui.so.4(_ZN10QCompleter11qt_metacallEN11QMetaObject4CallEiPPv+0x145)[0x7fe3576763a5]
lyx[0x7ad825]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x262)[0x7fe356b8b1f2]
/usr/lib/libQtGui.so.4(_ZN19QItemSelectionModel16selectionChangedERK14QItemSelectionS2_+0x27)[0x7fe3575a92b7]
/usr/lib/libQtGui.so.4(_ZN19QItemSelectionModel20emitSelectionChangedERK14QItemSelectionS2_+0x12e)[0x7fe3575b1a4e]
/usr/lib/libQtGui.so.4(_ZN19QItemSelectionModel6selectERK14QItemSelection6QFlagsINS_13SelectionFlagEE+0x201)[0x7fe3575b2281]
/usr/lib/libQtGui.so.4(_ZN19QItemSelectionModel6selectERK11QModelIndex6QFlagsINS_13SelectionFlagEE+0x3f)[0x7fe3575ac50f]
/usr/lib/libQtGui.so.4(_ZN19QItemSelectionModel15setCurrentIndexERK11QModelIndex6QFlagsINS_13SelectionFlagEE+0x1c7)[0x7fe3575a9507]
/usr/lib/libQtGui.so.4(_ZN17QAbstractItemView15setCurrentIndexERK11QModelIndex+0x9f)[0x7fe35755bdcf]
lyx[0x7a86a5]
lyx[0x7a9be2]
lyx[0x7aa3ad]
lyx[0x4f4591]
lyx[0x4f6684]
lyx[0x74b979]
/usr/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x70a)[0x7fe3570947ba]
/usr/lib/libQtGui.so.4(_ZN6QFrame5eventEP6QEvent+0x2b)[0x7fe35742e40b]
/usr/lib/libQtGui.so.4(_ZN19QAbstractScrollArea5eventEP6QEvent+0x89)[0x7fe3574bf949]
lyx[0x74910c]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xbd)[0x7fe35704378d]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xfdf)[0x7fe35704c8bf]
lyx[0x7154f8]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c)[0x7fe356b7575c]
/usr/lib/libQtGui.so.4[0x7fe3570d86b4]
/usr/lib/libQtGui.so.4[0x7fe3570daa12]
/usr/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x6fd)[0x7fe3570b35bd]
/usr/lib/libQtGui.so.4[0x7fe3570dc464]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x24a)[0x7fe35418220a]
/usr/lib/libglib-2.0.so.0[0x7fe3541858e0]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x6c)[0x7fe354185a7c]
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x4f)[0x7fe356b9ee6f]
/usr/lib/libQtGui.so.4[0x7fe3570dbbef]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x32)[0x7fe356b74002]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xcd)[0x7fe356b743cd]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xc4)[0x7fe356b76694]
lyx[0x4e4934]
lyx[0x43bfbf]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fe355f225a6]
lyx[0x43be89]
======= Memory map: ========
00400000-00abf000 r-xp 00000000 08:01 3862437 /usr/bin/lyx
00cbe000-00cbf000 r--p 006be000 08:01 3862437 /usr/bin/lyx
00cbf000-00cc6000 rw-p 006bf000 08:01 3862437 /usr/bin/lyx
00cc6000-00cf0000 rw-p 00cc6000 00:00 0
02990000-033ee000 rw-p 02990000 00:00 0 [heap]
7fe344000000-7fe344021000 rw-p 7fe344000000 00:00 0
7fe344021000-7fe348000000 ---p 7fe344021000 00:00 0
7fe34a65f000-7fe34a6aa000 r--p 00000000 08:01 4008043 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf
7fe34a6aa000-7fe34a70a000 rw-s 00000000 00:09 425996 /SYSV00000000 (deleted)
7fe34a70a000-7fe34a796000 r--p 00000000 08:01 4008039 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
7fe34a796000-7fe34a7e5000 r--p 00000000 08:01 4008042 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
7fe34a7e5000-7fe34a87d000 r--p 00000000 08:01 4008040 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
7fe34a87d000-7fe34a8ce000 r--p 00000000 08:01 4008044 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf
7fe34a8ce000-7fe34a926000 r-xp 00000000 08:01 3861982 /usr/lib/libtiff.so.4.2.1
7fe34a926000-7fe34ab26000 ---p 00058000 08:01 3861982 /usr/lib/libtiff.so.4.2.1
7fe34ab26000-7fe34ab28000 r--p 00058000 08:01 3861982 /usr/lib/libtiff.so.4.2.1
7fe34ab28000-7fe34ab29000 rw-p 0005a000 08:01 3861982 /usr/lib/libtiff.so.4.2.1
7fe34ab29000-7fe34ab2e000 r-xp 00000000 08:01 4065189 /usr/lib/qt4/plugins/imageformats/libqtiff.so
7fe34ab2e000-7fe34ad2d000 ---p 00005000 08:01 4065189 /usr/lib/qt4/plugins/imageformats/libqtiff.so
7fe34ad2d000-7fe34ad2e000 r--p 00004000 08:01 4065189 /usr/lib/qt4/plugins/imageformats/libqtiff.so
7fe34ad2e000-7fe34ad2f000 rw-p 00005000 08:01 4065189 /usr/lib/qt4/plugins/imageformats/libqtiff.so
7fe34ad2f000-7fe34ad63000 r-xp 00000000 08:01 3861685 /usr/lib/liblcms.so.1.0.18
7fe34ad63000-7fe34af62000 ---p 00034000 08:01 3861685 /usr/lib/liblcms.so.1.0.18
7fe34af62000-7fe34af63000 r--p 00033000 08:01 3861685 /usr/lib/liblcms.so.1.0.18
7fe34af63000-7fe34af64000 rw-p 00034000 08:01 3861685 /usr/lib/liblcms.so.1.0.18
7fe34af64000-7fe34af66000 rw-p 7fe34af64000 00:00 0
7fe34af66000-7fe34afe0000 r-xp 00000000 08:01 3861718 /usr/lib/libmng.so.1.1.0.9
7fe34afe0000-7fe34b0df000 ---p 0007a000 08:01 3861718 /usr/lib/libmng.so.1.1.0.9
7fe34b0df000-7fe34b0e4000 rw-p 00079000 08:01 3861718 /usr/lib/libmng.so.1.1.0.9
7fe34b0e4000-7fe34b0ea000 r-xp 00000000 08:01 4065188 /usr/lib/qt4/plugins/imageformats/libqmng.so
7fe34b0ea000-7fe34b2e9000 ---p 00006000 08:01 4065188 /usr/lib/qt4/plugins/imageformats/libqmng.so
7fe34b2e9000-7fe34b2ea000 r--p 00005000 08:01 4065188 /usr/lib/qt4/plugins/imageformats/libqmng.so
7fe34b2ea000-7fe34b2eb000 rw-p 00006000 08:01 4065188 /usr/lib/qt4/plugins/imageformats/libqmng.so
7fe34b2eb000-7fe34b30d000 r-xp 00000000 08:01 3861669 /usr/lib/libjpeg.so.62.0.0
7fe34b30d000-7fe34b50d000 ---p 00022000 08:01 3861669 /usr/lib/libjpeg.so.62.0.0
7fe34b50d000-7fe34b50e000 rw-p 00022000 08:01 3861669 /usr/lib/libjpeg.so.62.0.0
7fe34b50e000-7fe34b517000 r-xp 00000000 08:01 4065187 /usr/lib/qt4/plugins/imageformats/libqjpeg.so
7fe34b517000-7fe34b716000 ---p 00009000 08:01 4065187 /usr/lib/qt4/plugins/imageformats/libqjpeg.so
7fe34b716000-7fe34b717000 r--p 00008000 08:01 4065187 /usr/lib/qt4/plugins/imageformats/libqjpeg.so
7fe34b717000-7fe34b718000 rw-p 00009000 08:01 4065187 /usr/lib/qt4/plugins/imageformats/libqjpeg.so
7fe34b718000-7fe34b71e000 r-xp 00000000 08:01 4065186 /usr/lib/qt4/plugins/imageformats/libqico.so
7fe34b71e000-7fe34b91e000 ---p 00006000 08:01 4065186 /usr/lib/qt4/plugins/imageformats/libqico.so
7fe34b91e000-7fe34b91f000 r--p 00006000 08:01 4065186 /usr/lib/qt4/plugins/imageformats/libqico.so
7fe34b91f000-7fe34b920000 rw-p 00007000 08:01 4065186 /usr/lib/qt4/plugins/imageformats/libqico.so
7fe34b920000-7fe34b926000 r-xp 00000000 08:01 4065185 /usr/lib/qt4/plugins/imageformats/libqgif.so
7fe34b926000-7fe34bb25000 ---p 00006000 08:01 4065185 /usr/lib/qt4/plugins/imageformats/libqgif.so
7fe34bb25000-7fe34bb26000 r--p 00005000 08:01 4065185 /usr/lib/qt4/plugins/imageformats/libqgif.so
7fe34bb26000-7fe34bb27000 rw-p 00006000 08:01 4065185 /usr/lib/qt4/plugins/imageformats/libqgif.so
7fe34bb27000-7fe34bbbf000 r--p 00000000 08:01 4008040 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
7fe34bbbf000-7fe34bbc1000 r-xp 00000000 08:01 3932963 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7fe34bbc1000-7fe34bdc0000 ---p 00002000 08:01 3932963 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7fe34bdc0000-7fe34bdc1000 r--p 00001000 08:01 3932963 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7fe34bdc1000-7fe34bdc2000 rw-p 00002000 08:01 3932963 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7fe34bdc2000-7fe34bdec000 r-xp 00000000 08:01 3891779 /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
7fe34bdec000-7fe34bfeb000 ---p 0002a000 08:01 3891779 /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
7fe34bfeb000-7fe34bfec000 r--p 00029000 08:01 3891779 /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
7fe34bfec000-7fe34bfed000 rw-p 0002a000 08:01 3891779 /usr/lib/gtk-2.0/2.10.0Aborted

Revision history for this message
Nick Bolton (nick.bolton.uk) wrote :
Download full text (8.9 KiB)

Just crashed again, minutes later (it was working for hours before!). However, I get a different memory error this time...

*** glibc detected *** lyx: double free or corruption (!prev): 0x0000000001912b90 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fdc55d31cb8]
/lib/libc.so.6(cfree+0x76)[0x7fdc55d34276]
lyx[0x54c5f6]
lyx[0x54c5cc]
lyx[0x54c5cc]
lyx[0x54c5cc]
lyx[0x546644]
lyx[0x5a5d2a]
lyx[0x4f3e50]
lyx[0x4f6684]
lyx[0x74b979]
/usr/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x70a)[0x7fdc56e4a7ba]
/usr/lib/libQtGui.so.4(_ZN6QFrame5eventEP6QEvent+0x2b)[0x7fdc571e440b]
/usr/lib/libQtGui.so.4(_ZN19QAbstractScrollArea5eventEP6QEvent+0x89)[0x7fdc57275949]
lyx[0x74910c]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xbd)[0x7fdc56df978d]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xfdf)[0x7fdc56e028bf]
lyx[0x7154f8]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c)[0x7fdc5692b75c]
/usr/lib/libQtGui.so.4[0x7fdc56e8e6b4]
/usr/lib/libQtGui.so.4[0x7fdc56e90a12]
/usr/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x6fd)[0x7fdc56e695bd]
/usr/lib/libQtGui.so.4[0x7fdc56e92464]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x24a)[0x7fdc53f3820a]
/usr/lib/libglib-2.0.so.0[0x7fdc53f3b8e0]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x6c)[0x7fdc53f3ba7c]
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x4f)[0x7fdc56954e6f]
/usr/lib/libQtGui.so.4[0x7fdc56e91bef]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x32)[0x7fdc5692a002]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xcd)[0x7fdc5692a3cd]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xc4)[0x7fdc5692c694]
lyx[0x4e4934]
lyx[0x43bfbf]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fdc55cd85a6]
lyx[0x43be89]
======= Memory map: ========
00400000-00abf000 r-xp 00000000 08:01 3862437 /usr/bin/lyx
00cbe000-00cbf000 r--p 006be000 08:01 3862437 /usr/bin/lyx
00cbf000-00cc6000 rw-p 006bf000 08:01 3862437 /usr/bin/lyx
00cc6000-00cf0000 rw-p 00cc6000 00:00 0
01090000-01aeb000 rw-p 01090000 00:00 0 [heap]
7fdc44000000-7fdc44021000 rw-p 7fdc44000000 00:00 0
7fdc44021000-7fdc48000000 ---p 7fdc44021000 00:00 0
7fdc4a415000-7fdc4a460000 r--p 00000000 08:01 4008043 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf
7fdc4a460000-7fdc4a4c0000 rw-s 00000000 00:09 720912 /SYSV00000000 (deleted)
7fdc4a4c0000-7fdc4a54c000 r--p 00000000 08:01 4008039 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
7fdc4a54c000-7fdc4a59b000 r--p 00000000 08:01 4008042 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
7fdc4a59b000-7fdc4a633000 r--p 00000000 08:01 4008040 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
7fdc4a633000-7fdc4a684000 r--p 00000000 08:01 4008044 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf
7fdc4a68400...

Read more...

Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote :

I think this bug would be better placed in the upstream bug reporting system; if someone does this, please link the bug here.

Revision history for this message
tchu11 (tchu11) wrote :

A similar problem also affects me, and it is now occurring frequently. I have filed a bug report on LyX bug tracker as well, see:

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

Their reply is they have attempted fixing it, and upgrading to version 1.6.3 should solve the problem. Can the version on Ubuntu repository be upgraded to this version as soon as possible please?

We will need to try the latest version to see if the bug persists.

Revision history for this message
No (11111nonononono-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Could you try LyX in Ubuntu Karmic and see if it works there?

Changed in lyx (Ubuntu):
status: New → Incomplete
Revision history for this message
arno_b (arno.b) wrote :

When it crashes, is your cursor not visible ? It may come from a bug, fixed in 1.9.3, that happens when you type while the cursor is not visible.

Revision history for this message
Rob Oakes (robertsoakes) wrote :

This appears to be related to LyX Trac Bug #6680, and occurs due to an incompatibility with LyX 1.6.5 (currently available from the Lucid package repositories) and Qt 4.6. This issue has been repaired in LyX 1.6.6 and greater. For Meercat, Ubuntu should consider syncing the LyX package with the Debian testing. See Launchpad bug #618690.

Revision history for this message
Jean-Marc Lasgouttes (jmarc) wrote :

This should work now, LyX 1.6.6 is old history.

Changed in lyx (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.