Bug 128259

Summary: csh(1): "`" crashes csh
Product: Base System Reporter: Jack <xxjack12xx>
Component: amd64Assignee: freebsd-amd64 (Nobody) <amd64>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 7.1-PRERELEASE   
Hardware: Any   
OS: Any   

Description Jack 2008-10-21 03:30:00 UTC
If you type "`" in the csh shell, the shell crashes

How-To-Repeat: Type "`" and hit enter.
Comment 1 Nate Eldredge 2008-10-21 05:16:09 UTC
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
Comment 2 Peter Jeremy 2008-10-21 09:42:35 UTC
On 2008-Oct-20 21:16:09 -0700, Nate Eldredge <neldredge@math.ucsd.edu> wrote:
>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.


It's also present in 7.1-PRERELEASE/i386 but not in 6.3/i386

-- 
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.
Comment 3 Nate Eldredge 2008-12-04 00:42:09 UTC
This is incorporated into bin/129405.

-- 

Nate Eldredge
neldredge@math.ucsd.edu
Comment 4 Jaakko Heinonen freebsd_committer freebsd_triage 2010-09-02 16:06:34 UTC
State Changed
From-To: open->closed

Duplicate of bin/129405.