| Summary: | select buffer paste in kate/kwrite causing line wrap causes crash (X, qt3) | ||
|---|---|---|---|
| Product: | TDE | Reporter: | David C. Rankin <trin> |
| Component: | tdelibs | Assignee: | Timothy Pearson <kb9vqf> |
| Status: | RESOLVED NOTOURPROBLEM | ||
| Severity: | blocker | CC: | albator78, bugwatch, darrella |
| Priority: | P1 | ||
| Version: | R14.0.0 [Trinity] | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Attachments: |
kdDebug output from kate prior to crash
gdb konsole scrollback showing symbols available strace of kwrite crash on i686 strace of kwrite crash on i686 - April 3, 2012 source |
||
Created attachment 562 [details]
kdDebug output from kate prior to crash
This is the scrollback for kate showing kdDebug output leading up to the crash. It may/may not be useful.
Created attachment 563 [details]
gdb konsole scrollback showing symbols available
This is the gbd scrollback that details what symbols were loaded and which were not found.
This bug affects everything in TDE that displays text. Simply viewing a text file in konqueror file manager with (Preview in Advanced Text Editor) will cause konqueror to lock up. Here is the backtrace from that:
(gdb) bt
#0 0xb777f416 in __kernel_vsyscall ()
#1 0xb65154ed in ___newselect_nocancel () from /lib/libc.so.6
#2 0xb7466f56 in KIO::SlaveBase::dispatchLoop (this=0xbfae15b8)
at /build/src/tdelibs/kio/kio/slavebase.cpp:286
#3 0xb7770fa6 in kdemain (argc=4, argv=0xbfae15b8) at /build/src/tdelibs/kioslave/file/file.cc:128
#4 0x080503c1 in launch (argc=4, _name=0x8bc09b4 "kio_file", args=0xbfae1784 "\300\216\367\266",
cwd=0x0, envc=0, envs=0x8bc0a2a "", reset_env=false, tty=0x0, avoid_loops=false,
startup_id_str=0xfffffdfe <Address 0xfffffdfe out of bounds>,
startup_id_str@entry=0x4 <Address 0x4 out of bounds>) at /build/src/tdelibs/kinit/kinit.cpp:673
#5 0x0805148c in handle_launcher_request (sock=<optimized out>, sock@entry=-1)
at /build/src/tdelibs/kinit/kinit.cpp:1240
#6 0x08051a0a in handle_requests (waitForPid=waitForPid@entry=0)
at /build/src/tdelibs/kinit/kinit.cpp:1443
#7 0x0804d775 in main (argc=5, argv=0xbfae1d54, envp=0xbfae1d6c)
at /build/src/tdelibs/kinit/kinit.cpp:1908
(In reply to comment #0) > Beginning 4/25/12 on Archlinux, if kate/kwrite is opened and small amounts of > text (less than a complete line) are pasted into the document using the select > buffer, pasting additional text that will cause the line to wrap will cause a > complete lockup of kate/kwrite. When this occurs, kate/kwrite cosumes nearly > 90% of the CPU and must be terminated with 'kill' as the application is locked. > > This is most likely due to recent updates to xorg or assiated packages > causing a failure in qt3 or libkatepart. The following is the backtrace from an > i686 box. For some reason I get fuller backtraces on x86_64. This is what I > caugt on i686: > > (gdb) bt > #0 0xb610a959 in TQFontMetrics::charWidth (this=0x8fa3800, str=..., pos=79) at > kernel/qfont_x11.cpp:705 > #1 0xb541a46b in width (tabWidth=8, italic=false, bold=false, col=79, > text=..., this=0x8fa37f0) > at /build/src/tdelibs/kate/part/katefont.h:76 > #2 width (tabWidth=8, col=79, text=..., fs=..., this=<optimized out>) > at /build/src/tdelibs/kate/part/kateattribute.h:55 > #3 KateRenderer::textWidth (this=0x933d3e8, textLine=..., startcol=0, > maxwidth=695, > needWrap=0xbf8e73a8, endX=0xbf8e739c) at > /build/src/tdelibs/kate/part/katerenderer.cpp:797 > #4 0xb53f7d97 in KateViewInternal::range (this=0x9322170, realLine=0, > previous=0x0) > at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1331 > #5 0xb53f91ae in KateViewInternal::range (this=0x9322170, realLine=0, > viewLine=1) > at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1418 > #6 0x09322170 in ?? () > Backtrace stopped: previous frame inner to this frame (corrupt stack?) > > I'll begin the debug build on x86_64. > > If your system has the newer packages that cause this bug, to confirm, all > you need to do is open konsole and cat a file or do something to give you text > to select and copy into kwrite. Then begin selecting text (one or two words at > a time) in konsole and then middle-mouse paste into line 1 of kwrite. Continue > doing this until you get to the point where the line will wrap on the next > paste. When you paste the next selection that would cause line 1 in kwrite to > wrap - the crash will occur. See example: > > http://nirvana.3111skyline.com/dl/dt/trinity/ss/kwrite-i686-crash.jpg > > You will then have to 'terminate' kwrite by clicking the close button and > wait for the 'Terminate' or 'Keep Running' dialog to appear (or 'kill $(pidof > kwrite)' in konsole) > > This is 100% repeatable and has continued after multiple rebuilds of tqt3, > tqtinterface, tdelibs and tdebase. I am working to compile a list of packages > recently updated. Let me know what other information you need. This makes no sense whatsoever. The line in question looks like this: d->engineData->widthCache[ ch.unicode() ]; and there is no way such a simple line of code should ever hang. Something is very wrong somewhere, and until I can replicate the problem here I probably won't be able to solve it. Personally, I would see if similar hangs happen with Qt4 applications before spending lots of time debugging TDE. Does the problem persist if compiled with gcc 4.6? I rebuilt the x86_64 packages with full symbols and now have a full debug with gdb. I hope this will solve it:
#0 KateViewInternal::range (this=this@entry=0xfa2480, realLine=realLine@entry=0,
previous=previous@entry=0x0) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1353
#1 0x00007f02d150bb32 in KateViewInternal::range (this=this@entry=0xfa2480, realLine=0,
viewLine=viewLine@entry=1) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1418
#2 0x00007f02d150d4c9 in KateViewInternal::viewLineOffset (this=this@entry=0xfa2480, virtualCursor=...,
offset=0, keepX=keepX@entry=false) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1578
#3 0x00007f02d1510d25 in KateViewInternal::makeVisible (this=this@entry=0xfa2480, c=..., endCol=95,
force=force@entry=false, center=center@entry=false, calledExternally=calledExternally@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:781
#4 0x00007f02d1511352 in KateViewInternal::updateCursor (this=this@entry=0xfa2480, newCursor=...,
force=force@entry=true, center=center@entry=false, calledExternally=calledExternally@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2204
#5 0x00007f02d15154c0 in KateViewInternal::editEnd (this=0xfa2480, editTagLineStart=0,
editTagLineEnd=<optimized out>, tagFrom=<optimized out>)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:3385
#6 0x00007f02d14b1ef0 in KateDocument::editEnd (this=0x1509200)
at /build/src/tdelibs/kate/part/katedocument.cpp:1032
#7 0x00007f02d14abf5b in KateDocument::paste (this=0x1509200, view=0x1585290)
at /build/src/tdelibs/kate/part/katedocument.cpp:3249
#8 0x00007f02d14e3a53 in KateView::paste (this=0x1585290) at /build/src/tdelibs/kate/part/kateview.cpp:1597
#9 0x00007f02d1513102 in KateViewInternal::mouseReleaseEvent (this=0xfa2480, e=0x7fff3a72d260)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2965
#10 0x00007f02d984c343 in TQWidget::event (this=0xfa2480, e=0x7fff3a72d260) at kernel/qwidget.cpp:4725
#11 0x00007f02d97b6559 in TQApplication::internalNotify (this=0x7fff3a72db00, receiver=0xfa2480,
e=0x7fff3a72d260) at kernel/qapplication.cpp:2638
#12 0x00007f02d97b5be3 in TQApplication::notify (this=0x7fff3a72db00, receiver=0xfa2480, e=0x7fff3a72d260)
at kernel/qapplication.cpp:2424
#13 0x00007f02da10d8c4 in KApplication::notify (this=0x7fff3a72db00, receiver=0xfa2480, event=0x7fff3a72d260)
at /build/src/tdelibs/tdecore/kapplication.cpp:583
#14 0x00007f02d97486b3 in TQApplication::sendSpontaneousEvent (receiver=0xfa2480, event=0x7fff3a72d260)
at kernel/ntqapplication.h:526
#15 0x00007f02d9741f53 in TQETWidget::translateMouseEvent (this=0xfa2480, event=0x7fff3a72d770)
at kernel/qapplication_x11.cpp:4380
#16 0x00007f02d973f871 in TQApplication::x11ProcessEvent (this=0x7fff3a72db00, event=0x7fff3a72d770)
at kernel/qapplication_x11.cpp:3557
#17 0x00007f02d975ac44 in TQEventLoop::processEvents (this=0xd2d3a0, flags=4)
at kernel/qeventloop_x11.cpp:195
#18 0x00007f02d97c9818 in TQEventLoop::enterLoop (this=0xd2d3a0) at kernel/qeventloop.cpp:201
#19 0x00007f02d97c96e9 in TQEventLoop::exec (this=0xd2d3a0) at kernel/qeventloop.cpp:148
#20 0x00007f02d97b6689 in TQApplication::exec (this=0x7fff3a72db00) at kernel/qapplication.cpp:2761
#21 0x00007f02d2b8ccf6 in kdemain (argc=2, argv=0xcd1af0) at /build/src/tdebase/kate/app/katemain.cpp:253
#22 0x00007f02d2d92860 in tdeinitmain (argc=2, argv=0xcd1af0)
at /build/src/build/kate/app/kate_tdeinit_module.cpp:3
#23 0x00000000004094ee in launch (argc=argc@entry=2, _name=<optimized out>, _name@entry=0xcd6598 "kate",
args=<optimized out>, args@entry=0xcd659d "--use", cwd=cwd@entry=0x0, envc=envc@entry=1,
envs=<optimized out>, envs@entry=0xcd65ab "DISPLAY=:0", reset_env=false, tty=tty@entry=0x0,
avoid_loops=false,
startup_id_str=startup_id_str@entry=0xcd65be "valkyrie;1335549542;176850;1767_TIME104698303")
at /build/src/tdelibs/kinit/kinit.cpp:673
#24 0x000000000040a5ee in handle_launcher_request (sock=9) at /build/src/tdelibs/kinit/kinit.cpp:1240
#25 0x000000000040abda in handle_requests (waitForPid=waitForPid@entry=0)
at /build/src/tdelibs/kinit/kinit.cpp:1443
#26 0x0000000000406b26 in main (argc=5, argv=0x7fff0000000b, envp=0x7fff3a72ed98)
at /build/src/tdelibs/kinit/kinit.cpp:1908
Tim, If this full debug doesn't help, I can try a full build with gcc 4.6. I didn't have any problems before this popped up with gcc 4.7 builds though. I'll still need to get a complete list of updated packages. I'll try and have that by tonight. Let me know if this full debug provides information that will help or if we just need to concentrate of a gcc 4.6 rebuild. There are those packages that I'm building with -fpermissive, but I haven't had problems with that in the past. The current list building with -fpermissive is: amarok digikam kaffeine kipi-plugins kmplayer (other issues as well) koffice (still requires libpng15 fixes) krusader python-tqt rosegarden tdeadmin tdebase tdeedu tdegames tdegraphics tdepim Don't know if that is related... The last backtrace was for kate. Here is a backtrace for kwrite. Similar, but the crash seems to originate in a different file:
(gdb) bt
#0 at (i=0, this=0x14cad30) at /opt/tqt3/include/ntqmemarray.h:105
#1 KateRenderer::attribute (this=this@entry=0x14947d0, pos=0)
at /build/src/tdelibs/kate/part/katerenderer.cpp:72
#2 0x00007f309cd33049 in KateRenderer::textWidth (this=0x14947d0, textLine=..., startcol=0, maxwidth=758,
needWrap=0x7fffd8f25fc8, endX=0x7fffd8f25fbc) at /build/src/tdelibs/kate/part/katerenderer.cpp:796
#3 0x00007f309cd14674 in KateViewInternal::range (this=this@entry=0x1547c00, realLine=realLine@entry=0,
previous=previous@entry=0x0) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1331
#4 0x00007f309cd15b32 in KateViewInternal::range (this=this@entry=0x1547c00, realLine=0,
viewLine=viewLine@entry=1) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1418
#5 0x00007f309cd174c9 in KateViewInternal::viewLineOffset (this=this@entry=0x1547c00, virtualCursor=...,
offset=0, keepX=keepX@entry=false) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1578
#6 0x00007f309cd1ad25 in KateViewInternal::makeVisible (this=this@entry=0x1547c00, c=..., endCol=109,
force=force@entry=false, center=center@entry=false, calledExternally=calledExternally@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:781
#7 0x00007f309cd1b352 in KateViewInternal::updateCursor (this=this@entry=0x1547c00, newCursor=...,
force=force@entry=true, center=center@entry=false, calledExternally=calledExternally@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2204
#8 0x00007f309cd1f4c0 in KateViewInternal::editEnd (this=0x1547c00, editTagLineStart=0,
editTagLineEnd=<optimized out>, tagFrom=<optimized out>)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:3385
#9 0x00007f309ccbbef0 in KateDocument::editEnd (this=0x13a4120)
at /build/src/tdelibs/kate/part/katedocument.cpp:1032
#10 0x00007f309ccb5f5b in KateDocument::paste (this=0x13a4120, view=0x1380a40)
at /build/src/tdelibs/kate/part/katedocument.cpp:3249
#11 0x00007f309cceda53 in KateView::paste (this=0x1380a40) at /build/src/tdelibs/kate/part/kateview.cpp:1597
#12 0x00007f309cd1d102 in KateViewInternal::mouseReleaseEvent (this=0x1547c00, e=0x7fffd8f268d0)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2965
#13 0x00007f30a2bcc343 in TQWidget::event (this=0x1547c00, e=0x7fffd8f268d0) at kernel/qwidget.cpp:4725
#14 0x00007f30a2b36559 in TQApplication::internalNotify (this=0x7fffd8f27130, receiver=0x1547c00,
e=0x7fffd8f268d0) at kernel/qapplication.cpp:2638
#15 0x00007f30a2b35be3 in TQApplication::notify (this=0x7fffd8f27130, receiver=0x1547c00, e=0x7fffd8f268d0)
at kernel/qapplication.cpp:2424
#16 0x00007f30a3aff8c4 in KApplication::notify (this=0x7fffd8f27130, receiver=0x1547c00,
event=0x7fffd8f268d0) at /build/src/tdelibs/tdecore/kapplication.cpp:583
#17 0x00007f30a2ac86b3 in TQApplication::sendSpontaneousEvent (receiver=0x1547c00, event=0x7fffd8f268d0)
at kernel/ntqapplication.h:526
#18 0x00007f30a2ac1f53 in TQETWidget::translateMouseEvent (this=0x1547c00, event=0x7fffd8f26de0)
at kernel/qapplication_x11.cpp:4380
#19 0x00007f30a2abf871 in TQApplication::x11ProcessEvent (this=0x7fffd8f27130, event=0x7fffd8f26de0)
at kernel/qapplication_x11.cpp:3557
#20 0x00007f30a2adac44 in TQEventLoop::processEvents (this=0x127cfd0, flags=4)
at kernel/qeventloop_x11.cpp:195
#21 0x00007f30a2b49818 in TQEventLoop::enterLoop (this=0x127cfd0) at kernel/qeventloop.cpp:201
#22 0x00007f30a2b496e9 in TQEventLoop::exec (this=0x127cfd0) at kernel/qeventloop.cpp:148
#23 0x00007f30a2b36689 in TQApplication::exec (this=0x7fffd8f27130) at kernel/qapplication.cpp:2761
#24 0x00007f30a6e713a8 in kdemain (argc=1, argv=0x7fffd8f27708)
at /build/src/tdebase/kate/app/kwritemain.cpp:692
#25 0x000000000040082c in main (argc=1, argv=0x7fffd8f27708)
at /build/src/build/kate/app/kwrite_tdeinit_executable.cpp:2
(gdb)
New backtrace from kate -- this is just from opening a file with lines that wrap. The error seems to point to qstring:
(gdb) bt
#0 0x00007f02d9b1c60e in isSpace (ch=...) at tools/qunicodetables_p.h:217
#1 0x00007f02d9b10a6c in TQChar::isSpace (this=0xed2b18) at tools/qstring.cpp:475
#2 0x00007f02d1528fc1 in KateRenderer::textWidth (this=0x12ad5a0, textLine=..., startcol=0, maxwidth=624,
needWrap=0x7fff3a72cad8, endX=0x7fff3a72cacc) at /build/src/tdelibs/kate/part/katerenderer.cpp:806
#3 0x00007f02d150a674 in KateViewInternal::range (this=this@entry=0x12b11c0, realLine=4,
previous=previous@entry=0x0) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1331
#4 0x00007f02d150c0b6 in KateViewInternal::range (this=this@entry=0x12b11c0, realCursor=...)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1403
#5 0x00007f02d150e6b8 in KateViewInternal::updateView (this=this@entry=0x12b11c0,
changed=changed@entry=false, viewLinesScrolled=viewLinesScrolled@entry=3)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:525
#6 0x00007f02d1510742 in KateViewInternal::scrollPos (this=this@entry=0x12b11c0, c=...,
force=force@entry=false, calledExternally=calledExternally@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:425
#7 0x00007f02d1515ede in KateViewInternal::scrollViewLines (this=this@entry=0x12b11c0,
offset=<optimized out>) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:335
#8 0x00007f02d1516037 in KateViewInternal::wheelEvent (this=0x12b11c0, e=<optimized out>)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:3274
#9 0x00007f02d984c3dd in TQWidget::event (this=0x12b11c0, e=0x7fff3a72d160) at kernel/qwidget.cpp:4737
#10 0x00007f02d97b6559 in TQApplication::internalNotify (this=0x7fff3a72db00, receiver=0x12b11c0,
e=0x7fff3a72d160) at kernel/qapplication.cpp:2638
#11 0x00007f02d97b5e70 in TQApplication::notify (this=0x7fff3a72db00, receiver=0x12b11c0, e=0x7fff3a72d160)
at kernel/qapplication.cpp:2458
#12 0x00007f02da10d8c4 in KApplication::notify (this=0x7fff3a72db00, receiver=0x12b11c0,
event=0x7fff3a72d160) at /build/src/tdelibs/tdecore/kapplication.cpp:583
#13 0x00007f02d97486b3 in TQApplication::sendSpontaneousEvent (receiver=0x12b11c0, event=0x7fff3a72d160)
at kernel/ntqapplication.h:526
#14 0x00007f02d97420e5 in TQETWidget::translateWheelEvent (this=0x12b11c0, global_x=788, global_y=554,
delta=-120, state=0, orient=TQt::Vertical) at kernel/qapplication_x11.cpp:4403
#15 0x00007f02d9741701 in TQETWidget::translateMouseEvent (this=0x12b11c0, event=0x7fff3a72d770)
at kernel/qapplication_x11.cpp:4204
#16 0x00007f02d973f871 in TQApplication::x11ProcessEvent (this=0x7fff3a72db00, event=0x7fff3a72d770)
at kernel/qapplication_x11.cpp:3557
#17 0x00007f02d975ac44 in TQEventLoop::processEvents (this=0xd2a330, flags=4)
at kernel/qeventloop_x11.cpp:195
#18 0x00007f02d97c9818 in TQEventLoop::enterLoop (this=0xd2a330) at kernel/qeventloop.cpp:201
#19 0x00007f02d97c96e9 in TQEventLoop::exec (this=0xd2a330) at kernel/qeventloop.cpp:148
#20 0x00007f02d97b6689 in TQApplication::exec (this=0x7fff3a72db00) at kernel/qapplication.cpp:2761
#21 0x00007f02d2b8ccf6 in kdemain (argc=2, argv=0xcd6550) at /build/src/tdebase/kate/app/katemain.cpp:253
#22 0x00007f02d2d92860 in tdeinitmain (argc=2, argv=0xcd6550)
at /build/src/build/kate/app/kate_tdeinit_module.cpp:3
#23 0x00000000004094ee in launch (argc=argc@entry=2, _name=<optimized out>, _name@entry=0xcd6598 "kate",
args=<optimized out>, args@entry=0xcd659d "--use", cwd=cwd@entry=0x0, envc=envc@entry=1,
envs=<optimized out>, envs@entry=0xcd65ab "DISPLAY=:0", reset_env=false, tty=tty@entry=0x0,
avoid_loops=false,
startup_id_str=startup_id_str@entry=0xcd65be "valkyrie;1335593493;244043;1767_TIME148649334")
at /build/src/tdelibs/kinit/kinit.cpp:673
#24 0x000000000040a5ee in handle_launcher_request (sock=9) at /build/src/tdelibs/kinit/kinit.cpp:1240
#25 0x000000000040abda in handle_requests (waitForPid=waitForPid@entry=0)
at /build/src/tdelibs/kinit/kinit.cpp:1443
#26 0x0000000000406b26 in main (argc=5, argv=0x7fff0000000b, envp=0x7fff3a72ed98)
at /build/src/tdelibs/kinit/kinit.cpp:1908
The tools/qunicodetables_p.h:217 error is complaining about:
inline bool isSpace( const TQChar &ch )
{
217 if( ch.unicode() >= 9 && ch.unicode() <=13 ) return TRUE;
TQChar::Category c = ::category( ch );
return c >= TQChar::Separator_Space && c <= TQChar::Separator_Paragraph;
}
I agree, that by itself doesn't make much sense -- is the char a space? Well, not it isn't a space, what is causing the wrap is a character, not a space in the pastes I've done that cause the crash. What I don't understand is the char 9-13 range. I may be reading this wrong, but the unicode chars 9-13 are (\t : tab, Unicode 9, \n : linefeed, Unicode 10, \v : vertical tab, Unicode 11, \f : formfeed, Unicode 12, \r : return, Unicode 13)
Why would 'isSpace' be returning 'TRUE' when the chars are not spaces or whitespace?
Well, what about the qstring.cpp error?:
case Z_DATA_ERROR:
#if defined(QT_CHECK_RANGE)
tqWarning( "qUncompress: Z_DATA_ERROR: Input data is corrupted." );
475 #endif
break;
I don't know what this means, but this code gets hit if switch ( res ) matches Z_DATA_ERROR, so it looks like something is generating a Z_DATA_ERROR. Could the fact that the isSpace may return something other than a space cause this??
Quanta suffers the same crash. Here is a quanta backtrace:
(gdb) bt
#0 0x00007f537942e052 in bold (this=<optimized out>) at /build/src/tdelibs/kate/part/katesupercursor.h:333
#1 width (tabWidth=<optimized out>, col=<optimized out>, text=..., fs=..., this=<optimized out>)
at /build/src/tdelibs/kate/part/kateattribute.h:55
#2 KateRenderer::textWidth (this=0x32f97f0, textLine=..., startcol=0, maxwidth=802,
needWrap=0x7fff408943b8, endX=0x7fff408943ac) at /build/src/tdelibs/kate/part/katerenderer.cpp:797
#3 0x00007f537940f674 in KateViewInternal::range (this=this@entry=0x2f81760, realLine=175,
previous=previous@entry=0x0) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1331
#4 0x00007f53794110b6 in KateViewInternal::range (this=this@entry=0x2f81760, realCursor=...)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1403
#5 0x00007f53794136b8 in KateViewInternal::updateView (this=this@entry=0x2f81760,
changed=changed@entry=false, viewLinesScrolled=viewLinesScrolled@entry=3)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:525
#6 0x00007f5379415742 in KateViewInternal::scrollPos (this=this@entry=0x2f81760, c=...,
force=force@entry=false, calledExternally=calledExternally@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:425
#7 0x00007f537941aede in KateViewInternal::scrollViewLines (this=this@entry=0x2f81760,
offset=<optimized out>) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:335
#8 0x00007f537941b037 in KateViewInternal::wheelEvent (this=0x2f81760, e=<optimized out>)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:3274
#9 0x00007f53815fa3dd in TQWidget::event (this=0x2f81760, e=0x7fff40894a40) at kernel/qwidget.cpp:4737
#10 0x00007f5381564559 in TQApplication::internalNotify (this=0x266c9e0, receiver=0x2f81760,
e=0x7fff40894a40) at kernel/qapplication.cpp:2638
#11 0x00007f5381563e70 in TQApplication::notify (this=0x266c9e0, receiver=0x2f81760, e=0x7fff40894a40)
at kernel/qapplication.cpp:2458
#12 0x00007f538232a8c4 in KApplication::notify (this=0x266c9e0, receiver=0x2f81760, event=0x7fff40894a40)
at /build/src/tdelibs/tdecore/kapplication.cpp:583
#13 0x00007f53814f66b3 in TQApplication::sendSpontaneousEvent (receiver=0x2f81760, event=0x7fff40894a40)
at kernel/ntqapplication.h:526
#14 0x00007f53814f00e5 in TQETWidget::translateWheelEvent (this=0x2f81760, global_x=547, global_y=516,
delta=-120, state=0, orient=TQt::Vertical) at kernel/qapplication_x11.cpp:4403
#15 0x00007f53814ef701 in TQETWidget::translateMouseEvent (this=0x2f81760, event=0x7fff40895050)
at kernel/qapplication_x11.cpp:4204
#16 0x00007f53814ed871 in TQApplication::x11ProcessEvent (this=0x266c9e0, event=0x7fff40895050)
at kernel/qapplication_x11.cpp:3557
#17 0x00007f5381508c44 in TQEventLoop::processEvents (this=0x26ac1d0, flags=4)
at kernel/qeventloop_x11.cpp:195
#18 0x00007f5381577818 in TQEventLoop::enterLoop (this=0x26ac1d0) at kernel/qeventloop.cpp:201
#19 0x00007f53815776e9 in TQEventLoop::exec (this=0x26ac1d0) at kernel/qeventloop.cpp:148
#20 0x00007f5381564689 in TQApplication::exec (this=0x266c9e0) at kernel/qapplication.cpp:2761
#21 0x00000000004c3817 in main ()
I can't offer anything useful at this point but to confirm I can't use kwrite in Slackware Current (gcc 4.7 xorg-server 1.9.5). I can use kate without incident. Created attachment 568 [details]
strace of kwrite crash on i686
This is with current tqt3 and tdebase, but with tdelibs from 4/16. Same crash, but as /dev/ammo42 suggested, I captured a strace on the i686 crash. Hope this helps.
Also, this bug occurs 100% of the time when pasting 'small' amounts of text (1-2 words at a time) until the line wraps. I can paste 10 lines of text into kwrite and keep editing - so it looks like something that effects the single line length computation.
I have completed downgrading through the sets of binaries I have and from that I can summize that this bug was introduced sometime between 3/29 and 4/10. In my 3/29 build, kwrite is fine. In my 4/10 build, this bug effects kwrite, kate, all editors EXCEPT kedit. (In reply to comment #12) > I have completed downgrading through the sets of binaries I have and from that > I can summize that this bug was introduced sometime between 3/29 and 4/10. In > my 3/29 build, kwrite is fine. In my 4/10 build, this bug effects kwrite, kate, > all editors EXCEPT kedit. Were you able to figure out if either tqt3, arts, tdelibs, or tdebase caused the problem? Created attachment 576 [details]
strace of kwrite crash on i686 - April 3, 2012 source
I rebuilt all packages this morning with sources from 4/3. This backtrace points to tqt3 being the problem:
Loaded symbols for /lib/libnss_files.so.2
0xb69ebb20 in __x86.get_pc_thunk.bx () from /opt/tqt3/lib/libtqt-mt.so.3
(gdb) bt
#0 0xb69ebb20 in __x86.get_pc_thunk.bx () from /opt/tqt3/lib/libtqt-mt.so.3
#1 0xb6a12d77 in category (c=...) at ../include/private/qunicodetables_p.h:99
#2 0xb6d89361 in isSpace (ch=...) at tools/qunicodetables_p.h:218
#3 0xb6d7e96f in TQChar::isSpace (this=0x8d8d810) at tools/qstring.cpp:475
#4 0xb5270346 in KateRenderer::textWidth (this=0x8b4e400, textLine=..., startcol=0,
maxwidth=751, needWrap=0xbfae53d8, endX=0xbfae53cc)
at /build/src/tdelibs/kate/part/katerenderer.cpp:806
#5 0xb524dd97 in KateViewInternal::range (this=0x8bc5e20, realLine=0, previous=0x0)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1331
#6 0xb524f1ae in KateViewInternal::range (this=0x8bc5e20, realLine=0, viewLine=1)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1418
#7 0x08bc5e20 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
During strace, I also got this dumped to the konsole window during character input and paste:
13:52 tdepv:~> strace -o vbh/tde/err/kwrite/strace0403.txt kwrite
/opt/tqt3/plugins/inputmethods/libqimsw-multi.so: undefined symbol: _ZN14TQInputContext11sendIMEventEN7TQEvent4TypeERK8TQStringii
/opt/tqt3/plugins/inputmethods/libqsimple.so: undefined symbol: _ZN14TQInputContext14x11FilterEventEP8TQWidgetP7_XEvent
/opt/tqt3/plugins/inputmethods/libqxim.so: undefined symbol: _ZN14TQInputContext11filterEventEPK7TQEvent
/opt/tqt3/plugins/inputmethods/libqimsw-multi.so: undefined symbol: _ZN14TQInputContext11sendIMEventEN7TQEvent4TypeERK8TQStringii
/opt/tqt3/plugins/inputmethods/libqsimple.so: undefined symbol: _ZN14TQInputContext14x11FilterEventEP8TQWidgetP7_XEvent
/opt/tqt3/plugins/inputmethods/libqxim.so: undefined symbol: _ZN14TQInputContext11filterEventEPK7TQEvent
/opt/tqt3/plugins/inputmethods/libqimsw-multi.so: undefined symbol: _ZN14TQInputContext11sendIMEventEN7TQEvent4TypeERK8TQStringii
/opt/tqt3/plugins/inputmethods/libqsimple.so: undefined symbol: _ZN14TQInputContext14x11FilterEventEP8TQWidgetP7_XEvent
/opt/tqt3/plugins/inputmethods/libqxim.so: undefined symbol: _ZN14TQInputContext11filterEventEPK7TQEvent
/opt/tqt3/plugins/inputmethods/libqimsw-multi.so: undefined symbol: _ZN14TQInputContext11sendIMEventEN7TQEvent4TypeERK8TQStringii
/opt/tqt3/plugins/inputmethods/libqsimple.so: undefined symbol: _ZN14TQInputContext14x11FilterEventEP8TQWidgetP7_XEvent
/opt/tqt3/plugins/inputmethods/libqxim.so: undefined symbol: _ZN14TQInputContext11filterEventEPK7TQEvent
<snip>
What say the experts? Any help?
I rebuilt TDE from 4/1 sources with full debug in attempt to further look into the kwrite crash that Darrell and I have experienced with TDE built on gcc 4.7. With this build, if it is a source/bad patch/tde issue, then with my 3/29 build giving no crash and my 4/1 build crashing, that would point to some problem in between those two dates. However, I am coming around to the thought that -- this isn't a TDE problem and is more likely a problem introduced by the gcc 4.7 interpretation of the TDE code. I will still have to build the 3/29 sources with gcc 4.7 to confirm that to be the case. I have 3/29 binaries that work fine (which I'm fairly sure were built on gcc 4.7, but I can't remember). If I rebuild with gcc47 on the 3/29 sources and get the same failure -- that, in my mind, conclusively points to the problem being gcc47.
If that is the case -- how in the heck do you debug something like that? I don't even know where to begin. (well, I do, but that's by asking). So with full debug packages built, on the 4/1 sources, I get the following backtrace. If this doesn't point to anything specific, then all we can do is wait on the 3/29 build to finish. Let me know if you see anything in this backtrace:
0x00007f1723b65947 in KateLineRange (this=0x7ffffcad3100)
at /build/src/tdelibs/kate/part/katelinerange.h:25
25 /build/src/tdelibs/kate/part/katelinerange.h: No such file or directory.
(gdb) bt
#0 0x00007f1723b65947 in KateLineRange (this=0x7ffffcad3100)
at /build/src/tdelibs/kate/part/katelinerange.h:25
#1 KateViewInternal::range (this=this@entry=0x152c5d0, realLine=realLine@entry=4,
previous=previous@entry=0x0)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1308
#2 0x00007f1723b66b32 in KateViewInternal::range (this=this@entry=0x152c5d0,
realLine=4, viewLine=viewLine@entry=1)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1418
#3 0x00007f1723b66fd3 in KateViewInternal::nextRange (this=this@entry=0x152c5d0)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1391
#4 0x00007f1723b6ec7f in KateViewInternal::cursorDown (this=0x152c5d0, sel=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1772
#5 0x00007f1723b4bc9c in KateView::tqt_invoke (this=0x173dac0, _id=172,
_o=0x7ffffcad3370) at /build/src/build/kate/part/kateview.moc:772
#6 0x00007f17299d0d35 in TQObject::activate_signal (this=0x16805c0, clist=0x14729f0,
o=0x7ffffcad3370) at kernel/qobject.cpp:2383
#7 0x00007f17299d0bbb in TQObject::activate_signal (this=0x16805c0, signal=2)
at kernel/qobject.cpp:2352
#8 0x00007f172ba21a24 in KAction::tqt_invoke (this=0x16805c0, _id=15,
_o=0x7ffffcad3480) at /build/src/build/tdeui/kaction.moc:216
#9 0x00007f17299d0d35 in TQObject::activate_signal (this=0x172ae50, clist=0x16d2780,
o=0x7ffffcad3480) at kernel/qobject.cpp:2383
#10 0x00007f17299d0bbb in TQObject::activate_signal (this=0x172ae50, signal=2)
at kernel/qobject.cpp:2352
#11 0x00007f172a9bacc5 in KAccelPrivate::emitActivatedSignal (
this=this@entry=0x172ae50, pAction=0x14b2fa0)
at /build/src/tdelibs/tdecore/kaccel.cpp:403
#12 0x00007f172a9bc8db in KAccelPrivate::eventFilter (this=0x172ae50, pEvent=
0x7ffffcad3ab0) at /build/src/tdelibs/tdecore/kaccel.cpp:373
#13 0x00007f17299ce4cc in TQObject::activate_filters (this=0x152c5d0,
e=0x7ffffcad3ab0) at kernel/qobject.cpp:930
#14 0x00007f17299ce326 in TQObject::event (this=0x152c5d0, e=0x7ffffcad3ab0)
at kernel/qobject.cpp:762
#15 0x00007f1729a06237 in TQWidget::event (this=0x152c5d0, e=0x7ffffcad3ab0)
at kernel/qwidget.cpp:4701
#16 0x00007f1729970559 in TQApplication::internalNotify (this=0x7ffffcad4170,
receiver=0x152c5d0, e=0x7ffffcad3ab0) at kernel/qapplication.cpp:2638
#17 0x00007f172996f9eb in TQApplication::notify (this=0x7ffffcad4170,
receiver=0x152c5d0, e=0x7ffffcad3ab0) at kernel/qapplication.cpp:2395
#18 0x00007f172a92a844 in KApplication::notify (this=0x7ffffcad4170,
receiver=0x152c5d0, event=0x7ffffcad3ab0)
at /build/src/tdelibs/tdecore/kapplication.cpp:583
#19 0x00007f172a9b8f88 in sendEvent (event=0x7ffffcad3ab0, receiver=<optimized out>)
at /opt/tqt3/include/ntqapplication.h:523
#20 KAccelEventHandler::x11Event (this=<optimized out>, pEvent=<optimized out>)
at /build/src/tdelibs/tdecore/kaccel.cpp:147
#21 0x00007f172a92c5a8 in publicx11Event (e=0x7ffffcad3e20, this=<optimized out>)
at /build/src/tdelibs/tdecore/kapplication.cpp:1782
#22 KApplication::x11EventFilter (this=0x7ffffcad4170, _event=0x7ffffcad3e20)
at /build/src/tdelibs/tdecore/kapplication.cpp:2094
#23 0x00007f17298ef48f in qt_x11EventFilter (ev=0x7ffffcad3e20)
at kernel/qapplication_x11.cpp:422
#24 0x00007f17298f929a in TQApplication::x11ProcessEvent (this=0x7ffffcad4170,
event=0x7ffffcad3e20) at kernel/qapplication_x11.cpp:3422
#25 0x00007f1729914c44 in TQEventLoop::processEvents (this=0x1378ec0, flags=4)
at kernel/qeventloop_x11.cpp:195
#26 0x00007f1729983818 in TQEventLoop::enterLoop (this=0x1378ec0)
at kernel/qeventloop.cpp:201
#27 0x00007f17299836e9 in TQEventLoop::exec (this=0x1378ec0)
at kernel/qeventloop.cpp:148
#28 0x00007f1729970689 in TQApplication::exec (this=0x7ffffcad4170)
at kernel/qapplication.cpp:2761
#29 0x00007f172dc5f3a8 in kdemain (argc=1, argv=0x7ffffcad4748)
at /build/src/tdebase/kate/app/kwritemain.cpp:692
#30 0x000000000040082c in main (argc=1, argv=0x7ffffcad4748)
at /build/src/build/kate/app/kwrite_tdeinit_executable.cpp:2
(gdb)
Tim, Darrell, all
It's confirmed - the same kwrite crash occurs when the 3/29 sources are rebuilt on gcc 4.7. We are challenged with what will be a fun bug hunt that will take a skilled dev who is familiar with this type of debug. I did have full debug built into the packages and here is the backtrace. I'm at a standstill. I know not where to go next. Experts, please weigh in....
Loaded symbols for /lib/libnss_files.so.2
0x00007f5859c98200 in isSpace () from /opt/tqt3/lib/libtqt-mt.so.3
(gdb) bt
#0 0x00007f5859c98200 in isSpace () from /opt/tqt3/lib/libtqt-mt.so.3
#1 0x00007f585a0a6a6c in TQChar::isSpace (this=0x1c9b010) at tools/qstring.cpp:475
#2 0x00007f5853f5ffc1 in KateRenderer::textWidth (this=0x1aa9210, textLine=...,
startcol=0, maxwidth=817, needWrap=0x7fffc9605ea8, endX=0x7fffc9605e9c)
at /build/src/tdelibs/kate/part/katerenderer.cpp:806
#3 0x00007f5853f41674 in KateViewInternal::range (this=this@entry=0x1a66ce0,
realLine=realLine@entry=0, previous=previous@entry=0x0)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1331
#4 0x00007f5853f42b32 in KateViewInternal::range (this=this@entry=0x1a66ce0, realLine=0,
viewLine=viewLine@entry=1) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1418
#5 0x00007f5853f444c9 in KateViewInternal::viewLineOffset (this=this@entry=0x1a66ce0,
virtualCursor=..., offset=0, keepX=keepX@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1578
#6 0x00007f5853f47d25 in KateViewInternal::makeVisible (this=this@entry=0x1a66ce0, c=...,
endCol=115, force=force@entry=false, center=center@entry=false,
calledExternally=calledExternally@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:781
#7 0x00007f5853f48352 in KateViewInternal::updateCursor (this=this@entry=0x1a66ce0,
newCursor=..., force=force@entry=true, center=center@entry=false,
calledExternally=calledExternally@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2204
#8 0x00007f5853f4c4c0 in KateViewInternal::editEnd (this=0x1a66ce0, editTagLineStart=0,
editTagLineEnd=<optimized out>, tagFrom=<optimized out>)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:3385
#9 0x00007f5853ee8ef0 in KateDocument::editEnd (this=0x199d150)
at /build/src/tdelibs/kate/part/katedocument.cpp:1032
#10 0x00007f5853ee2f5b in KateDocument::paste (this=0x199d150, view=0x1aa6630)
at /build/src/tdelibs/kate/part/katedocument.cpp:3249
#11 0x00007f5853f1aa53 in KateView::paste (this=0x1aa6630)
at /build/src/tdelibs/kate/part/kateview.cpp:1597
#12 0x00007f5853f4a102 in KateViewInternal::mouseReleaseEvent (this=0x1a66ce0,
e=0x7fffc96067b0) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2965
#13 0x00007f5859de2343 in TQWidget::event (this=0x1a66ce0, e=0x7fffc96067b0)
at kernel/qwidget.cpp:4725
#14 0x00007f5859d4c559 in TQApplication::internalNotify (this=0x7fffc9607010, receiver=
0x1a66ce0, e=0x7fffc96067b0) at kernel/qapplication.cpp:2638
#15 0x00007f5859d4bbe3 in TQApplication::notify (this=0x7fffc9607010, receiver=0x1a66ce0,
e=0x7fffc96067b0) at kernel/qapplication.cpp:2424
#16 0x00007f585ad045c4 in KApplication::notify (this=0x7fffc9607010, receiver=0x1a66ce0,
event=0x7fffc96067b0) at /build/src/tdelibs/tdecore/kapplication.cpp:583
#17 0x00007f5859cde6b3 in TQApplication::sendSpontaneousEvent (receiver=0x1a66ce0,
event=0x7fffc96067b0) at kernel/ntqapplication.h:526
#18 0x00007f5859cd7f53 in TQETWidget::translateMouseEvent (this=0x1a66ce0,
event=0x7fffc9606cc0) at kernel/qapplication_x11.cpp:4380
#19 0x00007f5859cd5871 in TQApplication::x11ProcessEvent (this=0x7fffc9607010,
event=0x7fffc9606cc0) at kernel/qapplication_x11.cpp:3557
#20 0x00007f5859cf0c44 in TQEventLoop::processEvents (this=0x18e3e80, flags=4)
at kernel/qeventloop_x11.cpp:195
#21 0x00007f5859d5f818 in TQEventLoop::enterLoop (this=0x18e3e80)
at kernel/qeventloop.cpp:201
#22 0x00007f5859d5f6e9 in TQEventLoop::exec (this=0x18e3e80) at kernel/qeventloop.cpp:148
#23 0x00007f5859d4c689 in TQApplication::exec (this=0x7fffc9607010)
at kernel/qapplication.cpp:2761
#24 0x00007f585e0303a8 in kdemain (argc=1, argv=0x7fffc96075e8)
at /build/src/tdebase/kate/app/kwritemain.cpp:692
#25 0x000000000040082c in main (argc=1, argv=0x7fffc96075e8)
at /build/src/build/kate/app/kwrite_tdeinit_executable.cpp:2
(gdb)
tdelibs is the package that causes the kwrite/kate/etc.. crash when built on gcc 47. The backtrace is good this time and points to:
at (i=<optimized out>, this=<optimized out>) at /opt/tqt3/include/ntqstring.h:641
641 { return i < d->len ? d->unicode[i] : TQChar::null; }
(full backtrace below)
This last night/this morning I build gcc 4.6 and gcc 4.7 packages from 5/3 GIT sources. The test was as follows (removing ksycoca between each):
(1) I installed the gcc 4.6 packages -- no crash occurred.
(2) installed tqt3 built on gcc 4.7 -- no crash occurred.
(3) uninstalled tqt3, reinstalled tqt3 built on gcc 4.6
(4) installed tdelibs built on gcc 4.7 -- kwrite CRASH
** Note: tdelibs built on gcc 4.7 is 9.64 MIB larger than when built on gcc 4.6
A summary of the test is in the following chart:
tqt3-46 tdelibs-46 tdebase-46 tqt3-47 tdelibs-47 tdebase-47
tqt3-46 -- OK OK ++ CRASH no test
tdelibs-46 OK -- OK OK ++ no test
tdebase-46 OK OK -- OK CRASH ++
FULL BACKTRACE:
at (i=<optimized out>, this=<optimized out>) at /opt/tqt3/include/ntqstring.h:641
641 { return i < d->len ? d->unicode[i] : TQChar::null; }
(gdb) bt
#0 at (i=<optimized out>, this=<optimized out>) at /opt/tqt3/include/ntqstring.h:641
#1 operator[] (this=<optimized out>, i=<optimized out>) at /opt/tqt3/include/ntqstring.h:642
#2 width (tabWidth=<optimized out>, italic=<optimized out>, bold=<optimized out>,
col=<optimized out>, text=..., this=<optimized out>)
at /build/src/tdelibs/kate/part/katefont.h:67
#3 width (tabWidth=<optimized out>, col=<optimized out>, text=..., fs=..., this=<optimized out>)
at /build/src/tdelibs/kate/part/kateattribute.h:55
#4 KateRenderer::textWidth (this=0x22fc280, textLine=..., startcol=0, maxwidth=817,
needWrap=0x7fff8df70e98, endX=0x7fff8df70e8c)
at /build/src/tdelibs/kate/part/katerenderer.cpp:797
#5 0x00007fe5ae37f674 in KateViewInternal::range (this=this@entry=0x23fa0c0,
realLine=realLine@entry=0, previous=previous@entry=0x0)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1331
#6 0x00007fe5ae380b32 in KateViewInternal::range (this=this@entry=0x23fa0c0, realLine=0,
viewLine=viewLine@entry=1) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1418
#7 0x00007fe5ae3824c9 in KateViewInternal::viewLineOffset (this=this@entry=0x23fa0c0,
virtualCursor=..., offset=0, keepX=keepX@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1578
#8 0x00007fe5ae385d25 in KateViewInternal::makeVisible (this=this@entry=0x23fa0c0, c=...,
endCol=117, force=force@entry=false, center=center@entry=false,
calledExternally=calledExternally@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:781
#9 0x00007fe5ae386352 in KateViewInternal::updateCursor (this=this@entry=0x23fa0c0,
newCursor=..., force=force@entry=true, center=center@entry=false,
calledExternally=calledExternally@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2204
#10 0x00007fe5ae38a4c0 in KateViewInternal::editEnd (this=0x23fa0c0, editTagLineStart=0,
editTagLineEnd=<optimized out>, tagFrom=<optimized out>)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:3385
#11 0x00007fe5ae326ef0 in KateDocument::editEnd (this=0x232f2c0)
at /build/src/tdelibs/kate/part/katedocument.cpp:1032
#12 0x00007fe5ae320f5b in KateDocument::paste (this=0x232f2c0, view=0x24352e0)
at /build/src/tdelibs/kate/part/katedocument.cpp:3249
#13 0x00007fe5ae358a53 in KateView::paste (this=0x24352e0)
at /build/src/tdelibs/kate/part/kateview.cpp:1597
#14 0x00007fe5ae388102 in KateViewInternal::mouseReleaseEvent (this=0x23fa0c0, e=0x7fff8df71920)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2965
#15 0x00007fe5b424b0b3 in TQWidget::event (this=0x23fa0c0, e=0x7fff8df71920)
at kernel/qwidget.cpp:4725
#16 0x00007fe5b41b5f9d in TQApplication::internalNotify (this=0x7fff8df71ff0, receiver=0x23fa0c0,
e=0x7fff8df71920) at kernel/qapplication.cpp:2638
#17 0x00007fe5b41b5627 in TQApplication::notify (this=0x7fff8df71ff0, receiver=0x23fa0c0,
e=0x7fff8df71920) at kernel/qapplication.cpp:2424
#18 0x00007fe5b5177894 in KApplication::notify (this=0x7fff8df71ff0, receiver=0x23fa0c0,
event=0x7fff8df71920) at /build/src/tdelibs/tdecore/kapplication.cpp:583
#19 0x00007fe5b4148e59 in TQApplication::sendSpontaneousEvent (receiver=0x23fa0c0,
event=0x7fff8df71920) at kernel/ntqapplication.h:526
#20 0x00007fe5b4142735 in TQETWidget::translateMouseEvent (this=0x23fa0c0, event=0x7fff8df71ce0)
at kernel/qapplication_x11.cpp:4380
#21 0x00007fe5b414005d in TQApplication::x11ProcessEvent (this=0x7fff8df71ff0,
event=0x7fff8df71ce0) at kernel/qapplication_x11.cpp:3557
#22 0x00007fe5b415b2c8 in TQEventLoop::processEvents (this=0x2272f90, flags=4)
at kernel/qeventloop_x11.cpp:195
#23 0x00007fe5b41c9118 in TQEventLoop::enterLoop (this=0x2272f90) at kernel/qeventloop.cpp:201
#24 0x00007fe5b41c8fe9 in TQEventLoop::exec (this=0x2272f90) at kernel/qeventloop.cpp:148
#25 0x00007fe5b41b60cd in TQApplication::exec (this=0x7fff8df71ff0) at kernel/qapplication.cpp:2761
#26 0x00007fe5b84f1448 in kdemain (argc=1, argv=0x7fff8df72688)
at /build/src/tdebase/kate/app/kwritemain.cpp:692
#27 0x00000000004007a4 in main (argc=1, argv=0x7fff8df72688)
at /build/src/build/kate/app/kwrite_tdeinit_executable.cpp:2
(gdb)
I think this should help isolate where the crash is coming from. I will need to punt to the experts. This backtrace seems to point to the crash in kate/part, but I don't understand why it is blowing up in tqt3. That's where you experts will have to figure it out.
Let me know if you want additional tests. I have my box set up for it now, so all you have to do it tell me what to run.
There was a new release of gcc 4.7.0-6 on Arch so I rebuilt everything and tried again. Same result :(
Here is the backtrace - looks similar:
0x00007ffeeb43fa77 in TQFontMetrics::charWidth (this=0x17b6870, str=..., pos=81)
at kernel/qfont_x11.cpp:704
704 kernel/qfont_x11.cpp: No such file or directory.
(gdb) bt
#0 0x00007ffeeb43fa77 in TQFontMetrics::charWidth (this=0x17b6870, str=..., pos=81)
at kernel/qfont_x11.cpp:704
#1 0x00007ffee56ac1ba in width (tabWidth=<optimized out>, italic=<optimized out>,
bold=<optimized out>, col=81, text=..., this=0x17b6850)
at /build/src/tdelibs/kate/part/katefont.h:76
#2 width (tabWidth=<optimized out>, col=81, text=..., fs=..., this=<optimized out>)
at /build/src/tdelibs/kate/part/kateattribute.h:55
#3 KateRenderer::textWidth (this=0x18de640, textLine=..., startcol=0, maxwidth=753,
needWrap=0x7fffef2d6ec8, endX=0x7fffef2d6ebc)
at /build/src/tdelibs/kate/part/katerenderer.cpp:797
#4 0x00007ffee568d674 in KateViewInternal::range (this=this@entry=0x18a03e0,
realLine=realLine@entry=0, previous=previous@entry=0x0)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1331
#5 0x00007ffee568eb32 in KateViewInternal::range (this=this@entry=0x18a03e0,
realLine=0, viewLine=viewLine@entry=1)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1418
#6 0x00007ffee56904c9 in KateViewInternal::viewLineOffset (this=this@entry=0x18a03e0,
virtualCursor=..., offset=0, keepX=keepX@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1578
#7 0x00007ffee5693d25 in KateViewInternal::makeVisible (this=this@entry=0x18a03e0,
c=..., endCol=114, force=force@entry=false, center=center@entry=false,
calledExternally=calledExternally@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:781
#8 0x00007ffee5694352 in KateViewInternal::updateCursor (this=this@entry=0x18a03e0,
newCursor=..., force=force@entry=true, center=center@entry=false,
calledExternally=calledExternally@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2204
#9 0x00007ffee56984c0 in KateViewInternal::editEnd (this=0x18a03e0, editTagLineStart=0,
editTagLineEnd=<optimized out>, tagFrom=<optimized out>)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:3385
#10 0x00007ffee5634ef0 in KateDocument::editEnd (this=0x17d5560)
at /build/src/tdelibs/kate/part/katedocument.cpp:1032
#11 0x00007ffee562ef5b in KateDocument::paste (this=0x17d5560, view=0x18a7fd0)
at /build/src/tdelibs/kate/part/katedocument.cpp:3249
#12 0x00007ffee5666a53 in KateView::paste (this=0x18a7fd0)
at /build/src/tdelibs/kate/part/kateview.cpp:1597
#13 0x00007ffee5696102 in KateViewInternal::mouseReleaseEvent (this=0x18a03e0,
e=0x7fffef2d77d0) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2965
#14 0x00007ffeeb52e343 in TQWidget::event (this=0x18a03e0, e=0x7fffef2d77d0)
at kernel/qwidget.cpp:4725
#15 0x00007ffeeb498559 in TQApplication::internalNotify (this=0x7fffef2d8030, receiver=
0x18a03e0, e=0x7fffef2d77d0) at kernel/qapplication.cpp:2638
#16 0x00007ffeeb497be3 in TQApplication::notify (this=0x7fffef2d8030,
receiver=0x18a03e0, e=0x7fffef2d77d0) at kernel/qapplication.cpp:2424
#17 0x00007ffeec461894 in KApplication::notify (this=0x7fffef2d8030, receiver=0x18a03e0,
event=0x7fffef2d77d0) at /build/src/tdelibs/tdecore/kapplication.cpp:583
#18 0x00007ffeeb42a6b3 in TQApplication::sendSpontaneousEvent (receiver=0x18a03e0,
event=0x7fffef2d77d0) at kernel/ntqapplication.h:526
#19 0x00007ffeeb423f53 in TQETWidget::translateMouseEvent (this=0x18a03e0,
event=0x7fffef2d7ce0) at kernel/qapplication_x11.cpp:4380
#20 0x00007ffeeb421871 in TQApplication::x11ProcessEvent (this=0x7fffef2d8030,
event=0x7fffef2d7ce0) at kernel/qapplication_x11.cpp:3557
#21 0x00007ffeeb43cc44 in TQEventLoop::processEvents (this=0x1718f90, flags=4)
at kernel/qeventloop_x11.cpp:195
#22 0x00007ffeeb4ab818 in TQEventLoop::enterLoop (this=0x1718f90)
at kernel/qeventloop.cpp:201
#23 0x00007ffeeb4ab6e9 in TQEventLoop::exec (this=0x1718f90) at kernel/qeventloop.cpp:148
#24 0x00007ffeeb498689 in TQApplication::exec (this=0x7fffef2d8030)
at kernel/qapplication.cpp:2761
#25 0x00007ffeef7d43a8 in kdemain (argc=1, argv=0x7fffef2d8608)
at /build/src/tdebase/kate/app/kwritemain.cpp:692
#26 0x000000000040082c in main (argc=1, argv=0x7fffef2d8608)
at /build/src/build/kate/app/kwrite_tdeinit_executable.cpp:2
Hello, when I built TDE 3.5.13 on Fedora 17 beta, I had the exact same bug that you describe, with a similar gdb backtrace. Then I upgraded to Fedora 17 final, without rebuilding TDE. I still had the bug. Then I rebuilt kdelibs (just kdelibs, not QT nor kdebase) on Fedora 17 final. And the bug has gone. There were so many updates between Fedora 17 beta and final that I cannot tell you exactly which package (gcc ? xorg ?) has fixed the bug. I'm going to tentatively mark this bug as RESOLVED NOTOURPROBLEM, as this smells like a gcc flaw or core system library problem, not a TDE problem, and Francois Andriot's comment has increased my confidence in this possibility. OK, if this is a Not Our Problem issue -- what next? If you build on gcc 4.7 - then you have no TDE. That's something we need to get elevated quickly to whoever we think needs to look at it. I'm dead in the water building on Arch until this is resolved. If I need to file it with gcc, then I need to know what code is causing it. I've filed gcc bugs before and they are going to need an example that is short-concise-and-to-the-point. Literally they deal is 'a+b=c' primitives and right now I don't know anything other than something in tdelibs is getting built into a runaway loop. I would start by determining the exact gcc versions in use on Fedora 17, both when TDE crashed and at final Fedora 17 release. Update Arch to at least teh Fedora 17 release gcc version, recompile/reinstall all of TDE sequentially up to and including tdebase, and try again. If the problem shows up again please reopen this report. Tim, The kwrite crash detailed in bug 979 is NOT fixed. I rebuilt everything today with updates on both Arch and TDE current through today. The behavior is exactly the same as before. I don't know what Fedora did to get around the crash, but it is still there. It may be gcc, but I'd bet it is non-standard compliant code in TDE that was exposed by the stricter interpretation by gcc 4.7. I'll reopen 979, but I'm at a loss at what else to do. Backtrace from tonight: Loaded symbols for /lib/libnss_files.so.2 0x00007f3934e3fe7a in TQChar::unicode (this=0x218ac2e) at ../include/ntqstring.h:198 198 ../include/ntqstring.h: No such file or directory. (gdb) backtrace #0 0x00007f3934e3fe7a in TQChar::unicode (this=0x218ac2e) at ../include/ntqstring.h:198 #1 0x00007f3934e3fa7f in TQFontMetrics::charWidth (this=0x2071930, str=..., pos=47) at kernel/qfont_x11.cpp:704 #2 0x00007f392e3724da in width (tabWidth=<optimized out>, italic=<optimized out>, bold=<optimized out>, col=47, text=..., this=0x2071910) at /build/src/tdelibs/kate/part/katefont.h:76 #3 width (tabWidth=<optimized out>, col=47, text=..., fs=..., this=<optimized out>) at /build/src/tdelibs/kate/part/kateattribute.h:55 #4 KateRenderer::textWidth (this=0x2144930, textLine=..., startcol=0, maxwidth=753, needWrap=0x7fff40b10b78, endX=0x7fff40b10b6c) at /build/src/tdelibs/kate/part/katerenderer.cpp:797 #5 0x00007f392e353994 in KateViewInternal::range (this=this@entry=0x2195c00, realLine=realLine@entry=0, previous=previous@entry=0x0) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1331 #6 0x00007f392e354e52 in KateViewInternal::range (this=this@entry=0x2195c00, realLine=0, viewLine=viewLine@entry=1) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1418 #7 0x00007f392e3567e9 in KateViewInternal::viewLineOffset (this=this@entry=0x2195c00, virtualCursor=..., offset=0, keepX=keepX@entry=false) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1578 #8 0x00007f392e35a045 in KateViewInternal::makeVisible (this=this@entry=0x2195c00, c=..., endCol=118, force=force@entry=false, center=center@entry=false, calledExternally=calledExternally@entry=false) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:781 #9 0x00007f392e35a672 in KateViewInternal::updateCursor (this=this@entry=0x2195c00, newCursor=..., force=force@entry=true, center=center@entry=false, calledExternally=calledExternally@entry=false) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2204 #10 0x00007f392e35e7e0 in KateViewInternal::editEnd (this=0x2195c00, editTagLineStart=0, editTagLineEnd=<optimized out>, tagFrom=<optimized out>) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:3385 #11 0x00007f392e2fb208 in KateDocument::editEnd (this=0x20906f0) at /build/src/tdelibs/kate/part/katedocument.cpp:1032 #12 0x00007f392e2f523b in KateDocument::paste (this=0x20906f0, view=0x2068bc0) at /build/src/tdelibs/kate/part/katedocument.cpp:3249 #13 0x00007f392e32cd73 in KateView::paste (this=0x2068bc0) at /build/src/tdelibs/kate/part/kateview.cpp:1597 #14 0x00007f392e35c422 in KateViewInternal::mouseReleaseEvent (this=0x2195c00, e=0x7fff40b11480) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2965 #15 0x00007f3934f2e343 in TQWidget::event (this=0x2195c00, e=0x7fff40b11480) at kernel/qwidget.cpp:4725 #16 0x00007f3934e98559 in TQApplication::internalNotify (this=0x7fff40b11ce0, receiver=0x2195c00, e=0x7fff40b11480) at kernel/qapplication.cpp:2638 #17 0x00007f3934e97be3 in TQApplication::notify (this=0x7fff40b11ce0, receiver=0x2195c00, e=0x7fff40b11480) at kernel/qapplication.cpp:2424 #18 0x00007f3935e618d4 in KApplication::notify (this=0x7fff40b11ce0, receiver=0x2195c00, event=0x7fff40b11480) at /build/src/tdelibs/tdecore/kapplication.cpp:583 #19 0x00007f3934e2a6b3 in TQApplication::sendSpontaneousEvent (receiver=0x2195c00, event=0x7fff40b11480) at kernel/ntqapplication.h:526 #20 0x00007f3934e23f53 in TQETWidget::translateMouseEvent (this=0x2195c00, event=0x7fff40b11990) at kernel/qapplication_x11.cpp:4381 #21 0x00007f3934e21871 in TQApplication::x11ProcessEvent (this=0x7fff40b11ce0, event=0x7fff40b11990) at kernel/qapplication_x11.cpp:3558 #22 0x00007f3934e3cc44 in TQEventLoop::processEvents (this=0x1fd3f80, flags=4) at kernel/qeventloop_x11.cpp:195 #23 0x00007f3934eab818 in TQEventLoop::enterLoop (this=0x1fd3f80) at kernel/qeventloop.cpp:201 #24 0x00007f3934eab6e9 in TQEventLoop::exec (this=0x1fd3f80) at kernel/qeventloop.cpp:148 #25 0x00007f3934e98689 in TQApplication::exec (this=0x7fff40b11ce0) at kernel/qapplication.cpp:2761 #26 0x00007f39391d43a8 in kdemain (argc=1, argv=0x7fff40b122b8) at /build/src/tdebase/kate/app/kwritemain.cpp:692 #27 0x000000000040082c in main (argc=1, argv=0x7fff40b122b8) at /build/src/build/kate/app/kwrite_tdeinit_executable.cpp:2 Just one more backtrace from kate. The into to this bug is slightly different, I don't know why the unicode issue keeps popping up, but it probably is the same runaway:
Reading symbols from /opt/tqt3/plugins/inputmethods/libqxim.so...done.
Loaded symbols for /opt/tqt3/plugins/inputmethods/libqxim.so
0x00007f2cfb8e5f11 in category (c=...) at ../include/private/qunicodetables_p.h:104
104 ../include/private/qunicodetables_p.h: No such file or directory.
(gdb) backtrace
#0 0x00007f2cfb8e5f11 in category (c=...) at ../include/private/qunicodetables_p.h:104
#1 0x00007f2cfbca4637 in isSpace (ch=...) at tools/qunicodetables_p.h:218
#2 0x00007f2cfbc98a6c in TQChar::isSpace (this=0x25749c0) at tools/qstring.cpp:475
#3 0x00007f2cf4f692e1 in KateRenderer::textWidth (this=0x2260d80, textLine=..., startcol=0,
maxwidth=481, needWrap=0x7fffe54b2538, endX=0x7fffe54b252c)
at /build/src/tdelibs/kate/part/katerenderer.cpp:806
#4 0x00007f2cf4f4a994 in KateViewInternal::range (this=this@entry=0x22656f0,
realLine=realLine@entry=0, previous=previous@entry=0x0)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1331
#5 0x00007f2cf4f4be52 in KateViewInternal::range (this=this@entry=0x22656f0, realLine=0,
viewLine=viewLine@entry=1) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1418
#6 0x00007f2cf4f4d7e9 in KateViewInternal::viewLineOffset (this=this@entry=0x22656f0,
virtualCursor=..., offset=0, keepX=keepX@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1578
#7 0x00007f2cf4f51045 in KateViewInternal::makeVisible (this=this@entry=0x22656f0, c=...,
endCol=48, force=force@entry=false, center=center@entry=false,
calledExternally=calledExternally@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:781
#8 0x00007f2cf4f51672 in KateViewInternal::updateCursor (this=this@entry=0x22656f0, newCursor=...,
force=force@entry=true, center=center@entry=false,
calledExternally=calledExternally@entry=false)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2204
#9 0x00007f2cf4f557e0 in KateViewInternal::editEnd (this=0x22656f0, editTagLineStart=0,
editTagLineEnd=<optimized out>, tagFrom=<optimized out>)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:3385
#10 0x00007f2cf4ef2208 in KateDocument::editEnd (this=0x20a1200)
at /build/src/tdelibs/kate/part/katedocument.cpp:1032
#11 0x00007f2cf4eec23b in KateDocument::paste (this=0x20a1200, view=0x2263720)
at /build/src/tdelibs/kate/part/katedocument.cpp:3249
#12 0x00007f2cf4f23d73 in KateView::paste (this=0x2263720)
at /build/src/tdelibs/kate/part/kateview.cpp:1597
#13 0x00007f2cf4f53422 in KateViewInternal::mouseReleaseEvent (this=0x22656f0, e=0x7fffe54b2e40)
at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2965
#14 0x00007f2cfb9d4343 in TQWidget::event (this=0x22656f0, e=0x7fffe54b2e40)
at kernel/qwidget.cpp:4725
#15 0x00007f2cfb93e559 in TQApplication::internalNotify (this=0x7fffe54b36e0, receiver=0x22656f0,
e=0x7fffe54b2e40) at kernel/qapplication.cpp:2638
#16 0x00007f2cfb93dbe3 in TQApplication::notify (this=0x7fffe54b36e0, receiver=0x22656f0,
e=0x7fffe54b2e40) at kernel/qapplication.cpp:2424
#17 0x00007f2cfc9078d4 in KApplication::notify (this=0x7fffe54b36e0, receiver=0x22656f0,
event=0x7fffe54b2e40) at /build/src/tdelibs/tdecore/kapplication.cpp:583
#18 0x00007f2cfb8d06b3 in TQApplication::sendSpontaneousEvent (receiver=0x22656f0,
event=0x7fffe54b2e40) at kernel/ntqapplication.h:526
#19 0x00007f2cfb8c9f53 in TQETWidget::translateMouseEvent (this=0x22656f0, event=0x7fffe54b3350)
at kernel/qapplication_x11.cpp:4381
#20 0x00007f2cfb8c7871 in TQApplication::x11ProcessEvent (this=0x7fffe54b36e0, event=0x7fffe54b3350)
at kernel/qapplication_x11.cpp:3558
#21 0x00007f2cfb8e2c44 in TQEventLoop::processEvents (this=0x2027f70, flags=4)
at kernel/qeventloop_x11.cpp:195
#22 0x00007f2cfb951818 in TQEventLoop::enterLoop (this=0x2027f70) at kernel/qeventloop.cpp:201
#23 0x00007f2cfb9516e9 in TQEventLoop::exec (this=0x2027f70) at kernel/qeventloop.cpp:148
#24 0x00007f2cfb93e689 in TQApplication::exec (this=0x7fffe54b36e0) at kernel/qapplication.cpp:2761
#25 0x00007f2cff0a9cf6 in kdemain (argc=1, argv=0x7fffe54b3e78)
at /build/src/tdebase/kate/app/katemain.cpp:253
#26 0x000000000040082c in main (argc=1, argv=0x7fffe54b3e78)
at /build/src/build/kate/app/kate_tdeinit_executable.cpp:2
Last I heard on the mailing list the resolution of this issue was narrowed down to the following set of GCC patches: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48496 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52999 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53228 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52633 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52870 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53195 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53239 Are you able to prove that this is not a gcc bug? I'm closing the bug because I have successfully built TDE on gcc 4.7.1 and the kwrite crash on line-wrap is no longer present. Whoop! This was tested on Arch Linux with all TDE packages built on gcc 4.7.1. We will leave this bug closed, but as a 'tenative' close. I don't expect regression, but this has been such a bizarre battle since the release of gcc 4.7.0 a one build success gives little confidence that it will not manifest again. |
Beginning 4/25/12 on Archlinux, if kate/kwrite is opened and small amounts of text (less than a complete line) are pasted into the document using the select buffer, pasting additional text that will cause the line to wrap will cause a complete lockup of kate/kwrite. When this occurs, kate/kwrite cosumes nearly 90% of the CPU and must be terminated with 'kill' as the application is locked. This is most likely due to recent updates to xorg or assiated packages causing a failure in qt3 or libkatepart. The following is the backtrace from an i686 box. For some reason I get fuller backtraces on x86_64. This is what I caugt on i686: (gdb) bt #0 0xb610a959 in TQFontMetrics::charWidth (this=0x8fa3800, str=..., pos=79) at kernel/qfont_x11.cpp:705 #1 0xb541a46b in width (tabWidth=8, italic=false, bold=false, col=79, text=..., this=0x8fa37f0) at /build/src/tdelibs/kate/part/katefont.h:76 #2 width (tabWidth=8, col=79, text=..., fs=..., this=<optimized out>) at /build/src/tdelibs/kate/part/kateattribute.h:55 #3 KateRenderer::textWidth (this=0x933d3e8, textLine=..., startcol=0, maxwidth=695, needWrap=0xbf8e73a8, endX=0xbf8e739c) at /build/src/tdelibs/kate/part/katerenderer.cpp:797 #4 0xb53f7d97 in KateViewInternal::range (this=0x9322170, realLine=0, previous=0x0) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1331 #5 0xb53f91ae in KateViewInternal::range (this=0x9322170, realLine=0, viewLine=1) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1418 #6 0x09322170 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) I'll begin the debug build on x86_64. If your system has the newer packages that cause this bug, to confirm, all you need to do is open konsole and cat a file or do something to give you text to select and copy into kwrite. Then begin selecting text (one or two words at a time) in konsole and then middle-mouse paste into line 1 of kwrite. Continue doing this until you get to the point where the line will wrap on the next paste. When you paste the next selection that would cause line 1 in kwrite to wrap - the crash will occur. See example: http://nirvana.3111skyline.com/dl/dt/trinity/ss/kwrite-i686-crash.jpg You will then have to 'terminate' kwrite by clicking the close button and wait for the 'Terminate' or 'Keep Running' dialog to appear (or 'kill $(pidof kwrite)' in konsole) This is 100% repeatable and has continued after multiple rebuilds of tqt3, tqtinterface, tdelibs and tdebase. I am working to compile a list of packages recently updated. Let me know what other information you need.