Bug 59293

Summary: Pressing shift + enter crashes konsole
Product: [Applications] konsole Reporter: David Redmond <david.redmond>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED WORKSFORME    
Severity: crash    
Priority: NOR    
Version: 1.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description David Redmond 2003-06-03 19:32:40 UTC
Version:           1.2 (using KDE KDE 3.1)
Installed from:    Unlisted Binary Package
Compiler:          gcc 3.2 
OS:          Linux

Pressing shift + enter while running bash with keyboard set to XTerm (XFree 4.x.x) causes the memory usage to rapidly expand until filled. Swap is then invoked and shortly afterward konsole crashes.
Comment 1 Thiago Macieira 2003-06-03 19:39:45 UTC
I can't reproduce on CVS-HEAD, using gcc 3.2 as well. 
 
Can you upgrade your KDE to version 3.1.2 and test again? 
Comment 2 Stephan Binner 2003-06-03 20:15:11 UTC
Should be a shell bug, try the same within an xterm. 
Comment 3 David Redmond 2003-06-03 20:18:57 UTC
Does not occur under xterm, gnome-terminal & bash from a console login. I will
retest with updated version and report.
Comment 4 Stephan Binner 2003-06-05 09:37:59 UTC
And please provide the stacktrace. 
Comment 5 Andrew A 2003-06-10 01:09:06 UTC
This happens to me, but strangely enough, the problem does seem to be in the
shell, even though it only happens in konsole, not xterms. Try this: open up two
xterms, and from one of them, run nice -n 19 konsole. (This makes it easier to
kill when you want to kill it.) In the other one, run top. Then hit shift-enter
in konsole, and watch bash rise to the top of the list. Try running tcsh in the
konsole you opened - nothing happens when you hit shift+enter!
Comment 6 Matt Rogers 2003-09-16 17:02:03 UTC
Unreproducible in CVS HEAD. As with TCSH (from the previous comment), nothing 
happens when i press shift+enter. 
Comment 7 Joshua 2004-01-06 18:03:06 UTC
This happens to me as well in 3.1.2 Except that it does not crash. It rather takes over the whole machine until I can manage to kill it. Even with nice -n 19, it takes a few minutes before it gives me access to another shell for me to kill. 
It happens with either shift keys (keycode 36 and 50 in xev).  It does not matter which shell I use either. I consider this bug critical as I can take down our server with it.  mem usage hits 95%.
Comment 8 Thiago Macieira 2004-01-06 22:19:17 UTC
Sorry, it must be a bug in bash or with libreadline. Shift+Enter in Konsole produces ESC O M, while in xterm it produces a normal Carriage-Return.