Bug 376462

Summary: konsole stops displaying output after too much
Product: [Applications] konsole Reporter: Hello71 <alex_y_xu>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: egmont
Priority: NOR    
Version: 16.12.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=230184
Latest Commit: Version Fixed In:

Description Hello71 2017-02-13 22:50:50 UTC
Steps to reproduce:

1. i=0; while :; do ((i++)); printf '%d\r' $i; done
2. Press Ctrl-C.
3. Type "exit" and press enter.

Expected results:

After 1. terminal prints increasing numbers.
After 2. terminal prints shell prompt.
After 3. terminal closes.

Actual results:

After 1. terminal prints increasing numbers.
After 2. terminal displays last number printed, with cursor at start of line. no shell prompt is displayed, and typing produces no output.
After 3. terminal closes.
Comment 1 Kurt Hindenburg 2017-02-13 23:18:17 UTC
Do you know if you have unlimited scrollbacK?  If so, after 2GB of scrollback, Konsole behaves badly.
Comment 2 Hello71 2017-02-13 23:49:22 UTC
No, I set limited scrollback due to the excessively inefficient usage of RAM. Anyways, I cut it off after few hundred thousand, so that shouldn't be an issue.
Comment 3 Egmont Koblinger 2017-02-14 16:02:26 UTC
I can reproduce it in about 1 out of 10 attempts.
Comment 4 Egmont Koblinger 2017-02-14 16:04:47 UTC
Scrollback shouldn't matter (Kurt: note the '\r' in the output, this script just overwrites the number at a fixed location).
Comment 5 Kurt Hindenburg 2017-02-14 16:15:37 UTC
I wonder if this is the same as https://bugs.kde.org/show_bug.cgi?id=372991 - that one is really confusing
Comment 6 Egmont Koblinger 2017-02-14 16:32:46 UTC
Yeah they do sound the same.
Comment 7 Hello71 2017-02-15 00:59:57 UTC

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