Bug 238653

Summary: Kwrite crashes with segfaults under a certain mouse stroke.
Product: [Applications] kate Reporter: dE <de.techno>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description dE 2010-05-24 07:57:11 UTC
Version:           unspecified
OS:                Linux

Open kwrite, trippleclick on it (on the blank editable area of kwrite), it crashes with the following - 

Application: KWrite (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fd2e5cf9740 (LWP 21079))]

Thread 2 (Thread 0x7fd2e3080910 (LWP 21080)):
#0  0x00000030ab00b189 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00000030be335336 in ?? () from /usr/lib64/qt4/libQtScript.so.4
#2  0x00000030be335379 in ?? () from /usr/lib64/qt4/libQtScript.so.4
#3  0x00000030ab007297 in start_thread () from /lib/libpthread.so.0
#4  0x00000030aa4d08cd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd2e5cf9740 (LWP 21079)):
[KCrash Handler]
#5  0x00007fd2e39a1cb0 in ?? () from /usr/lib64/kde4/katepart.so
#6  0x00007fd2e399e9aa in ?? () from /usr/lib64/kde4/katepart.so
#7  0x00007fd2e399ef91 in ?? () from /usr/lib64/kde4/katepart.so
#8  0x00007fd2e39f1d10 in ?? () from /usr/lib64/kde4/katepart.so
#9  0x00007fd2e39f23bb in ?? () from /usr/lib64/kde4/katepart.so
#10 0x00007fd2e39f6e65 in ?? () from /usr/lib64/kde4/katepart.so
#11 0x00000030b3a11106 in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#12 0x00000030b39ba6ed in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#13 0x00000030b39c263c in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#14 0x00000030b4c1c16b in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#15 0x00000030b216b903 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#16 0x00000030b39c11db in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/qt4/libQtGui.so.4
#17 0x00000030b3a42548 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#18 0x00000030b3a416fc in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#19 0x00000030b3a698fa in ?? () from /usr/lib64/qt4/libQtGui.so.4
#20 0x00007fd2e62c16f1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#21 0x00007fd2e62c4e88 in ?? () from /usr/lib/libglib-2.0.so.0
#22 0x00007fd2e62c503c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#23 0x00000030b2194a1c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#24 0x00000030b3a6949f in ?? () from /usr/lib64/qt4/libQtGui.so.4
#25 0x00000030b216a272 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#26 0x00000030b216a644 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#27 0x00000030b216ca36 in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#28 0x00000030b0410669 in kdemain () from /usr/lib64/libkdeinit4_kwrite.so
#29 0x00000000004074ae in _start ()


You need the GDB output?

Reproducible: Always
Comment 1 Tomas Trnka 2010-05-24 09:49:30 UTC
Thanks for the report, unfortunately the backtrace you provided is not useful (see those ??s in katepart.so?). Please get the debug symbols for kdelibs installed and redo the backtrace (you can usually get debug symbols in a package called something like kdelibs-debug, on Gentoo probably FEATURES="nostrip" does the job)
Comment 2 dE 2010-05-24 16:06:08 UTC
No use it's still - 

Application: KWrite (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f302893e740 (LWP 5786))]

Thread 2 (Thread 0x7f3025aaa910 (LWP 5787)):
#0  0x00000030ab00b189 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00000030be335336 in ?? () from /usr/lib64/qt4/libQtScript.so.4
#2  0x00000030be335379 in ?? () from /usr/lib64/qt4/libQtScript.so.4
#3  0x00000030ab007297 in start_thread () from /lib/libpthread.so.0
#4  0x00000030aa4d08cd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f302893e740 (LWP 5786)):
[KCrash Handler]
#5  0x00007f30263cbcb0 in ?? () from /usr/lib64/kde4/katepart.so
#6  0x00007f30263c89aa in ?? () from /usr/lib64/kde4/katepart.so
#7  0x00007f30263c8f91 in ?? () from /usr/lib64/kde4/katepart.so
#8  0x00007f302641bd10 in ?? () from /usr/lib64/kde4/katepart.so
#9  0x00007f302641c3bb in ?? () from /usr/lib64/kde4/katepart.so
#10 0x00007f3026420e65 in ?? () from /usr/lib64/kde4/katepart.so
#11 0x00000030b3a11106 in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#12 0x00000030b39ba6ed in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#13 0x00000030b39c263c in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#14 0x00000030b4c1c16b in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#15 0x00000030b216b903 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#16 0x00000030b39c11db in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/qt4/libQtGui.so.4
#17 0x00000030b3a42548 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#18 0x00000030b3a416fc in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#19 0x00000030b3a698fa in ?? () from /usr/lib64/qt4/libQtGui.so.4
#20 0x00007f3028f066f1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#21 0x00007f3028f09e88 in ?? () from /usr/lib/libglib-2.0.so.0
#22 0x00007f3028f0a03c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#23 0x00000030b2194a1c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#24 0x00000030b3a6949f in ?? () from /usr/lib64/qt4/libQtGui.so.4
#25 0x00000030b216a272 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#26 0x00000030b216a644 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#27 0x00000030b216ca36 in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#28 0x00007f302828173b in kdemain (argc=1, argv=0x837580) at /var/tmp/portage/kde-base/kwrite-4.3.5/work/kwrite-4.3.5/kwrite/kwritemain.cpp:782
#29 0x00000000004074ae in _start ()





Through gdb - 

Starting program: /usr/bin/kwrite
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff4b9c910 (LWP 5832)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff54bdcb0 in ?? () from /usr/lib64/kde4/katepart.so

backtrace - 

(gdb) backtrace                                             
#0  0x00007ffff54bdcb0 in ?? () from /usr/lib64/kde4/katepart.so
#1  0x00007ffff54ba9aa in ?? () from /usr/lib64/kde4/katepart.so
#2  0x00007ffff54baf91 in ?? () from /usr/lib64/kde4/katepart.so
#3  0x00007ffff550dd10 in ?? () from /usr/lib64/kde4/katepart.so
#4  0x00007ffff550e3bb in ?? () from /usr/lib64/kde4/katepart.so
#5  0x00007ffff5512e65 in ?? () from /usr/lib64/kde4/katepart.so
#6  0x00000030b3a11106 in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#7  0x00000030b39ba6ed in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib64/qt4/libQtGui.so.4
#8  0x00000030b39c263c in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#9  0x00000030b4c1c16b in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#10 0x00000030b216b903 in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /usr/lib64/qt4/libQtCore.so.4
#11 0x00000030b39c11db in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/qt4/libQtGui.so.4
#12 0x00000030b3a42548 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#13 0x00000030b3a416fc in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#14 0x00000030b3a698fa in ?? () from /usr/lib64/qt4/libQtGui.so.4
#15 0x00007ffff7b076f1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#16 0x00007ffff7b0ae88 in ?? () from /usr/lib/libglib-2.0.so.0
#17 0x00007ffff7b0b03c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#18 0x00000030b2194a1c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib64/qt4/libQtCore.so.4
#19 0x00000030b3a6949f in ?? () from /usr/lib64/qt4/libQtGui.so.4
#20 0x00000030b216a272 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib64/qt4/libQtCore.so.4
#21 0x00000030b216a644 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib64/qt4/libQtCore.so.4
---Type <return> to continue, or q <return> to quit---
#22 0x00000030b216ca36 in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#23 0x00007ffff7df273b in kdemain (argc=1, argv=0x7fffffffddd8)
    at /var/tmp/portage/kde-base/kwrite-4.3.5/work/kwrite-4.3.5/kwrite/kwritemain.cpp:782
#24 0x00000030aa41ea26 in __libc_start_main () from /lib/libc.so.6
#25 0x0000000000400789 in _start ()

I even enabled the -ggdb, debug flag in make.conf, this is my whole make.conf - 

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
#CFLAGS="-march=native -O2 -pipe"
#CXXFLAGS="-march=native -O2 -pipe"
CFLAGS="-march=native -O2 -ggdb"
CXXFLAGS="-march=native -O2 -ggdb"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="3dnow 3dnowext 64bit a-like-o a52 acc acpi aften alib alsa amr amrnb
     amrr animation-rtl animgif apm asf bash-completion bcmath branding cdda
     cdparanoia cdr css dbus dga djvu dri dts dv dvd dvdr encode exif ffmpeg
     fftw flac ftp gif gsl gsm hal -ipv6 jpeg jpeg2k kde
      libnotify libsamplerate lzo mad matroska matrox memlimit mmx mmxext
     mng mozilla mp3 mp4 mpeg mplayer musepack nsplugin oci8-instant-client
     offensive ogg openal opencore-amr openexr pdf plasma png
     raw sharedmem shorten slang smp speex spell sse sse2 svg symlink taglib
     theora tiff truetype vcd vorbis wavpack wmf x264 xpm xv xvid zlib
     -16bit-indices -16bittmp -3G -3ds -4mb-mod -abiword -abook -abyss
     -accessibility -acct -acm -ada -addbookmarks -addition -addns
     -addressbook -admin -adplug -ads -aff -afs -afterimage -agent -aida -aim
     -altenburgcards -amavis -analogtv -anthy -antlr -apache2 -api -apidocs
     -apop -applet -arts -berkdb -bluetooth -bsf -cddb -cjk -clamav -cups -db2
     -debug -dedicated -dvb -eds -emboss -evo -gnome -gnome-keyring -gphoto2
     -gps -gtk -gtkhtml -handbook -ieee1394 -ipod -joystick -kontact -libgda
     -lirc -maildir -migemo -msql -mssql -multilib -musicbrainz -mysql
     -netboot -oci8 -old-linux -oracle -pcmcia -pda -postgres -profile
     -qmail-spp -qt3 -rdesktop -samba -scanner -seamonkey -semantic-desktop
     -smartcard -sqlite -sqlite3 -syslog -usb -v4l -v4l2 -voodoo3 -wifi
     -xcomposite -xinetd -xprint ntfs reiserfs lzma rar -gcdmaster -hfs -emovix wav -openct pth -perl -nls optimization strong-optimization bazzar darcs git mercurial threads -ldap minimal debug"
#MAKEOPTS="-j3"
MAKEOPTS="-j2"
FEATURES="parallel-fetch userfetch fail-clean userpriv nostrip"
#FEATURES="parallel-fetch userfetch fail-clean"
PORTDIR_OVERLAY="/usr/local/portage/manual"
#source /usr/local/portage/layman/make.conf
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
ACCEPT_LICENSE="*"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS=3
PORTAGE_NICENESS=20
PORTAGE_RSYNC_RETRIES=100
VIDEO_CARDS="fbdev vesa radeon"
INPUT_DEVICES="evdev synaptics mouse keyboard"
Comment 3 Dominik Haumann 2010-05-24 18:13:01 UTC
still does not include the debug information in katepart.so. You have to recompile Katepart (included in kdelibs) with debug information.
Comment 4 dE 2010-05-24 20:52:14 UTC
'Katepart' is not in the Portage tree... Some other name...
Comment 5 Tomas Trnka 2010-05-24 21:55:52 UTC
With any luck it could be called "kdelibs" (as Dominik and I already suggested)
Comment 6 Dominik Haumann 2010-05-24 22:16:21 UTC
@dE: Instead of compiling kdelibs with debug infos (Gentoo usually optimizes a lot, so maybe it's not even that easy) you can also build the newest kate locally according to this howto: http://gitorious.org/kate/pages/Building%20Kate

It won't touch your global kde installation, so it's safe to try this out. Can you still reproduce the crash here? If so, you'll get a much better backtrace.
Comment 7 dE 2010-05-25 05:33:34 UTC
That Kate has a hard dependency on KDE 4.4, and that's currently unstable in portage (so I don't wanna switch).

Yeah, I just enabled -fomit-frame-pointer... anyway, I'll remove that for kdelibs, and apart from the standard debug procedure, I'll remove the optimization also.

This will take some time.
Comment 8 dE 2010-05-25 05:34:46 UTC
And yeah, with debug flag enabled.
Comment 9 dE 2010-05-27 09:09:35 UTC
I guess this is OK - 

gdb --args kwrite

warning: Can not parse XML syscalls information; XML support was disabled at compile time.
GNU gdb (Gentoo 7.0 p2) 7.0                                                               
Copyright (C) 2009 Free Software Foundation, Inc.                                         
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>             
This is free software: you are free to change and redistribute it.                        
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"                
and "show warranty" for details.                                                          
This GDB was configured as "x86_64-pc-linux-gnu".                                         
For bug reporting instructions, please see:                                               
<http://bugs.gentoo.org/>...                                                              
Reading symbols from /usr/bin/kwrite...done.                                              
(gdb) run                                                                                 
Starting program: /usr/bin/kwrite                                                         
[Thread debugging using libthread_db enabled]                                             
kwrite(5276)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/home/de/.kde4/cache-localhost/ksycoca4"                                                                                                 
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Script value warning: Unexpected or no priority value  in:  /usr/share/apps/katepart/script/lilypond.js . Setting priority to 0                                           
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Script value warning: No indent-languages specified for indent  script  /usr/share/apps/katepart/script/lisp.js . Using the name ( LISP )                                 
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Script value warning: Unexpected or no priority value  in:  /usr/share/apps/katepart/script/lisp.js . Setting priority to 0                                               
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Script value warning: Unknown type ('  '):  /usr/share/apps/katepart/script/sort.js                                                                                       
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Script value warning: No indent-languages specified for indent  script  /usr/share/apps/katepart/script/haskell.js . Using the name ( Haskell )                           
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Script value warning: Unexpected or no priority value  in:  /usr/share/apps/katepart/script/haskell.js . Setting priority to 0                                            
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Script value error: No name specified in script meta data:  /usr/share/apps/katepart/script/jstest.js                                                                     
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Script value warning: No indent-languages specified for indent  script  /usr/share/apps/katepart/script/python.js . Using the name ( Python )                             
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Script value warning: Unexpected or no priority value  in:  /usr/share/apps/katepart/script/python.js . Setting priority to 0                                             
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Script value warning: No indent-languages specified for indent  script  /usr/share/apps/katepart/script/cstyle.js . Using the name ( C Style )                            
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Script value warning: Unexpected or no priority value  in:  /usr/share/apps/katepart/script/cstyle.js . Setting priority to 0                                             
kwrite(5276)/Kate (Scripting) KateScriptManager::indenter: Found indenter "/usr/share/apps/katepart/script/python.js" for "Python"                                                                                                  
kwrite(5276)/Kate (Scripting) KateScriptManager::indenter: Found indenter "/usr/share/apps/katepart/script/python.js" for "Python"                                                                                                  
[New Thread 0x7ffff3e0d910 (LWP 5279)]                                                                            
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Python:  true                                           
kwrite(5276)/Kate (Scripting) KateScriptManager::indenter: Found indenter "/usr/share/apps/katepart/script/python.js" for "Python"                                                                                                  
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Python:  false                                          
kwrite(5276)/Kate (Scripting) KateScriptManager::indenter: Found indenter "/usr/share/apps/katepart/script/python.js" for "Python"                                                                                                  
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Python:  false                                          
kwrite(5276)/Kate (Scripting) KateScriptManager::indenter: Found indenter "/usr/share/apps/katepart/script/python.js" for "Python"                                                                                                  
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: Python:  true                                           
kwrite(5276)/Kate (Scripting) KateScriptManager::indenter: No indenter for "C"                                    
kwrite(5276)/Kate (Scripting) KateScriptManager::indenter: Found indenter "/usr/share/apps/katepart/script/lisp.js" for "lisp"                                                                                                      
kwrite(5276)/Kate (Scripting) KateScriptManager::indenter: Found indenter "/usr/share/apps/katepart/script/lisp.js" for "Lisp"                                                                                                      
kwrite(5276)/Kate (Scripting) KateScriptManager::collect: LISP:  /usr/share/apps/katepart/script/lisp.js          
kwrite(5276)/Kate (Document) KateView::slotLostFocus: KateView::slotLostFocus                                     
kwrite(5276)/Kate (Code Completion) KateCompletionWidget::abortCompletion:                                        
kwrite(5276)/Kate (Document) KateView::updateView: KateView::updateView                                           
kwrite(5276)/Kate (Document) KateView::updateView: KateView::updateView                                           
kwrite(5276)/Kate (Commands) KateViewBar::removePermanentBarWidget: no such permanent widget exists in bar        
kwrite(5276)/Kate (Code Completion) KateCompletionWidget::abortCompletion:                                        
kwrite(5276)/Kate (Document) KateView::updateView: KateView::updateView                                           
kwrite(5276)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  0  LINEEND:  0     
kwrite(5276)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  0  MAX:  0                                  
kwrite(5276)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512                                 
kwrite(5276)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  0  LINEEND:  0     
kwrite(5276)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  0  MAX:  0                                  
kwrite(5276)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512                                 
kwrite(5276)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  0  LINEEND:  0     
kwrite(5276)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  0  MAX:  0                                  
kwrite(5276)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512                                 
kwrite(5276)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  0  LINEEND:  0     
kwrite(5276)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  0  MAX:  0                                  
kwrite(5276)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512                                 
kwrite(5276)/Kate (Document) KateView::slotGotFocus: KateView::slotGotFocus                                       
ASSERT: "d" in file /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kdecore/util/ksharedptr.h, line 126

Program received signal SIGABRT, Aborted.
0x00000031ce232315 in raise () from /lib/libc.so.6
(gdb) bt                                          
#0  0x00000031ce232315 in raise () from /lib/libc.so.6
#1  0x00000031ce233811 in abort () from /lib/libc.so.6
#2  0x00000031d36718ad in qt_message_output(QtMsgType, char const*) () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00000031d3671a4d in ?? () from /usr/lib64/qt4/libQtCore.so.4                                       
#4  0x00000031d3671be5 in qFatal(char const*, ...) () from /usr/lib64/qt4/libQtCore.so.4                 
#5  0x00007ffff49b9644 in KSharedPtr<KateLineLayout>::operator-> (this=0x7fffffffb4e0)                   
    at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kdecore/util/ksharedptr.h:126          
#6  0x00007ffff49bf4d7 in KateLayoutCache::viewLine (this=0x7dfe60, realCursor=...)                      
    at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kate/render/katelayoutcache.cpp:392    
#7  0x00007ffff49bf959 in KateLayoutCache::textLayout (this=0x7dfe60, realCursor=...)                    
    at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kate/render/katelayoutcache.cpp:334    
#8  0x00007ffff4a0c297 in KateViewInternal::makeVisible (this=0x7df090, c=..., endCol=-1, force=false, center=
    false, calledExternally=false)                                                                            
    at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kate/view/kateviewinternal.cpp:684          
#9  0x00007ffff4a0c623 in KateViewInternal::updateCursor (this=0x7df090, newCursor=..., force=false, center=  
    false, calledExternally=false)                                                                            
    at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kate/view/kateviewinternal.cpp:1876         
#10 0x00007ffff4a11aa8 in KateViewInternal::mousePressEvent (this=0x7df090, e=0x7fffffffc4e0)                 
    at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kate/view/kateviewinternal.cpp:2541         
#11 0x00000031d740b16c in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4                        
#12 0x00000031d73b4d0d in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib64/qt4/libQtGui.so.4
#13 0x00000031d73bcc4c in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#14 0x00007ffff6fb6ed3 in KApplication::notify (this=0x7fffffffd0d0, receiver=0x7df090, event=0x7fffffffc4e0)
    at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kdeui/kernel/kapplication.cpp:302
#15 0x00000031d376b903 in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /usr/lib64/qt4/libQtCore.so.4
#16 0x00000031d73bb7eb in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget*---Type <return> to continue, or q <return> to quit---
*, QPointer<QWidget>&, bool) () from /usr/lib64/qt4/libQtGui.so.4
#17 0x00000031d743c748 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#18 0x00000031d743b8fc in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#19 0x00000031d7463afa in ?? () from /usr/lib64/qt4/libQtGui.so.4
#20 0x00000031cdc3a6f1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#21 0x00000031cdc3de88 in ?? () from /usr/lib/libglib-2.0.so.0
#22 0x00000031cdc3e03c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#23 0x00000031d3794a1c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib64/qt4/libQtCore.so.4
#24 0x00000031d746369f in ?? () from /usr/lib64/qt4/libQtGui.so.4
#25 0x00000031d376a272 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib64/qt4/libQtCore.so.4
#26 0x00000031d376a644 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib64/qt4/libQtCore.so.4
#27 0x00000031d376ca36 in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#28 0x00007ffff7df1d28 in kdemain (argc=1, argv=0x7fffffffddb8)
    at /var/tmp/portage/kde-base/kwrite-4.3.5/work/kwrite-4.3.5/kwrite/kwritemain.cpp:782
#29 0x0000000000400867 in main (argc=1, argv=0x7fffffffddb8)
    at /var/tmp/portage/kde-base/kwrite-4.3.5/work/kwrite-4.3.5_build/kwrite/kwrite_dummy.cpp:3

There's still ?? in some of the QT function. If you need those, I will have to compile the corresponding QT packages. Just tell me the files and I'll compile the corresponding packages.
Comment 10 Dominik Haumann 2010-05-28 01:42:50 UTC
> Open kwrite, trippleclick on it (on the blank editable area of kwrite),
> it crashes with the following.

I still cannot reproduce. The backtrace now contains very useful information and is a duplicate of bug #237256.
Comment 11 Dominik Haumann 2010-05-28 01:43:25 UTC

*** This bug has been marked as a duplicate of bug 237256 ***
Comment 12 dE 2010-05-28 06:33:20 UTC
Ok :D...nice to know.