Kate crashes when pasting data that contains newlines in a new document and then saving. Reproducible: Always Steps to Reproduce: 1. Open Kate. 2. Type some text that contains new lines. 3. Click ^A to select this text and ^C to copy it. 4. Click the new file icon. 5. Type ^V in new window to paste the text. 6. Type ^S to save and enter a filename. Actual Results: Kate Crashes. With the above steps it's always reproducible. However, Kate doesn't always crash when saving a new file. For example, if you don't paste the data and type it yourself, or if you choose File->Save instead of typing ^S, it may not crash. It does crash quite often when saving a new file, though :-( Expected Results: guess... Backtrace: Using host libthread_db library "/lib/libthread_db.so.1". [KCrash handler] #6 0x00000001 in ?? () #7 0x40d6a354 in QObject::disconnect(QObject const*, char const*, QObject const*, char const*) () from /usr/qt/3/lib/libqt-mt.so.3 #8 0x4092d6d0 in KAccelPrivate::eventFilter(QObject*, QEvent*) () from /usr/kde/3.3/lib/libkdecore.so.4 #9 0x40d685ee in QObject::activate_filters(QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3 #10 0x40d6851c in QObject::event(QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3 #11 0x40da0caf in QWidget::event(QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3 #12 0x40e5efc2 in QMainWindow::event(QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3 #13 0x401502d5 in KMdiMainFrm::event(QEvent*) () from /usr/kde/3.3/lib/libkmdi.so.1 #14 0x40d0e87f in QApplication::internalNotify(QObject*, QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3 #15 0x40d0e115 in QApplication::notify(QObject*, QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3 #16 0x4089f27a in KApplication::notify(QObject*, QEvent*) () from /usr/kde/3.3/lib/libkdecore.so.4 #17 0x4092c692 in KAccelEventHandler::x11Event(_XEvent*) () from /usr/kde/3.3/lib/libkdecore.so.4 #18 0x408a519f in KApplication::x11EventFilter(_XEvent*) () from /usr/kde/3.3/lib/libkdecore.so.4 #19 0x40c97628 in qt_set_x11_event_filter(int (*)(_XEvent*)) () from /usr/qt/3/lib/libqt-mt.so.3 #20 0x40ca1a1b in QApplication::x11ProcessEvent(_XEvent*) () from /usr/qt/3/lib/libqt-mt.so.3 #21 0x40cb8d54 in QEventLoop::processEvents(unsigned) () from /usr/qt/3/lib/libqt-mt.so.3 #22 0x40d20a48 in QEventLoop::enterLoop() () from /usr/qt/3/lib/libqt-mt.so.3 #23 0x40d208f8 in QEventLoop::exec() () from /usr/qt/3/lib/libqt-mt.so.3 #24 0x40d0ead1 in QApplication::exec() () from /usr/qt/3/lib/libqt-mt.so.3 #25 0x40014ae3 in kdemain () from /usr/kde/3.3/lib/libkdeinit_kate.so #26 0x0804877f in ?? () #27 0x00000001 in ?? () #28 0xbfffd274 in ?? () #29 0xbfffd248 in ?? () #30 0x415be880 in __libc_start_main () from /lib/libc.so.6 Emerge info: Portage 2.0.50-r11 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.4.26-gentoo-r6) ================================================================= System uname: 2.4.26-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -pipe -march=pentium4" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -pipe -march=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.du.se/pub/os/gentoo http://ftp.lug.ro/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib acpi acpi4linux aim alsa apache2 apm arts async avi berkdb bitmap-fonts bzlib calendar cddb cdr cdrom cgi chroot clanJavaScript clanVoice cpdflib crypt cscope ctype cups curl curlwrappers dbx dga dio directfb divx4linux dnd doc dv dvb dvd dvdr dvdread encode erandom escreen esd exif fastcgi fbcon fbdev fdftk ffmpeg fftw flash flatfile fluidsynth foomaticdb freetds freetype ftp gdbm gif gimp gimpprint glgd glut gphoto2 gpm gs gtk2 gtkhtml guile iconv icq ieee1394 image imagemagick imlib innodb iodbc jabber java javacomm javadoc javamail javascript jboss jce jdepend jikes jp2 jpeg kde ldap libcaca libg++ libgda libwww log4j lzw lzw-tiff mad matroska mcal md5sum mhash migemo mikmod ming mixer mng mono motif mozilla mozp3p mozsvg mozxmlterm mpeg mpeg4 mplayer msdav msn mssql music mysql mysqli ncurses net netcdf nls nptl odbc offensive ofx oggvorbis ooo-kde openal opengl openssh operanom2 oscar oss pam pcntl pcre pdflib pear-db perl pfpro php plotutils png portaudio posix print pthreads python qdbm qt quicktime quotes readline recode regexp rhino samba sasl sdl servlet-2.3 servlet-2.4 session shaper shared sharedmem simplexml skey slang slp smartcard sndfile soap sockets socks5 sox speedo spell spl ssl stroke svg sysvipc szip tcltk tcpd tetex theora tidy tiff timidity tokenizer transcode transparent-proxy truetype type1 ucs4 unicode usb uudeview v4l v4l2 video_cards_radeon vim-with-x wmf wxwindows x86xalan xerces xforms xine xml xml2 xmlrpc xmms xprint xsl xv xvid yahoo yaz yv12zlib zvbi"
What version of Kate/KDE? Perhaps it's fixed in 3.3.1?
KDE version = 3.3.0 It seems to be a problem with the libqt-mt library. Some other programs (Ark is one example) crash on this library under certain conditions. Maybe it's something I've compiled in libqt that most people haven't?
Have you tried recompiling qt?
Well, paradoxically, re-emerging qt seems to have solved the problem (and a couple of other predictable crashes). Gregorio, what do you think the problem was?
Who knows... ;) There are so many things that could be involved, compiler options, the compiler itself, glibc, some mismatch beetween libraries used at compile time and libraries used at runtime...