Bug 279197

Summary: konsole crashes on non-printable characters
Product: [Applications] konsole Reporter: Robert Marmorstein <robert>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: crash CC: adaptee
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Backtrace of the crash

Description Robert Marmorstein 2011-08-02 18:42:48 UTC
Created attachment 62481 [details]
Backtrace of the crash

Version:           unspecified (using Devel) 
OS:                Linux

If I cat a binary file or other file with non-printable characters while in a konsole window, console crashes closing all my tabs.  If I run konsole in an xterm, it gives the following output:

 Undecodable sequence: \001b(hex)\fffd(hex)
Undecodable sequence: \001b(hex)\fffd(hex)
Undecodable sequence: \001b(hex)\fffd(hex)
Undecodable sequence: \001b(hex)x
Undecodable sequence: \001b(hex)\fffd(hex)
Undecodable sequence: \001b(hex)x
Undecodable sequence: \001b(hex)"
Undecodable sequence: \001b(hex)\fffd(hex)
Undecodable sequence: \001b(hex)\fffd(hex)
Undecodable sequence: \001b(hex)\0020(hex)
Undecodable sequence: \001b(hex)\fffd(hex)
ASSERT failure in QVector<T>::operator[]: "index out of range", file /usr/include/QtCore/qvector.h, line 347
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = konsole path = /usr/bin pid = 17025
KCrash: Arguments: /usr/bin/konsole --nocrashhandler 
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/robert/.kde/socket-hyaline/kdeinit4__0

I will attach a backtrace below.

Reproducible: Always

Steps to Reproduce:
Open konsole.  Create or download a file with some non-printable characters.  Cat the file.  CRASH!

Actual Results:  
Konsole crashes.

Expected Results:  
Konsole displays the file, but does not crash.
Comment 1 Jekyll Wu 2011-09-19 03:10:12 UTC

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