Bug 85938 - kwrite crashes on unicode data
Summary: kwrite crashes on unicode data
Status: RESOLVED DUPLICATE of bug 88788
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: qt (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 87193 87206 87929 91248 104545 105180 105252 107533 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-25 15:13 UTC by Stephan Kulow
Modified: 2009-03-11 09:57 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Kulow 2004-07-25 15:13:07 UTC
Version:           Unbekannt (using KDE 3.2.92 (3.3 beta2), compiled sources)
Compiler:          gcc version 3.3.3 (SuSE Linux)
OS:                Linux (i686) release 2.6.5-7.71-default

Just starting "kwrite man:sudoers" crashes reproducible for me:

#0  0x410812dd in QLatin15Codec::toUnicode (this=0x8053cd8,
    chars=0x83c8a60 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<HTML><HEAD><TITLE>SUDOERS Manpage</TITLE>\n<link rel=\"stylesheet\" href=\"file:/home/coolo/prod/KDE/share/doc/HTML//en/common/kde-default."..., len=11474) at codecs/qtextcodec.cpp:2545
#1  0x4107eb1e in QTextStatelessDecoder::toUnicode (this=0x833e190,
    chars=0x83c8a60 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<HTML><HEAD><TITLE>SUDOERS Manpage</TITLE>\n<link rel=\"stylesheet\" href=\"file:/home/coolo/prod/KDE/share/doc/HTML//en/common/kde-default."..., len=53507) at codecs/qtextcodec.cpp:196
#2  0x41b644dd in KateFileLoader::open (this=0xbfffe010) at /home/coolo/prod/kdelibs/kate/part/katebuffer.cpp:113
#3  0x41b5f1fd in KateBuffer::openFile (this=0x8222da0, m_file=@0x827e4a8)
    at /home/coolo/prod/kdelibs/kate/part/katebuffer.cpp:409
#4  0x41b88cbe in KateDocument::openFile (this=0x827e440, job=0x83b8d90)
    at /home/coolo/prod/kdelibs/kate/part/katedocument.cpp:2532
#5  0x41b889ea in KateDocument::slotFinishedKate (this=0x827e440, job=0x83b8d90)
    at /home/coolo/prod/kdelibs/kate/part/katedocument.cpp:2482
#6  0x41b7ddff in KateDocument::qt_invoke (this=0x827e440, _id=104, _o=0xbfffe220) at katedocument.moc:1143
#7  0x40d6a337 in QObject::activate_signal (this=0x83b8d90, clist=0x8394590, o=0xbfffe220)
    at kernel/qobject.cpp:2356
#8  0x40250fec in KIO::Job::result (this=0x83b8d90, t0=0x83b8d90) at jobclasses.moc:156
#9  0x4023d725 in KIO::Job::emitResult (this=0x83b8d90) at /home/coolo/prod/kdelibs/kio/kio/job.cpp:207
#10 0x4023ecb4 in KIO::SimpleJob::slotFinished (this=0x83b8d90) at /home/coolo/prod/kdelibs/kio/kio/job.cpp:524
#11 0x40240f96 in KIO::TransferJob::slotFinished (this=0x83b8d90) at /home/coolo/prod/kdelibs/kio/kio/job.cpp:884
#12 0x4025363c in KIO::TransferJob::qt_invoke (this=0x83b8d90, _id=17, _o=0xbfffe4e0) at jobclasses.moc:1050
#13 0x40d6a337 in QObject::activate_signal (this=0x83bf910, clist=0x83255e0, o=0xbfffe4e0)
    at kernel/qobject.cpp:2356
#14 0x40d6a1d6 in QObject::activate_signal (this=0x83bf910, signal=6) at kernel/qobject.cpp:2325
#15 0x4022fe21 in KIO::SlaveInterface::finished (this=0x83bf910) at slaveinterface.moc:226
#16 0x4022e463 in KIO::SlaveInterface::dispatch (this=0x83bf910, _cmd=104, rawdata=@0xbfffe6a0)
    at /home/coolo/prod/kdelibs/kio/kio/slaveinterface.cpp:255
#17 0x4022e0cc in KIO::SlaveInterface::dispatch (this=0x83bf910)
    at /home/coolo/prod/kdelibs/kio/kio/slaveinterface.cpp:191
#18 0x4022bb1d in KIO::Slave::gotInput (this=0x83bf910) at /home/coolo/prod/kdelibs/kio/kio/slave.cpp:294
#19 0x4022d5b7 in KIO::Slave::qt_invoke (this=0x83bf910, _id=4, _o=0xbfffe7e0) at slave.moc:113
#20 0x40d6a337 in QObject::activate_signal (this=0x83bd9e0, clist=0x8379428, o=0xbfffe7e0)
    at kernel/qobject.cpp:2356
#21 0x40d6a6a9 in QObject::activate_signal (this=0x83bd9e0, signal=2, param=11) at kernel/qobject.cpp:2449
#22 0x410c0965 in QSocketNotifier::activated (this=0x83bd9e0, t0=11)
    at .moc/debug-shared-mt/moc_qsocketnotifier.cpp:85
#23 0x40d8a4cc in QSocketNotifier::event (this=0x83bd9e0, e=0xbfffea50) at kernel/qsocketnotifier.cpp:280
Comment 1 Stephan Kulow 2004-07-25 15:14:41 UTC
==12897== Invalid read of size 2
==12897==    at 0x7609F2DD: QLatin15Codec::toUnicode(char const*, int) const (qtextcodec.cpp:2545)
==12897==    by 0x7609CB1D: QTextStatelessDecoder::toUnicode(char const*, int) (qtextcodec.cpp:196)
==12897==    by 0x773C54DC: KateFileLoader::open() (katebuffer.cpp:113)
==12897==    by 0x773C01FC: KateBuffer::openFile(QString const&) (katebuffer.cpp:409)
==12897==    by 0x773E9CBD: KateDocument::openFile(KIO::Job*) (katedocument.cpp:2532)
==12897==    by 0x773E99E9: KateDocument::slotFinishedKate(KIO::Job*) (katedocument.cpp:2482)
==12897==    by 0x773DEDFE: KateDocument::qt_invoke(int, QUObject*) (katedocument.moc:1143)
==12897==    by 0x75D88336: QObject::activate_signal(QConnectionList*, QUObject*) (qobject.cpp:2356)
==12897==    by 0x75260FEB: KIO::Job::result(KIO::Job*) (jobclasses.moc:156)
==12897==    by 0x7524D724: KIO::Job::emitResult() (job.cpp:207)
==12897==    by 0x7524ECB3: KIO::SimpleJob::slotFinished() (job.cpp:524)
==12897==    by 0x75250F95: KIO::TransferJob::slotFinished() (job.cpp:884)
==12897==    by 0x7526363B: KIO::TransferJob::qt_invoke(int, QUObject*) (jobclasses.moc:1050)
==12897==    by 0x75D88336: QObject::activate_signal(QConnectionList*, QUObject*) (qobject.cpp:2356)
==12897==  Address 0x778733CE is 0 bytes after a block of size 4502 alloc'd
==12897==    at 0x7501EC24: operator new[](unsigned) (vg_replace_malloc.c:113)
==12897==    by 0x760750EA: internalLatin1ToUnicode(char const*, unsigned*, unsigned) (qstring.cpp:1188)
==12897==    by 0x7607D19C: QString::fromLatin1(char const*, int) (qstring.cpp:5809)
==12897==    by 0x7609F2A9: QLatin15Codec::toUnicode(char const*, int) const (qtextcodec.cpp:2542)
==12897==    by 0x7609CB1D: QTextStatelessDecoder::toUnicode(char const*, int) (qtextcodec.cpp:196)
==12897==    by 0x773C54DC: KateFileLoader::open() (katebuffer.cpp:113)
==12897==    by 0x773C01FC: KateBuffer::openFile(QString const&) (katebuffer.cpp:409)
==12897==    by 0x773E9CBD: KateDocument::openFile(KIO::Job*) (katedocument.cpp:2532)
==12897==    by 0x773E99E9: KateDocument::slotFinishedKate(KIO::Job*) (katedocument.cpp:2482)
==12897==    by 0x773DEDFE: KateDocument::qt_invoke(int, QUObject*) (katedocument.moc:1143)
==12897==    by 0x75D88336: QObject::activate_signal(QConnectionList*, QUObject*) (qobject.cpp:2356)
==12897==    by 0x75260FEB: KIO::Job::result(KIO::Job*) (jobclasses.moc:156)
==12897==    by 0x7524D724: KIO::Job::emitResult() (job.cpp:207)
==12897==    by 0x7524ECB3: KIO::SimpleJob::slotFinished() (job.cpp:524)
Comment 2 Christoph Cullmann 2004-08-02 22:50:49 UTC
here valgrind shows no such errors and kwrite doesn't crash, problem with used QT version ? here qt-copy up and running (from some weeks ago)
Comment 3 Dominik Haumann 2004-08-07 18:43:00 UTC
This is an encoding problem.
Try 'kwrite man:screen' with an ISO-encoding (for example ISO-8859-15) :)
If I switch my encoding in 'Open/Save' to utf8 it works great, and man:* always works.
Comment 4 Dominik Haumann 2004-08-14 14:37:08 UTC
*** Bug 87193 has been marked as a duplicate of this bug. ***
Comment 5 Dominik Haumann 2004-08-14 16:32:37 UTC
*** Bug 87206 has been marked as a duplicate of this bug. ***
Comment 6 Dominik Haumann 2004-08-14 16:33:36 UTC
Another testcase file is attached in bug #87206.
Comment 7 Christoph Cullmann 2004-08-24 15:25:47 UTC
*** Bug 87929 has been marked as a duplicate of this bug. ***
Comment 8 Dominik Haumann 2004-10-14 19:17:43 UTC
*** Bug 91248 has been marked as a duplicate of this bug. ***
Comment 9 Maksim Orlovich 2005-04-26 00:18:41 UTC
*** Bug 104545 has been marked as a duplicate of this bug. ***
Comment 10 Maksim Orlovich 2005-05-06 14:23:12 UTC
*** Bug 105180 has been marked as a duplicate of this bug. ***
Comment 11 Maksim Orlovich 2005-05-08 01:21:16 UTC
*** Bug 105252 has been marked as a duplicate of this bug. ***
Comment 12 Maksim Orlovich 2005-06-16 16:47:45 UTC
*** Bug 107533 has been marked as a duplicate of this bug. ***
Comment 13 Luis Javier Merino 2005-07-12 11:05:11 UTC
Isn't this a duplicate of BUG:88788?
Comment 14 Thiago Macieira 2005-07-12 13:46:30 UTC
Could be. I can't reproduce either bug on trunk 430645.
Comment 15 Nicolas Goutte 2005-07-24 15:43:21 UTC
As the man: KIO slave was heavily modified, this bug should not appear like that anymore.

Have a nice day!
Comment 16 Stephan Kulow 2005-07-24 19:29:22 UTC
then change the summary!
Comment 17 A. Spehr 2009-03-11 09:57:50 UTC
Sounds like this one is long gone, and probably a dup anyway.

*** This bug has been marked as a duplicate of bug 88788 ***