Bug 147044 - crashes after pressing tab on a bullets/numbers list
Summary: crashes after pressing tab on a bullets/numbers list
Status: RESOLVED FIXED
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-21 16:48 UTC by Olivier Vitrat
Modified: 2007-10-16 13:11 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
KoTextObject.cpp.diff (1.14 KB, text/x-diff)
2007-06-28 12:36 UTC, David Faure
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Vitrat 2007-06-21 16:48:55 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Debian stable Packages

Reported in Debian BTS at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413270

Package: kword
Version: 1:1.6.1-2
Severity: important

To reproduce:
1.- Open a document in kword
2.- in a blank line press tab
3.- Now add a bullets/numeric list on the same line
4.- delete the tabulation
5.-press tab again

Attachment is the backtrace.
Shell's output:

ASSERT: "placeHolderCmd" in
/tmp/buildd/koffice-1.6.1/./lib/kotext/KoTextObject.cpp (305)
KCrash: Application 'kword' crashing...


Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1503725216 (LWP 12191)]
[KCrash handler]
#9  0xa6eaba29 in QGList::append (this=0x8, d=0x84b0af0)
    at tools/qglist.cpp:404
#10 0xa72a9267 in KMacroCommand::addCommand (this=0x0, command=0x84b0af0)
    at /usr/share/qt3/include/qptrlist.h:82
#11 0xa5c01afd in KoTextObject::UndoRedoInfo::clear (this=0x82e1c5c)
    at /tmp/buildd/koffice-1.6.1/./lib/kotext/KoTextObject.cpp:306
#12 0xa5c021c2 in KoTextObject::storeParagUndoRedoInfo (this=0x82e1c20, 
    cursor=0x836bca8, selectionId=Standard)
    at /tmp/buildd/koffice-1.6.1/./lib/kotext/KoTextObject.cpp:402
#13 0xa5c3745a in KoTextObject::setParagLayoutCommand (this=0x82e1c20, 
    cursor=0x836bca8, paragLayout=@0xafad7564, selectionId=Standard, 
    paragLayoutFlags=4, marginIndex=0, createUndoRedo=true)
    at /tmp/buildd/koffice-1.6.1/./lib/kotext/KoTextObject.cpp:776
#14 0xa5c377fb in KoTextView::setParagLayoutFormatCommand (this=0x83de4f0, 
    newLayout=0xafad7564, flags=4, marginIndex=0)
    at /tmp/buildd/koffice-1.6.1/./lib/kotext/KoTextView.cpp:1277
#15 0xa5c0525a in KoTextFormatInterface::setMarginCommand (this=0x83de518, 
    m=MarginLeft, margin=28.346505799999999)
    at /tmp/buildd/koffice-1.6.1/./lib/kotext/KoTextObject.cpp:2786
#16 0xa5ec8c73 in KWView::textIncreaseIndent (this=0x82bb2c0)
    at /tmp/buildd/koffice-1.6.1/./kword/KWView.cpp:5156
#17 0xa5ec8ddc in KWTextFrameSetEdit::textIncreaseIndent (this=0x83de4f0)
    at /tmp/buildd/koffice-1.6.1/./kword/KWTextFrameSet.cpp:3286
#18 0xa5c49a4f in KoTextView::handleKeyPressEvent (this=0x83de4f0, 
    e=0xafad8090, widget=0x83bd298, pos=@0xafad7850)
    at /tmp/buildd/koffice-1.6.1/./lib/kotext/KoTextView.cpp:301
#19 0xa5f21fe0 in KWTextFrameSetEdit::keyPressEvent (this=0x83de4f0, 
    e=0xafad8090) at /tmp/buildd/koffice-1.6.1/./kword/KWTextFrameSet.cpp:3456
#20 0xa5f1655c in KWCanvas::eventFilter (this=0x83bd298, o=0x83bd298, 
    e=0xafad8090) at /tmp/buildd/koffice-1.6.1/./kword/KWCanvas.cpp:1862
#21 0xa6bb1302 in QObject::activate_filters (this=0x83bd298, e=0xafad8090)
    at kernel/qobject.cpp:903
#22 0xa6bb1380 in QObject::event (this=0x83bd298, e=0xafad8090)
    at kernel/qobject.cpp:735
#23 0xa6be8612 in QWidget::event (this=0x83bd298, e=0xafad8090)
    at kernel/qwidget.cpp:4678
#24 0xa6b49c26 in QApplication::internalNotify (this=0xafad854c, 
    receiver=0x83bd298, e=0xafad8090) at kernel/qapplication.cpp:2635
#25 0xa6b4bbda in QApplication::notify (this=0xafad854c, receiver=0x83bd298, 
    e=0xafad8090) at kernel/qapplication.cpp:2392
#26 0xa7679e0e in KApplication::notify (this=0xafad854c, receiver=0x83bd298, 
    event=0xafad8090)
    at /tmp/buildd/kdelibs-3.5.5a.dfsg.1/./kdecore/kapplication.cpp:550
#27 0xa6add495 in QApplication::sendSpontaneousEvent (receiver=0x83bd298, 
    event=0xafad8090) at kernel/qapplication.h:523
#28 0xa6ace6f9 in QETWidget::translateKeyEvent (this=0x83bd298, 
    event=0xafad83c8, grab=false) at kernel/qapplication_x11.cpp:5636
#29 0xa6ada723 in QApplication::x11ProcessEvent (this=0xafad854c, 
    event=0xafad83c8) at kernel/qapplication_x11.cpp:3493
#30 0xa6af0d02 in QEventLoop::processEvents (this=0x807f180, flags=4)
    at kernel/qeventloop_x11.cpp:192
#31 0xa6b64179 in QEventLoop::enterLoop (this=0x807f180)
    at kernel/qeventloop.cpp:198
#32 0xa6b63f9a in QEventLoop::exec (this=0x807f180)
    at kernel/qeventloop.cpp:145
#33 0xa6b4b7bf in QApplication::exec (this=0xafad854c)
    at kernel/qapplication.cpp:2758
#34 0xa7f74fd7 in kdemain (argc=1, argv=0xafad86d4)
    at /tmp/buildd/koffice-1.6.1/./kword/main.cpp:40
#35 0x08048482 in main (argc=0, argv=0x48) at kword.la.cpp:2
#36 0xa7d41ea8 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#37 0x080483d1 in _start () at ../sysdeps/i386/elf/start.S:119
Comment 1 Raphael Geissert 2007-06-28 04:02:08 UTC
This bug is still present in 1.6.3.

New backtrace:

Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1236223648 (LWP 9833)]
[KCrash handler]
#6  0xb6dcdacd in QGList::append (this=0x8, d=0x84c3e40)
    at tools/qglist.cpp:404
#7  0xb71dead7 in KMacroCommand::addCommand (this=0x0, command=0x84c3e40)
    at /usr/share/qt3/include/qptrlist.h:82
#8  0xb5b0ffcf in KoTextObject::UndoRedoInfo::clear (this=0x8337d54)
    at /tmp/buildd/koffice-1.6.3/./lib/kotext/KoTextObject.cpp:306
#9  0xb5b10b4c in KoTextObject::checkUndoRedoInfo (this=0x8337d18, 
    cursor=0x8431ec0, t=Return)
    at /tmp/buildd/koffice-1.6.3/./lib/kotext/KoTextObject.cpp:211
#10 0xb5b4a84a in KoTextObject::doKeyboardAction (this=0x8337d18, 
    cursor=0x8431ec0, action=ActionReturn)
    at /tmp/buildd/koffice-1.6.3/./lib/kotext/KoTextObject.cpp:500
#11 0xb5b58048 in KoTextView::handleKeyPressEvent (this=0x83d18c8, 
    e=0xbfcb4a30, widget=0x83f6bb8, pos=@0xbfcb41f0)
    at /tmp/buildd/koffice-1.6.3/./lib/kotext/KoTextView.cpp:237
#12 0xb5e32f81 in KWTextFrameSetEdit::keyPressEvent (this=0x83d18c8, 
    e=0xbfcb4a30) at /tmp/buildd/koffice-1.6.3/./kword/KWTextFrameSet.cpp:3456
#13 0xb5e41e17 in KWCanvas::eventFilter (this=0x83f6bb8, o=0x83f6bb8, 
    e=0xbfcb4a30) at /tmp/buildd/koffice-1.6.3/./kword/KWCanvas.cpp:1864
#14 0xb6ad33ce in QObject::activate_filters (this=0x83f6bb8, e=0xbfcb4a30)
    at kernel/qobject.cpp:903
#15 0xb6ad344c in QObject::event (this=0x83f6bb8, e=0xbfcb4a30)
    at kernel/qobject.cpp:735
#16 0xb6b0a6de in QWidget::event (this=0x83f6bb8, e=0xbfcb4a30)
    at kernel/qwidget.cpp:4678
#17 0xb6a6bcf2 in QApplication::internalNotify (this=0xbfcb4eec, 
    receiver=0x83f6bb8, e=0xbfcb4a30) at kernel/qapplication.cpp:2635
#18 0xb6a6dca6 in QApplication::notify (this=0xbfcb4eec, receiver=0x83f6bb8, 
    e=0xbfcb4a30) at kernel/qapplication.cpp:2392
#19 0xb75a3142 in KApplication::notify (this=0xbfcb4eec, receiver=0x83f6bb8, 
    event=0xbfcb4a30)
    at /tmp/buildd/kdelibs-3.5.7.dfsg.1/./kdecore/kapplication.cpp:550
#20 0xb69ff535 in QApplication::sendSpontaneousEvent (receiver=0x83f6bb8, 
    event=0xbfcb4a30) at kernel/qapplication.h:523
#21 0xb69f0799 in QETWidget::translateKeyEvent (this=0x83f6bb8, 
    event=0xbfcb4d68, grab=false) at kernel/qapplication_x11.cpp:5636
#22 0xb69fc7c3 in QApplication::x11ProcessEvent (this=0xbfcb4eec, 
    event=0xbfcb4d68) at kernel/qapplication_x11.cpp:3493
#23 0xb6a12da2 in QEventLoop::processEvents (this=0x807d110, flags=4)
    at kernel/qeventloop_x11.cpp:192
#24 0xb6a86245 in QEventLoop::enterLoop (this=0x807d110)
    at kernel/qeventloop.cpp:198
#25 0xb6a86066 in QEventLoop::exec (this=0x807d110)
    at kernel/qeventloop.cpp:145
#26 0xb6a6d88b in QApplication::exec (this=0xbfcb4eec)
    at kernel/qapplication.cpp:2758
#27 0xb7ef3f40 in kdemain (argc=1, argv=0xbfcb5084)
    at /tmp/buildd/koffice-1.6.3/./kword/main.cpp:40
#28 0x080484c2 in main (argc=0, argv=0x0) at kword.la.cpp:2
#29 0xb7ca9ebc in __libc_start_main () from /lib/i686/cmov/libc.so.6
#30 0x08048411 in _start ()
Comment 2 David Faure 2007-06-28 12:36:04 UTC
I'm leaving soon so I can't test it myself, but you could try this patch
(to be applied in koffice/lib/kotext).


Created an attachment (id=20985)
KoTextObject.cpp.diff
Comment 3 David Faure 2007-10-16 13:11:42 UTC
SVN commit 725851 by dfaure:

The crash fix for 147044 has been reported to work, committing it.
BUG: 147044


 M  +6 -5      KoTextObject.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=725851