Subject: pkg/20908: bash crach when killing some process
To: None <>
From: None <>
List: netbsd-bugs
Date: 03/27/2003 10:14:10
>Number:         20908
>Category:       pkg
>Synopsis:       bash crach when killing some process
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 27 10:15:00 PST 2003
>Originator:     Anthraxz
>Release:        NetBSD 1.6
I am not sure if this is a bug, but this is a very strange behaviour and I can't reproduce it with other shell.

In an xterm (or a konsole, gnome-terminal, etc)  promp, just enter the 
folowing command
% exec sort

and after kill it with ctrl+c. The whole shell (and the xterm) is killed.

Another thing :

- open 2 xterm (two different window)
- in one console
% exec sort
- int the other, enter
% ps fux | grep sort | awk '{print $2}' | xargs kill -9

this will also kill the first window

This seems related to bash, since in tclsh and in ksh, the ctrl+c just kill the sort process (not the shell/xterm).

This seems not specific to netbsd, since I had see the same behaviour on my red-hat box at work (rh 7.2), so maybe a copy of this bug report should be sended to upstream maintainer.