Date: Tue, 22 Apr 1997 01:36:51 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.ru> To: FreeBSD-current <current@freebsd.org>, dyson@freebsd.org Subject: Recent vfork kernel changes broke csh & tcsh! Message-ID: <Pine.BSF.3.96.970422012832.2204A-100000@nagual.ru>
next in thread | raw e-mail | index | archive | help
Run this simple file (a.sh, a+rx mode)
#!/bin/sh
while true
do
sleep 10
done &
and you got SIGSEGV at the next one or two commands you'll enter
after it started.
Both csh and tcsh affected in the similar way.
GDB script included:
nagual:/tmp p0 61_# gdb csh
...
(gdb) run
Starting program: /mnt/tmp/csh
# ./a.sh
# ls
a.sh a.sh.bak csh csh.core typescript
Program received signal SIGSEGV, Segmentation fault.
pwait () at /usr/src/bin/csh/proc.c:236
236 if (pp->p_pid == 0) {
(gdb) bt
#0 pwait () at /usr/src/bin/csh/proc.c:236
#1 0x140ee in execute (t=0x48600, wanttty=2180, pipein=0x0, pipeout=0x0)
at /usr/src/bin/csh/sem.c:357
#2 0x14305 in execute (t=0x485e0, wanttty=2180, pipein=0x0, pipeout=0x0)
at /usr/src/bin/csh/sem.c:435
#3 0x2c48 in process (catch=1) at /usr/src/bin/csh/csh.c:1104
#4 0x203e in main (argc=1, argv=0xefbfdc08) at /usr/src/bin/csh/csh.c:572
--
Andrey A. Chernov
<ache@null.net>
http://www.nagual.ru/~ache/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970422012832.2204A-100000>
