Bug 119570 - inserting new lines between end tags crash
Summary: inserting new lines between end tags crash
Status: RESOLVED DUPLICATE of bug 89042
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 119571 119572 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-05 15:49 UTC by Jaime Torres
Modified: 2006-05-23 17:16 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
(Please ignore.) (1.18 KB, text/plain)
2006-03-18 10:38 UTC, Maxilys
Details
file that triggers the crashe (1.09 KB, text/plain)
2006-05-23 17:16 UTC, Dominik Haumann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Torres 2006-01-05 15:49:53 UTC
Version:           2.5.0 (using KDE 3.5.0, compiled sources)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.15

I edit the following xml file (it is in one line):

<apache:RootElement xmlns:apache="http://www.apache.org/ns/#app1">
<apache:foo Id="objetivo"><xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Type="http://www.w3.org/2001/04/xmlenc#Content"><xenc:EncryptionMethod xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Algorithm="http://www.w3.org/2001/04/xmlenc#kw-tripledes"/><xenc:CipherData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:CipherValue xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">pviW8o51qF7f4OuIPxHqUnOmzvxpi6s97aY2CBaht9o=</xenc:CipherValue></xenc:CipherData></xenc:EncryptedKey></ds:KeyInfo><xenc:CipherData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:CipherValue xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">9pivy7b6+R+0VnF0H3C7hgdk1VG3iFJ26NT/16ekXioEJqJwwnGRavD9qLnOn+wV</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData></apache:foo>
</apache:RootElement>

Then I put new lines and let kate indent it in orden.
The element <xenc:EncryptedKey is manually indented with two tabulators, then continue breaking the xml.
When is the time for the element </xenc:CipherValue>
kate crash with the following backtrace:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1233385808 (LWP 26339)]
[KCrash handler]
#7  0xb7258793 in QGArray::find () from /usr/lib/qt3.1/lib/libqt-mt.so.3
#8  0xb6169577 in KateCodeFoldingTree::removeEnding ()
   from /usr/kde3/lib/kde3/libkatepart.so
#9  0xb616bb87 in KateCodeFoldingTree::cleanupUnneededNodes ()
   from /usr/kde3/lib/kde3/libkatepart.so
#10 0xb616c1b2 in KateCodeFoldingTree::updateLine ()
   from /usr/kde3/lib/kde3/libkatepart.so
#11 0xb60d6521 in KateBuffer::doHighlight ()
   from /usr/kde3/lib/kde3/libkatepart.so
#12 0xb60d8cf4 in KateBuffer::editEnd ()
   from /usr/kde3/lib/kde3/libkatepart.so
#13 0xb61142fe in KateDocument::editEnd ()
   from /usr/kde3/lib/kde3/libkatepart.so
#14 0xb6102b54 in KateDocument::newLine ()
   from /usr/kde3/lib/kde3/libkatepart.so
#15 0xb617c794 in KateViewInternal::doReturn ()
   from /usr/kde3/lib/kde3/libkatepart.so
#16 0xb6153cf3 in KateView::keyReturn ()
   from /usr/kde3/lib/kde3/libkatepart.so
#17 0xb617e344 in KateViewInternal::keyPressEvent ()
   from /usr/kde3/lib/kde3/libkatepart.so
#18 0xb617deb8 in KateViewInternal::eventFilter ()
   from /usr/kde3/lib/kde3/libkatepart.so
#19 0xb6ef42ee in QObject::activate_filters ()
   from /usr/lib/qt3.1/lib/libqt-mt.so.3
#20 0xb6ef438b in QObject::event () from /usr/lib/qt3.1/lib/libqt-mt.so.3
#21 0xb6f3969c in QWidget::event () from /usr/lib/qt3.1/lib/libqt-mt.so.3
#22 0xb6e83bd1 in QApplication::internalNotify ()
   from /usr/lib/qt3.1/lib/libqt-mt.so.3
#23 0xb6e846bf in QApplication::notify ()
   from /usr/lib/qt3.1/lib/libqt-mt.so.3
#24 0xb76c464e in KApplication::notify () from /usr/kde3/lib/libkdecore.so.4
#25 0xb6e05fda in QETWidget::translateKeyEvent ()
   from /usr/lib/qt3.1/lib/libqt-mt.so.3
#26 0xb6e0c8e1 in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3.1/lib/libqt-mt.so.3
#27 0xb6e2306d in QEventLoop::processEvents ()
   from /usr/lib/qt3.1/lib/libqt-mt.so.3
#28 0xb6e9edb1 in QEventLoop::enterLoop ()
   from /usr/lib/qt3.1/lib/libqt-mt.so.3
#29 0xb6e9ecb6 in QEventLoop::exec () from /usr/lib/qt3.1/lib/libqt-mt.so.3
#30 0xb6e835af in QApplication::exec () from /usr/lib/qt3.1/lib/libqt-mt.so.3
#31 0xb75b0cf8 in kdemain () from /usr/kde3/lib/libkdeinit_kate.so
#32 0xb75b4794 in kdeinitmain () from /usr/kde3/lib/kde3/kate.so
#33 0x0804e13a in launch ()
#34 0x0804e8aa in handle_launcher_request ()
#35 0x0804ef6a in handle_requests ()
#36 0x0805009e in main ()
Comment 1 Anders Lund 2006-01-06 17:23:30 UTC
*** Bug 119571 has been marked as a duplicate of this bug. ***
Comment 2 Anders Lund 2006-01-06 17:24:35 UTC
*** Bug 119572 has been marked as a duplicate of this bug. ***
Comment 3 Stefan Nikolaus 2006-02-18 21:55:01 UTC
confirmed 
KDE build from sources (SVN 507025) 
Qt 3.3.5 (qt-copy w/ applied patches) 
SuSE Linux 10.0 OSS 
kernel 2.6.15.1 (build from sources) 
gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux) 
 
 
Using host libthread_db library "/lib/tls/libthread_db.so.1".
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread 1098218272 (LWP 6967)]
[KCrash handler]
#6  0x410b60ab in QGArray::find (this=0x82af254, 
    d=0xbfb55984 "\230\027\023\b", index=0, sz=4) at qgarray.cpp:599
#7  0x41dd6dd1 in QMemArray<KateCodeFoldingNode*>::find (this=0x82af254, 
    d=@0xbfb55984, i=0) at qmemarray.h:92
#8  0x41dd6e06 in KateCodeFoldingNode::findChild (this=0x82af238, 
    node=0x8131798, start=0) at katecodefoldinghelpers.h:82
#9  0x41dd305e in KateCodeFoldingTree::removeEnding (this=0x8162db0, 
    node=0x8131798)
    at /usr/local/src/kde/3.5/kdelibs/kate/part/katecodefoldinghelpers.cpp:584
#10 0x41dd5dc4 in KateCodeFoldingTree::cleanupUnneededNodes (this=0x8162db0, 
    line=13)
    at /usr/local/src/kde/3.5/kdelibs/kate/part/katecodefoldinghelpers.cpp:1292
#11 0x41dd673a in KateCodeFoldingTree::updateLine (this=0x8162db0, line=13, 
    regionChanges=0xbfb55b00, updated=0xbfb55afe, changed=true, 
    colsChanged=false)
    at /usr/local/src/kde/3.5/kdelibs/kate/part/katecodefoldinghelpers.cpp:519
#12 0x41d4a8cc in KateBuffer::doHighlight (this=0x8162d58, buf=0x8167e00, 
    startLine=12, endLine=15, invalidate=true)
    at /usr/local/src/kde/3.5/kdelibs/kate/part/katebuffer.cpp:1218
#13 0x41d4aba4 in KateBuffer::editEnd (this=0x8162d58)
    at /usr/local/src/kde/3.5/kdelibs/kate/part/katebuffer.cpp:410
#14 0x41d768e4 in KateDocument::editEnd (this=0x8167a30)
    at /usr/local/src/kde/3.5/kdelibs/kate/part/katedocument.cpp:1019
#15 0x41d74c44 in KateDocument::newLine (this=0x8167a30, c=@0xbfb55d88, 
    v=0x82e3c20)
    at /usr/local/src/kde/3.5/kdelibs/kate/part/katedocument.cpp:3010
#16 0x41de51fc in KateViewInternal::doReturn (this=0x82e3c20)
    at /usr/local/src/kde/3.5/kdelibs/kate/part/kateviewinternal.cpp:898
#17 0x41dbd403 in KateView::keyReturn (this=0x8273ae0) at kateview.h:325
#18 0x41de0b69 in KateViewInternal::keyPressEvent (this=0x82e3c20, 
    e=0xbfb56414)
    at /usr/local/src/kde/3.5/kdelibs/kate/part/kateviewinternal.cpp:2430
#19 0x41dde6a5 in KateViewInternal::eventFilter (this=0x82e3c20, 
    obj=0x82e3c20, e=0xbfb56414)
    at /usr/local/src/kde/3.5/kdelibs/kate/part/kateviewinternal.cpp:2362
#20 0x40db34c6 in QObject::activate_filters (this=0x82e3c20, e=0xbfb56414)
    at qobject.cpp:903
#21 0x40db354f in QObject::event (this=0x82e3c20, e=0xbfb56414)
    at qobject.cpp:735
#22 0x40df1fc7 in QWidget::event (this=0x82e3c20, e=0xbfb56414)
    at qwidget.cpp:4659
#23 0x40d4bb10 in QApplication::internalNotify (this=0xbfb56910, 
    receiver=0x82e3c20, e=0xbfb56414) at qapplication.cpp:2635
#24 0x40d4becf in QApplication::notify (this=0xbfb56910, receiver=0x82e3c20, 
    e=0xbfb56414) at qapplication.cpp:2392
#25 0x40828887 in KApplication::notify (this=0xbfb56910, receiver=0x82e3c20, 
    event=0xbfb56414)
    at /usr/local/src/kde/3.5/kdelibs/kdecore/kapplication.cpp:550
#26 0x40cdc2d7 in QApplication::sendSpontaneousEvent (receiver=0x82e3c20, 
    event=0xbfb56414) at qapplication.h:499
#27 0x40cd04c8 in QETWidget::translateKeyEvent (this=0x82e3c20, 
    event=0xbfb56738, grab=false) at qapplication_x11.cpp:5501
#28 0x40cd64d5 in QApplication::x11ProcessEvent (this=0xbfb56910, 
    event=0xbfb56738) at qapplication_x11.cpp:3488
#29 0x40cef864 in QEventLoop::processEvents (this=0x80cbbb8, flags=4)
    at qeventloop_x11.cpp:192
#30 0x40d642b2 in QEventLoop::enterLoop (this=0x80cbbb8) at qeventloop.cpp:198
#31 0x40d641db in QEventLoop::exec (this=0x80cbbb8) at qeventloop.cpp:145
#32 0x40d4a699 in QApplication::exec (this=0xbfb56910)
    at qapplication.cpp:2758
#33 0x418af770 in kdemain (argc=2, argv=0x805e450)
    at /usr/local/src/kde/3.5/kdebase/kate/app/kwritemain.cpp:692
#34 0x40a107c0 in kdeinitmain (argc=2, argv=0x805e450)
    at kdeinit_kwrite.la.cpp:3
#35 0x080501ff in launch (argc=2, _name=0x80b9fa4 "kwrite", 
    args=0x80b9fce "\001", cwd=0x0, envc=1, envs=0x80b9fdf "", 
    reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x80b9fe3 "filve;1140295187;59568;6944_TIME4765118")
    at /usr/local/src/kde/3.5/kdelibs/kinit/kinit.cpp:639
#36 0x08050b5c in handle_launcher_request (sock=8)
    at /usr/local/src/kde/3.5/kdelibs/kinit/kinit.cpp:1205
#37 0x0805129d in handle_requests (waitForPid=0)
    at /usr/local/src/kde/3.5/kdelibs/kinit/kinit.cpp:1406
#38 0x08051c45 in main (argc=2, argv=0xbfb571b4, envp=0xbfb571c0)
    at /usr/local/src/kde/3.5/kdelibs/kinit/kinit.cpp:1850
Comment 4 Maxilys 2006-03-18 10:38:59 UTC
Created attachment 15181 [details]
(Please ignore.)
Comment 5 Maxilys 2006-03-18 10:58:44 UTC
Comment on attachment 15181 [details]
(Please ignore.)

It was never meant to be attached to this bug bug bugs.kde.org decided for me.
Comment 6 Dominik Haumann 2006-04-22 15:50:57 UTC
likely, same as 89042

*** This bug has been marked as a duplicate of 89042 ***
Comment 7 Dominik Haumann 2006-05-23 17:16:12 UTC
Created attachment 16239 [details]
file that triggers the crashe

Attach the above text that triggers the crash.