Bug 151096 - /usr/bin/script dies on ^G output in a fresh konsole window but not in a used one
Summary: /usr/bin/script dies on ^G output in a fresh konsole window but not in a used...
Status: RESOLVED REMIND
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.6.6
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-20 16:39 UTC by bit4
Modified: 2008-06-02 07:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bit4 2007-10-20 16:39:52 UTC
Version:            (using KDE KDE 3.5.8)
Installed from:    Ubuntu Packages
OS:                Linux

1 - Open a new Konsole window
2 - In the Konsole window enter the command:
        script x
3 - Press the backspace key, to cause a bell character to be written
    The result is that the script command exists immediately, which should not happen.
4 - enter again the command
        script x
5 - press the backspace key
    This time the command does not terminate, which is the correct behavior.

If before step 2 you open and close the About dialog, or the Configure konsole dialog, then script does not crash.

The problem does not occur when using gnome-terminal or xterm instead of konsole.

The event that causes the crash seems to be outputting a bell character (^G) to the terminal. You can type the command
    echo ^G     #(type e, c, h, o, space, control-v, control-g, enter)
instead of pressing the backspace key and the results will be the same.

If before step 2 or before step 3 I open and close the Settings menu (by clicking twice on it), then the problem does not occur. If, however, I do the same with any other menu (Session, Edit, View, Bookmarks or Help), script still crashes.

The same actions did not cause a crash in Ubuntu 7.04. It only started happening when I upgraded to Ubuntu 7.10 (with the new KDE).

I tried the same after removing all ~/.kde/share/config/session/konsole_* files and the error still happens.

This *may* be a bug in /usr/bin/script, but the symptoms suggest it is very much affected by something in the Konsole environment, which changes when I open a dialog box or run a command in the window. I looked for a place to report a bug in /usr/bin/script, but could not find one. Does anybody know where I should report this in case the problem is really there?

Here are the contents of my .kde/share/config/konsolerc and konsole.eventsrc :
------------ start konsolerc ---------
[$Version]
update_info=konsole.upd:kde2.2/r1,konsole.upd:kde3.0/r1

[Desktop Entry]
ActiveSession=0
AllowResize=false
AutoResizeTabs=false
BlinkingCursor=false
CtrlDrag=true
CutToBeginningOfLine=true
DefaultSession=shell.desktop
DynamicTabHide=false
EnableBidi=false
EncodingName=Default
Fullscreen=false
Height 1024=341
LineSpacing=0
MatchTabWinTitle=false
SilenceSeconds=10
TabColor=0,0,0
TabViewMode=0
TerminalSizeHint=false
WarnQuit=true
Width 1280=622
XonXoff=false
bellmode=0
class=konsole-mainwindow#1
defaultfont=Andale Mono,9,-1,5,50,0,0,0,0,0
has frame=true
history=2000
historyenabled=true
keytab=linux
schema=BlackOnWhite.schema
scrollbar=2
tabbar=2
wordseps=:@-./_~

[General]
ShowAlternativeShortcutConfig=false

[Shortcuts]
edit_copy=Ctrl+Insert

[TipOfDay]
TipLastShown=2007,10,20,1,3,17
------------ end ---------

------------ start konsole.eventsrc ---------
[Activity]
commandline=
logfile=
presentation=16
soundfile=

[BellInvisible]
commandline=
logfile=
presentation=16
soundfile=KDE_Beep_Connect.ogg

[BellVisible]
commandline=
logfile=
presentation=0
soundfile=

[Finished]
commandline=
logfile=
presentation=0
soundfile=

[Silence]
commandline=
logfile=
presentation=16
soundfile=
------------ end ---------
Comment 1 bit4 2007-10-21 12:16:22 UTC
Additional info:
The same crash happens when resizing the konsole window, except this time it happens always, regardless of the konsole window being new.
Comment 2 Robert Knight 2008-01-12 21:47:53 UTC
> It only started happening when I upgraded to Ubuntu 7.10 (with the new KDE).

Nothing changed in Konsole between Ubuntu 7.04 and Ubuntu 7.10 as far as I know, so likely a problem elsewhere.
Comment 3 Robert Knight 2008-06-02 07:58:26 UTC
Closing as per comment #2.  If more debugging shows that Konsole is indeed doing something wrong then I will re-open.