Bug 284863

Summary: cat of binary file crash konsole
Product: [Applications] konsole Reporter: Francesco Riosa <vivo75+kde>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: crash CC: adaptee, vivo75+kde
Priority: NOR    
Version: 2.7.999   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi
the file that catted made konsole crash

Description Francesco Riosa 2011-10-24 12:50:46 UTC
Application: konsole (2.7.999)
KDE Platform Version: 4.7.2 (4.7.2) (Compiled from sources)
Qt Version: 4.7.4
Operating System: Linux 3.0.3-fc15-aufs-x86_64 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
cat of a binary file (.tar.bz2) crash konsole every time

konsole
commit eb8f75f68d8ecedc9bd74178bfee373a9f934cc2
Date:   Sun Oct 23 03:03:35 2011 +0800

qt-4.7.4

The crash can be reproduced every time.

-- Backtrace:
Application: Konsole (kdeinit4), signal: Aborted
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[KCrash Handler]
#6  0x00007faba6942a25 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007faba6943e9b in __GI_abort () at abort.c:92
#8  0x00007faba866f514 in qt_message_output (msgType=<optimized out>, buf=<optimized out>) at global/qglobal.cpp:2291
#9  0x00007faba866f69f in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7faba87d6df8 "ASSERT failure in %s: \"%s\", file %s, line %d", ap=0x7fff10ad6108) at global/qglobal.cpp:2337
#10 0x00007faba866f844 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2520
#11 0x00007fab9649337e in QVector<Konsole::Character>::operator[] (this=0xd85390, i=75) at /usr/include/qt4/QtCore/qvector.h:347
#12 0x00007fab964927df in Konsole::Screen::displayCharacter (this=<optimized out>, c=1441) at /usr/src/debug/kde-base/konsole-9999/konsole-9999/src/Screen.cpp:661
#13 0x00007fab964cce6a in Konsole::Vt102Emulation::receiveChar (this=0xd18140, cc=1441) at /usr/src/debug/kde-base/konsole-9999/konsole-9999/src/Vt102Emulation.cpp:342
#14 0x00007fab9646c8f5 in Konsole::Emulation::receiveData (this=0xd18140, text=0x11a1658 "\r\n\324%\t\004\210\231\241\361\237U\201\361BO\230M\032K\"1\345\352\071\305\323\021\215|\316\064n\264\367\355~G\236\330\204\200I\324", length=4095) at /usr/src/debug/kde-base/konsole-9999/konsole-9999/src/Emulation.cpp:251
#15 0x00007fab96496995 in Konsole::Session::onReceiveBlock (this=0xbf2940, buf=0x11a1658 "\r\n\324%\t\004\210\231\241\361\237U\201\361BO\230M\032K\"1\345\352\071\305\323\021\215|\316\064n\264\367\355~G\236\330\204\200I\324", len=4095) at /usr/src/debug/kde-base/konsole-9999/konsole-9999/src/Session.cpp:1293
#16 0x00007fab96498fa7 in Konsole::Session::qt_metacall (this=0xbf2940, _c=QMetaObject::InvokeMetaMethod, _id=43, _a=0x7fff10ad64b0) at /usr/src/debug/kde-base/konsole-9999/konsole-9999_build/src/Session.moc:240
#17 0x00007faba87847b0 in QMetaObject::activate (sender=0xb310d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff10ad64b0) at kernel/qobject.cpp:3278
#18 0x00007fab9648e38d in Konsole::Pty::receivedData (this=<optimized out>, _t1=0x11a1658 "\r\n\324%\t\004\210\231\241\361\237U\201\361BO\230M\032K\"1\345\352\071\305\323\021\215|\316\064n\264\367\355~G\236\330\204\200I\324", _t2=4095) at /usr/src/debug/kde-base/konsole-9999/konsole-9999_build/src/Pty.moc:97
#19 0x00007fab9648e3e0 in Konsole::Pty::dataReceived (this=0xb310d0) at /usr/src/debug/kde-base/konsole-9999/konsole-9999/src/Pty.cpp:282
#20 0x00007fab9648e44c in Konsole::Pty::qt_metacall (this=0xb310d0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff10ad6580) at /usr/src/debug/kde-base/konsole-9999/konsole-9999_build/src/Pty.moc:85
#21 0x00007faba87847b0 in QMetaObject::activate (sender=0xbc5e10, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#22 0x00007fab9620293d in KPtyDevicePrivate::_k_canRead (this=0xb30ac0) at /usr/src/debug/kde-base/kdelibs-4.7.49.9999/kdelibs-4.7.49.9999/kpty/kptydevice.cpp:335
#23 0x00007fab96202bf9 in KPtyDevice::qt_metacall (this=0xbc5e10, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff10ad6750) at /usr/src/debug/kde-base/kdelibs-4.7.49.9999/kdelibs-4.7.49.9999_build/kpty/kptydevice.moc:80
#24 0x00007faba87847b0 in QMetaObject::activate (sender=0xbf2ad0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff10ad6750) at kernel/qobject.cpp:3278
#25 0x00007faba87d3ffe in QSocketNotifier::activated (this=<optimized out>, _t1=13) at .moc/debug-shared/moc_qsocketnotifier.cpp:89
#26 0x00007faba878dc5b in QSocketNotifier::event (this=0xbf2ad0, e=0x7fff10ad6e00) at kernel/qsocketnotifier.cpp:317
#27 0x00007faba7861962 in notify_helper (e=0x7fff10ad6e00, receiver=0xbf2ad0, this=0x97b3c0) at kernel/qapplication.cpp:4481
#28 QApplicationPrivate::notify_helper (this=0x97b3c0, receiver=0xbf2ad0, e=0x7fff10ad6e00) at kernel/qapplication.cpp:4453
#29 0x00007faba78674e9 in QApplication::notify (this=0x7fff10ad70c0, receiver=0xbf2ad0, e=0x7fff10ad6e00) at kernel/qapplication.cpp:4360
#30 0x00007faba97bcfdd in KApplication::notify (this=0x7fff10ad70c0, receiver=0xbf2ad0, event=0x7fff10ad6e00) at /usr/src/debug/kde-base/kdelibs-4.7.49.9999/kdelibs-4.7.49.9999/kdeui/kernel/kapplication.cpp:311
#31 0x00007faba876feec in QCoreApplication::notifyInternal (this=0x7fff10ad70c0, receiver=0xbf2ad0, event=0x7fff10ad6e00) at kernel/qcoreapplication.cpp:787
#32 0x00007faba879dcfb in sendEvent (event=0x7fff10ad6e00, receiver=<optimized out>) at kernel/qcoreapplication.h:215
#33 socketNotifierSourceDispatch (source=0x97a9d0) at kernel/qeventdispatcher_glib.cpp:110
#34 0x00007faba324377d in g_main_dispatch (context=0x97e960) at gmain.c:2425
#35 g_main_context_dispatch (context=0x97e960) at gmain.c:2995
#36 0x00007faba3243f78 in g_main_context_iterate (context=0x97e960, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3073
#37 0x00007faba3244149 in g_main_context_iteration (context=0x97e960, may_block=1) at gmain.c:3136
#38 0x00007faba879e5ff in QEventDispatcherGlib::processEvents (this=0x97af50, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#39 0x00007faba7911c1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007faba876e7d2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#41 0x00007faba876e9cf in QEventLoop::exec (this=0x7fff10ad7050, flags=...) at kernel/qeventloop.cpp:201
#42 0x00007faba8773e17 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#43 0x00007fab9673febf in kdemain (argc=1, argv=0x8ea780) at /usr/src/debug/kde-base/konsole-9999/konsole-9999/src/main.cpp:89
#44 0x0000000000408163 in launch (argc=1, _name=0x95c688 "/usr/bin/konsole", args=<optimized out>, cwd=0x0, envc=<optimized out>, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x95c6b4 "monfi;1319459747;640240;6746_TIME270250370") at /usr/src/debug/kde-base/kdelibs-4.7.49.9999/kdelibs-4.7.49.9999/kinit/kinit.cpp:734
#45 0x0000000000408f9c in handle_launcher_request (sock=7, who=<optimized out>) at /usr/src/debug/kde-base/kdelibs-4.7.49.9999/kdelibs-4.7.49.9999/kinit/kinit.cpp:1226
#46 0x000000000040949c in handle_requests (waitForPid=0) at /usr/src/debug/kde-base/kdelibs-4.7.49.9999/kdelibs-4.7.49.9999/kinit/kinit.cpp:1419
#47 0x00000000004051fd in main (argc=2, argv=0x7fff10ad7cc8, envp=0x7fff10ad7ce0) at /usr/src/debug/kde-base/kdelibs-4.7.49.9999/kdelibs-4.7.49.9999/kinit/kinit.cpp:1907

Reported using DrKonqi
Comment 1 Francesco Riosa 2011-10-24 12:52:48 UTC
Created attachment 64829 [details]
New crash information added by DrKonqi

konsole (2.7.999) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4

same file, bzcat instead of cat (still binary because it's a tar file)

-- Backtrace (Reduced):
#6  0x00007faba6942a25 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007faba6943e9b in __GI_abort () at abort.c:92
[...]
#11 0x00007fab9649337e in QVector<Konsole::Character>::operator[] (this=0xd895f0, i=11) at /usr/include/qt4/QtCore/qvector.h:347
#12 0x00007fab964927df in Konsole::Screen::displayCharacter (this=<optimized out>, c=1433) at /usr/src/debug/kde-base/konsole-9999/konsole-9999/src/Screen.cpp:661
#13 0x00007fab964cce6a in Konsole::Vt102Emulation::receiveChar (this=0xd096a0, cc=1433) at /usr/src/debug/kde-base/konsole-9999/konsole-9999/src/Vt102Emulation.cpp:342
Comment 2 Francesco Riosa 2011-10-24 12:54:14 UTC
Created attachment 64830 [details]
New crash information added by DrKonqi

konsole (2.7.999) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4

same, on a local console instead of ssh ...

-- Backtrace (Reduced):
#6  0x00007faba6942a25 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007faba6943e9b in __GI_abort () at abort.c:92
[...]
#11 0x00007fab9649337e in QVector<Konsole::Character>::operator[] (this=0xb8d8b0, i=11) at /usr/include/qt4/QtCore/qvector.h:347
#12 0x00007fab964927df in Konsole::Screen::displayCharacter (this=<optimized out>, c=1433) at /usr/src/debug/kde-base/konsole-9999/konsole-9999/src/Screen.cpp:661
#13 0x00007fab964cce6a in Konsole::Vt102Emulation::receiveChar (this=0xa9e9a0, cc=1433) at /usr/src/debug/kde-base/konsole-9999/konsole-9999/src/Vt102Emulation.cpp:342
Comment 3 Francesco Riosa 2011-10-24 12:56:30 UTC
Created attachment 64831 [details]
the file that catted made konsole crash
Comment 4 Jekyll Wu 2011-10-24 13:43:50 UTC
Thanks for reporting. This is actually a known problem and already tracked in bug #184964. 

The trouble is it is not reproducible in the sense of for every time and for every one. For example, the attached file doesn't crash konsole for me no matter how many times I try to cat or bzcat it.
Comment 5 Francesco Riosa 2011-10-24 14:34:57 UTC

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