From owner-freebsd-current Mon Apr 21 14:49:04 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA16472 for current-outgoing; Mon, 21 Apr 1997 14:49:04 -0700 (PDT) Received: from sovcom.relcom.ru (sovcom.relcom.ru [193.125.152.1]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id OAA16463; Mon, 21 Apr 1997 14:48:58 -0700 (PDT) Received: by sovcom.relcom.ru id AA20149 (5.65.kiae-1 ); Tue, 22 Apr 1997 00:37:22 +0300 Received: by sovcom.KIAE.su (UUMAIL/2.0); Tue, 22 Apr 97 00:37:22 +0300 Received: (from ache@localhost) by nagual.ru (8.8.5/8.8.5) id BAA02368; Tue, 22 Apr 1997 01:36:53 +0400 (MSD) Date: Tue, 22 Apr 1997 01:36:51 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= To: FreeBSD-current , dyson@freebsd.org Subject: Recent vfork kernel changes broke csh & tcsh! Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 http://www.nagual.ru/~ache/