From owner-freebsd-amd64@FreeBSD.ORG Tue Oct 21 04:33:34 2008 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 683AA1065673; Tue, 21 Oct 2008 04:33:34 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id 436FB8FC18; Tue, 21 Oct 2008 04:33:33 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m9L4G9624135; Mon, 20 Oct 2008 21:16:10 -0700 (PDT) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m9L4G9g26000; Mon, 20 Oct 2008 21:16:09 -0700 (PDT) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Mon, 20 Oct 2008 21:16:09 -0700 (PDT) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: Jack Low In-Reply-To: <200810210222.m9L2MrN0078706@www.freebsd.org> Message-ID: References: <200810210222.m9L2MrN0078706@www.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-gnats-submit@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: amd64/128259: "`" crashes csh X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2008 04:33:34 -0000 On Tue, 21 Oct 2008, Jack Low wrote: >> Description: > If you type "`" in the csh shell, the shell crashes >> How-To-Repeat: > Type "`" and hit enter. >> Fix: Thanks for the report, Jack. I suspect this is related to bin/125185, which involved csh improperly messing with global state in a vfork'ed subshell. Note that for both the present bug and 125185, the crash does not occur if csh is run with -F to use fork() instead of vfork(). nate@vulcan:/usr/home/nate$ csh %"`" Unmatched `. Segmentation fault: 11 (core dumped) nate@vulcan:/usr/home/nate$ csh -F %"`" Unmatched `. % I'll repeat my recommendation from 125185 that -F be made the default, so that vfork() is not used. I doubt that this bug is amd64 specific but don't have another machine to make sure at the moment. Probably it should be reclassified as "bin". It's also present in 7.0-RELEASE, by the way. -- Nate Eldredge neldredge@math.ucsd.edu