Bug 334432 - Konsole crashes when cat some binary contents
Summary: Konsole crashes when cat some binary contents
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.99.900
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-06 19:21 UTC by Luiz Angelo De Luca
Modified: 2014-05-22 18:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
bzip2ed socat (uncompress before test) (1.46 MB, application/x-bzip)
2014-05-06 19:24 UTC, Luiz Angelo De Luca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luiz Angelo De Luca 2014-05-06 19:21:55 UTC
I did a "cat socat" and konsole crashed. I'll attach the socat binary (static compiled)

This is the BT:

Application: <application>Konsole</application> (konsole), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f5cff852900 (LWP 28776))]

Thread 2 (Thread 0x7f5ce903a700 (LWP 28777)):
#0  0x00007f5cff19eb3d in poll () from /lib64/libc.so.6
#1  0x00007f5cf85fd0e2 in poll (__timeout=-1, __nfds=1, __fds=0x7f5ce9039c60) at /usr/include/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x21309c0, cond=cond@entry=0x2130a00, vector=vector@entry=0x0, count=count@entry=0x0) at xcb_conn.c:414
#3  0x00007f5cf85fe77f in xcb_wait_for_event (c=0x21309c0) at xcb_in.c:526
#4  0x00007f5ceb186cf9 in QXcbEventReader::run (this=0x213fa40) at qxcbconnection.cpp:1034
#5  0x00007f5cfba4f39f in QThreadPrivate::start (arg=0x213fa40) at thread/qthread_unix.cpp:345
#6  0x00007f5cf65a60db in start_thread () from /lib64/libpthread.so.0
#7  0x00007f5cff1a790d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f5cff852900 (LWP 28776)):
[KCrash Handler]
#5  0x00007f5cff0f5849 in raise () from /lib64/libc.so.6
#6  0x00007f5cff0f6cd8 in abort () from /lib64/libc.so.6
#7  0x00007f5cff134114 in __libc_message () from /lib64/libc.so.6
#8  0x00007f5cff13996e in malloc_printerr () from /lib64/libc.so.6
#9  0x00007f5cfedef83c in deallocate (data=<optimized out>) at /usr/include/qt5/QtCore/qarraydata.h:234
#10 ~QString (this=0x7fff0e1f7e40, __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qstring.h:994
#11 Konsole::Emulation::receiveData (this=0x225df30, text=<optimized out>, length=<optimized out>) at /usr/src/debug/konsole-4.99.0git~20140430~a3ce74d/src/Emulation.cpp:240
#12 0x00007f5cfbc5c773 in call (a=0x7fff0e1f7fd0, r=0x2251e00, this=0x22538e0) at ../../src/corelib/kernel/qobject_impl.h:132
#13 QMetaObject::activate (sender=sender@entry=0x2123ec0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff0e1f7fd0) at kernel/qobject.cpp:3666
#14 0x00007f5cfbc5d127 in QMetaObject::activate (sender=sender@entry=0x2123ec0, m=m@entry=0x7f5cff0b7980 <Konsole::Pty::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff0e1f7fd0) at kernel/qobject.cpp:3546
#15 0x00007f5cfee7109d in Konsole::Pty::receivedData (this=this@entry=0x2123ec0, _t1=0x2770878 "\r\n\b\240\341\r\n\b\277\341\r\n\b\311\341\r\n\b\323\341\r\n\b\335\341\r\n\b\347\341\r\n\b\361\341\r\n\b\347\340\r\n\b\361\340\r\n\b\373\340\r\n\b\005\341\r\n\b\017\341\r\n\b\031\341\r\n\b#\341\r\n\b-\341\r\n\b7\341\r\n\bA\341\r\n\b*\342\r\n\b*\342\r\n\bi\341\r\n\bs\341\r\n\b*\342\r\n\b\214\341\r\n\b\233\337\r\n\b\245\337\r\n\b\261\337\r\n\b*\342\r\n\b\305\337\r\n\b*\342\r\n\b*\342\r\n\b\343\337\r\n\b\355\337\r\n\b\367\337\r\n\b\001\340\r\n\b\v\340\r\n\b5\342\r\n\b\025\340\r\n\b\037\340\r\n\b)\340\r\n\b3\340"..., _t2=4095) at /usr/src/debug/konsole-4.99.0git~20140430~a3ce74d/build/src/moc_Pty.cpp:145
#16 0x00007f5cfee2258b in Konsole::Pty::dataReceived (this=0x2123ec0) at /usr/src/debug/konsole-4.99.0git~20140430~a3ce74d/src/Pty.cpp:88
#17 0x00007f5cfbc5c773 in call (a=0x7fff0e1f80b0, r=0x2123ec0, this=0x2181090) at ../../src/corelib/kernel/qobject_impl.h:132
#18 QMetaObject::activate (sender=sender@entry=0x222e090, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3666
#19 0x00007f5cfbc5d127 in QMetaObject::activate (sender=sender@entry=0x222e090, m=m@entry=0x7f5cfc06cd60 <QIODevice::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3546
#20 0x00007f5cfbcd6b30 in QIODevice::readyRead (this=this@entry=0x222e090) at .moc/moc_qiodevice.cpp:153
#21 0x00007f5cfa4b9c86 in KPtyDevicePrivate::_k_canRead (this=0x224be90) at /usr/src/debug/kpty-4.99.0git~20140504~985d14a/src/kptydevice.cpp:342
#22 0x00007f5cfa4ba1de in KPtyDevice::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7fff0e1f8350) at /usr/src/debug/kpty-4.99.0git~20140504~985d14a/build/src/moc_kptydevice.cpp:79
#23 0x00007f5cfbc5cc66 in QMetaObject::activate (sender=sender@entry=0x2226d40, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff0e1f8350) at kernel/qobject.cpp:3680
#24 0x00007f5cfbc5d127 in QMetaObject::activate (sender=sender@entry=0x2226d40, m=m@entry=0x7f5cfc06e6e0 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff0e1f8350) at kernel/qobject.cpp:3546
#25 0x00007f5cfbcd9b1e in QSocketNotifier::activated (this=this@entry=0x2226d40, _t1=10) at .moc/moc_qsocketnotifier.cpp:132
#26 0x00007f5cfbc698e9 in QSocketNotifier::event (this=0x2226d40, e=0x7fff0e1f8650) at kernel/qsocketnotifier.cpp:300
#27 0x00007f5cfc8cdedc in QApplicationPrivate::notify_helper (this=this@entry=0x211a2f0, receiver=receiver@entry=0x2226d40, e=e@entry=0x7fff0e1f8650) at kernel/qapplication.cpp:3501
#28 0x00007f5cfc8d2c56 in QApplication::notify (this=0x7fff0e1f89b0, receiver=0x2226d40, e=0x7fff0e1f8650) at kernel/qapplication.cpp:3284
#29 0x00007f5cfbc2dd15 in QCoreApplication::notifyInternal (this=0x7fff0e1f89b0, receiver=0x2226d40, event=event@entry=0x7fff0e1f8650) at kernel/qcoreapplication.cpp:935
#30 0x00007f5cfbc85965 in sendEvent (event=0x7fff0e1f8650, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:237
#31 socketNotifierSourceDispatch (source=source@entry=0x2171f70) at kernel/qeventdispatcher_glib.cpp:109
#32 0x00007f5cf6095316 in g_main_dispatch (context=0x2142d10) at gmain.c:3066
#33 g_main_context_dispatch (context=context@entry=0x2142d10) at gmain.c:3642
#34 0x00007f5cf6095668 in g_main_context_iterate (context=context@entry=0x2142d10, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3713
#35 0x00007f5cf609570c in g_main_context_iteration (context=0x2142d10, may_block=1) at gmain.c:3774
#36 0x00007f5cfbc84a2c in QEventDispatcherGlib::processEvents (this=0x21262c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#37 0x00007f5cfbc2bc2b in QEventLoop::exec (this=this@entry=0x7fff0e1f8870, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#38 0x00007f5cfbc33286 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#39 0x00007f5cfc15b17c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1436
#40 0x00007f5cfc8cc5f5 in QApplication::exec () at kernel/qapplication.cpp:2746
#41 0x00007f5cff4904d9 in kdemain (argc=1, argv=0x7fff0e1f8af8) at /usr/src/debug/konsole-4.99.0git~20140430~a3ce74d/src/main.cpp:92
#42 0x00007f5cff0e1be5 in __libc_start_main () from /lib64/libc.so.6
#43 0x0000000000400801 in _start () at ../sysdeps/x86_64/start.S:122


Reproducible: Always

Steps to Reproduce:
1.open konsole
2.cat socat

Actual Results:  
3. crash

Expected Results:  
3.no crash
Comment 1 Luiz Angelo De Luca 2014-05-06 19:24:35 UTC
Created attachment 86492 [details]
bzip2ed socat (uncompress before test)
Comment 2 Luiz Angelo De Luca 2014-05-22 18:33:04 UTC
Not happening anymore.