Bug 52051

Summary: KWord crashes when any text is right-clicked
Product: kword Reporter: Carmen Wick <wick0211>
Component: generalAssignee: Thomas Zander <zander>
Status: RESOLVED FIXED    
Severity: crash CC: ismail
Priority: NOR    
Version: 1.5 or before   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Carmen Wick 2002-12-18 07:28:56 UTC
Version:           1.2post (using KDE 3.1.9)
Compiler:          gcc version 3.2
OS:          Linux (i686) release 2.4.20

Kword crashes when any part of the main text frame which has text
typed in it is clicked with the right mouse button.
Steps to reproduce:
1.  Start up kword, use all the default graphical-configurable options.
2.  Right click the upper-left corner of the main text frame, the spot where
text that you are about to type in would go.
3.  Notice that this works fine, the menu pops up.
4.  Type in any text of any length in any font.  Right click the newly typed 
text.
5.  CRASH!  (SIGSEGV)

If you type in text, then erase the text and right-click where the text used to be, it works fine.  But as soon as you type in any text of any kind and of any length and right-click it, it crashes.  Left-clicking works just fine.  This phenomenon happens within tables too.

Sorry, i cannot provide a backtrace as i am lacking gdb and debugging
symbols
Comment 1 Carmen Wick 2002-12-18 07:29:19 UTC
Compiled against qt 3.1.0 
Comment 2 Ismail Donmez 2003-01-29 14:40:20 UTC
Same bug got a backtrace :  ( KDE cvs-head , Koffice cvs-head ) 
 
0x41113169 in wait4 () from /lib/libc.so.6 
#0  0x41113169 in wait4 () from /lib/libc.so.6 
#1  0x41193238 in sys_sigabbrev () from /lib/libc.so.6 
#2  0x40f1fcf3 in waitpid () from /lib/libpthread.so.0 
#3  0x406da4dd in KCrash::defaultCrashHandler(int) () 
   from /opt/kde/lib/libkdecore.so.4 
#4  0x4108ee28 in sigaction () from /lib/libc.so.6 
#5  0x41e3465d in acommon::StringMap::lookup(acommon::ParmString) const () 
   from /usr/lib/libaspell.so.15 
#6  0x41e38229 in acommon::Config::retrieve(acommon::ParmString) const () 
   from /usr/lib/libaspell.so.15 
#7  0x41e28c2a in aspell_config_retrieve () from /usr/lib/libaspell.so.15 
#8  0x41decb58 in KOSpell::resultCheckWord(QString const&) (this=0x817bbf0, 
    _word=@0xbfffe880) at koSpell.cpp:309 
#9  0x4195d142 in KWView::listOfResultOfCheckWord(QString const&) ( 
    this=0x81fa798, word=@0xbfffe880) at kwview.cc:7226 
#10 0x4198766b in KWTextFrameSetEdit::showPopup(KWFrame*, KWView*, QPoint 
const&) (this=0x82b1ac0, view=0x81fa798, point=@0xbfffe940) at 
kwtextframeset.cc:3736 
#11 0x41951a86 in KWView::openPopupMenuInsideFrame(KWFrame*, QPoint const&) 
( 
    this=0x81fa798, frame=0x81f44e8, _point=@0xbfffe940) at kwview.cc:5203 
#12 0x418ec512 in KWCanvas::contentsMousePressEvent(QMouseEvent*) ( 
    this=0x82ab448, e=0xbfffea00) at kwcanvas.cc:645 
#13 0x40b6702c in QScrollView::viewportMousePressEvent(QMouseEvent*) () 
   from /opt/kde/qt/lib/libqt-mt.so.3 
#14 0x40b66974 in QScrollView::eventFilter(QObject*, QEvent*) () 
   from /opt/kde/qt/lib/libqt-mt.so.3 
#15 0x418f5c25 in KWCanvas::eventFilter(QObject*, QEvent*) (this=0x82ab448, 
    o=0x82b0610, e=0xbfffef70) at kwcanvas.cc:2470 
#16 0x40a69b1e in QObject::activate_filters(QEvent*) () 
   from /opt/kde/qt/lib/libqt-mt.so.3 
#17 0x40a69a41 in QObject::event(QEvent*) () from 
/opt/kde/qt/lib/libqt-mt.so.3 
#18 0x40a9fe2c in QWidget::event(QEvent*) () from 
/opt/kde/qt/lib/libqt-mt.so.3 
#19 0x40a0e0e4 in QApplication::internalNotify(QObject*, QEvent*) () 
   from /opt/kde/qt/lib/libqt-mt.so.3 
#20 0x40a0d913 in QApplication::notify(QObject*, QEvent*) () 
   from /opt/kde/qt/lib/libqt-mt.so.3 
#21 0x40644039 in KApplication::notify(QObject*, QEvent*) () 
   from /opt/kde/lib/libkdecore.so.4 
#22 0x409b42ab in QETWidget::translateMouseEvent(_XEvent const*) () 
   from /opt/kde/qt/lib/libqt-mt.so.3 
#23 0x409b1e2d in QApplication::x11ProcessEvent(_XEvent*) () 
   from /opt/kde/qt/lib/libqt-mt.so.3 
#24 0x409c6dda in QEventLoop::processEvents(unsigned) () 
   from /opt/kde/qt/lib/libqt-mt.so.3 
#25 0x40a21ed6 in QEventLoop::enterLoop() () from 
/opt/kde/qt/lib/libqt-mt.so.3 
#26 0x40a21d78 in QEventLoop::exec() () from /opt/kde/qt/lib/libqt-mt.so.3 
#27 0x40a0e311 in QApplication::exec() () from /opt/kde/qt/lib/libqt-mt.so.3 
#28 0x407c92dd in main (argc=1, argv=0x8068da8) at main.cc:43 
#29 0x0804d287 in launch(int, char const*, char const*, char const*, int, 
char const*, bool, char const*, bool, char const*) () 
#30 0x0804eb5b in handle_launcher_request(int) () 
#31 0x0804ddbc in handle_requests(int) () 
#32 0x0804bf4a in main () 
#33 0x4107af94 in __libc_start_main () from /lib/libc.so.6 
 
Comment 3 David Faure 2003-04-02 10:07:23 UTC
Laurent says that -r1.48 koSpell.cpp fixes it.