Bug#1702: debian bash bug
Richard Kettlewell <richard@greenend.org.uk> writes:
> Still there in 1.14.6-5.
I really can't duplicate it. What am I doing wrong? Here's a
typescript of what I'm doing.
I also ran an strace on the su'd bash, and it looked ok. The bash got
a SIGHUP and exited. You wrote before:
> I've had a prod around but I still don't understand what is going on.
> At first I thought that it was just that the rogue bash was ignoring
> SIGHUP or something; however manually SIGHUPing it (instead of closing
> the telnet connection) contradicts this.
Do you mean that SIGHIPing it would close the connection correctly?
Perhaps the bug was in telnetd not sending the SIGHUP or that the
first bash wouldn't SIGHUP the second?
Anyway here's the script:
Script started on Wed Oct 23 16:23:56 1996
bash$ telnet localhost
Trying 127.0.0.1...
Connected to loopback.
Escape character is '^]'.
Linux i586 2.0.23 (slip-77-7.ots.utexas.edu ttyp6)
femto login: gmaor
Password:
Last login: Wed Oct 23 16:22:16 from loopback
Linux femto 2.0.23 #6 Sat Oct 19 00:00:25 CDT 1996 i586
4:24pm up 1 day, 23:30h, 7 users, load average: 0.02, 0.03, 0.00
]0;femtofemto[~]$ tty
/dev/ttyp6
femto[~]$ ps tp6
PID TT TIME COMMAND
8797 p6 0.17s -bash
8803 p6 0.07s ps tp6
femto[~]$ su root
Password:
RoOt@femto[~]$ ' ps tp6
PID TT TIME COMMAND
8804 p6 0.14s bash
8809 p6 0.07s ps tp6
8797 p6 0.17s -bash
RoOt@femto[~]$ more /etc/inetd.conf
# /etc/inetd.conf: see inetd(8) for further informations.
#
# Internet server configuration database
#
#
# Lines starting with "#:LABEL:" or "#<off>#" should not
# be changed unless you know what you are doing!
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
#:INTERNAL: Internal services
#echo stream tcp nowait root internal
#echo dgram udp wait root internal
discard stream tcp nowait root internal
discard dgram udp wait root internal
daytime stream tcp nowait root internal
daytime dgram udp wait root internal
#chargen stream tcp nowait root internal
#chargen dgram udp wait root internal
time stream tcp nowait root internal
time dgram udp wait root internal
[7m--More--(30%)[m
telnet> Connection closed.
bash$ ~ ps tp6
PID TT TIME COMMAND
No processes available.
bash$
Script done on Wed Oct 23 16:24:53 1996
Guy
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com
Reply to: