Bug 92408 - kwrite crashes when typing data url in file open dialog
Summary: kwrite crashes when typing data url in file open dialog
Status: RESOLVED DUPLICATE of bug 95488
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: kfile (show other bugs)
Version: 3.3.1
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Carsten Pfeiffer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-30 20:21 UTC by Wilbert Berendsen
Modified: 2005-08-19 15:34 UTC (History)
0 users

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 Wilbert Berendsen 2004-10-30 20:21:20 UTC
Version:           4.3 (using KDE 3.3.1, compiled sources)
Compiler:          gcc version 3.3.4
OS:                Linux (i686) release 2.6.7

When you type in the shell:

kwrite 'data:/,some text'

KWrite opens with the text in the editor, but when you type the data-url in the file open dialog, KWrite crashes with this backtrace:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 985)]
[New Thread 32769 (LWP 986)]
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 985)]
[New Thread 32769 (LWP 986)]
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 985)]
[New Thread 32769 (LWP 986)]
[KCrash handler]
#4  0x00000089 in ?? ()
#5  0x40c8b338 in QObject::connect () from /usr/lib/qt/lib/libqt-mt.so.3
#6  0x401f49b8 in KIO::StatJob::start () from /opt/kde3/lib/libkio.so.4
#7  0x401ea30e in KIO::Scheduler::startJobDirect ()
   from /opt/kde3/lib/libkio.so.4
#8  0x401e92d9 in KIO::Scheduler::startStep () from /opt/kde3/lib/libkio.so.4
#9  0x401ed6f1 in KIO::Scheduler::qt_invoke () from /opt/kde3/lib/libkio.so.4
#10 0x40c8c11c in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#11 0x40c8bf44 in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#12 0x40fafd3b in QTimer::timeout () from /usr/lib/qt/lib/libqt-mt.so.3
#13 0x40cad952 in QTimer::event () from /usr/lib/qt/lib/libqt-mt.so.3
#14 0x40c2f7df in QApplication::internalNotify ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#15 0x40c2edde in QApplication::notify () from /usr/lib/qt/lib/libqt-mt.so.3
#16 0x407aed6b in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#17 0x40c1f015 in QEventLoop::activateTimers ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#18 0x40bd990b in QEventLoop::processEvents ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#19 0x40c41b38 in QEventLoop::enterLoop () from /usr/lib/qt/lib/libqt-mt.so.3
#20 0x40c2fa91 in QApplication::enter_loop ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#21 0x40e16240 in QDialog::exec () from /usr/lib/qt/lib/libqt-mt.so.3
#22 0x403c87e8 in KEncodingFileDialog::getOpenURLsAndEncoding ()
   from /opt/kde3/lib/libkio.so.4
#23 0x40023a16 in KWrite::slotOpen () from /opt/kde3/lib/libkdeinit_kwrite.so
#24 0x40021c7a in KWrite::qt_invoke () from /opt/kde3/lib/libkdeinit_kwrite.so
#25 0x40c8c11c in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#26 0x40c8bf44 in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#27 0x40539316 in KAction::activated () from /opt/kde3/lib/libkdeui.so.4
#28 0x4053889c in KAction::slotActivated () from /opt/kde3/lib/libkdeui.so.4
#29 0x405394d0 in KAction::qt_invoke () from /opt/kde3/lib/libkdeui.so.4
#30 0x40c8c096 in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#31 0x40c8bf44 in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#32 0x40fb4d4e in QButton::clicked () from /usr/lib/qt/lib/libqt-mt.so.3
#33 0x40d1e55a in QButton::mouseReleaseEvent ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#34 0x40cc2267 in QWidget::event () from /usr/lib/qt/lib/libqt-mt.so.3
#35 0x40c2f7df in QApplication::internalNotify ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#36 0x40c2eed4 in QApplication::notify () from /usr/lib/qt/lib/libqt-mt.so.3
#37 0x407aed6b in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#38 0x40bc5300 in QETWidget::translateMouseEvent ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#39 0x40bc2f8e in QApplication::x11ProcessEvent ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#40 0x40bd9e64 in QEventLoop::processEvents ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#41 0x40c41b38 in QEventLoop::enterLoop () from /usr/lib/qt/lib/libqt-mt.so.3
#42 0x40c419e8 in QEventLoop::exec () from /usr/lib/qt/lib/libqt-mt.so.3
#43 0x40c2fa31 in QApplication::exec () from /usr/lib/qt/lib/libqt-mt.so.3
#44 0x40025ab1 in kdemain () from /opt/kde3/lib/libkdeinit_kwrite.so
#45 0x0804871b in main ()
Comment 1 Christoph Cullmann 2004-10-31 14:30:59 UTC
looks more like problem in the filedialog
Comment 2 Wilbert Berendsen 2005-05-14 20:05:16 UTC
When I run KWrite with this data URL in KDE 3.4.0, it complains that the file is a binary file and loads it readonly.

KWrite crashes when closing it. This is the backtrace that then appears in gdb:

wilbert@obelix wilbert $ gdb kwrite
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run 'data:/,some text'
Starting program: /usr/kde/3.4/bin/kwrite 'data:/,some text'
[Thread debugging using libthread_db enabled]
[New Thread -1235031392 (LWP 20988)]
Qt: gdb: -nograb added to command-line options.
         Use the -dograb option to enforce grabbing.
ASSERT: "it.node != node" in /usr/qt/3/include/qvaluelist.h (301)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1235031392 (LWP 20988)]
0xb7fe5224 in QShared::deref() (this=0x43746c75) at qshared.h:50
50          bool deref()        { return !--count; }
(gdb) bt
#0  0xb7fe5224 in QShared::deref() (this=0x43746c75) at qshared.h:50
#1  0xb715c957 in ~QGArray (this=0x83c0448) at tools/qgarray.cpp:172
#2  0xb7fad259 in ~QMemArray (this=0xb742cda0) at qmemarray.h:61
#3  0xb7cfd8c8 in ~QueueStruct (this=0x83c043c) at dataslave.cpp:94
#4  0xb7cfec71 in ~QValueListNode (this=0x83c0430) at qvaluelist.h:280
#5  0xb7cf1f3a in ~QValueListPrivate (this=0x82ffa70) at qvaluelist.h:280
#6  0xb7ceea02 in QValueListPrivate<KIO::DataSlave::QueueStruct>::derefAndDelete() (this=0x82ffa70) at qvaluelist.h:235
#7  0xb7ce9210 in ~QValueList (this=0x43746c75) at qvaluelist.h:441
#8  0xb7cd93a1 in ~DataSlave (this=0x83cc7c0) at dataslave.cpp:68
#9  0xb7cdac02 in ~DataProtocol (this=0x83cc7c0) at dataprotocol.cpp:255
#10 0xb7c7776d in QPtrList<KIO::Slave>::deleteItem(void*) (this=0x43746c75,
    d=0xb742cda0) at qptrlist.h:150
#11 0xb7165625 in QGList::clear() (this=0x8395120) at tools/qglist.cpp:701
#12 0xb7c7749e in QPtrList<KIO::Slave>::clear() (this=0x43746c75)
    at qptrlist.h:93
#13 0xb7c76ebd in ~QPtrList (this=0x8395120) at qptrlist.h:70
#14 0xb7c76ded in ~SlaveList (this=0x8395120) at scheduler.cpp:91
#15 0xb7c0e898 in ~Scheduler (this=0x82c3050) at scheduler.cpp:159
#16 0xb6e165c1 in ~QObject (this=0xbfffef40) at kernel/qobject.cpp:497
#17 0xb6da5249 in ~QApplication (this=0xbfffef40)
    at kernel/qapplication.cpp:1134
#18 0xb7613637 in ~KApplication (this=0xbfffef40) at kapplication.cpp:1655
#19 0xb7fe36c0 in kdemain (argc=1131703413, argv=0x43746c75)
    at kwritemain.cpp:695
#20 0x0804877b in main (argc=1131703413, argv=0x43746c75) at kwrite.la.cpp:2
(gdb)
Comment 3 Tommi Tervo 2005-08-19 15:34:05 UTC

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