Bug 12862

Summary: Re: resend: uthread_init.c PANICs in case of (legally) close stdin
Product: Base System Reporter: eischen <eischen>
Component: binAssignee: GNATS administrator <gnats-admin>
Status: Closed FIXED    
Severity: Affects Only Me CC: FreeBSD-gnats-submit
Priority: Normal    
Version: 1.0-RELEASE   
Hardware: Any   
OS: Any   

Description eischen 1999-07-29 01:20:00 UTC
 > Test procedure:
 > 
 > attached is a tarfile which contains
 > the test procedure.
 
 [ ... ]
 
 > all:
 >         rm -f run thread *.core
 >         cc -o thread thread.c -lc_r
 >         cc -o run run.c
 >         ./run
 
 That should be:
 
 	cc -o thread -pthread thread.c
 
 Don't use -lc_r when building threaded apps on FreeBSD because it
 also links in libc.
 
 But did you try the patches I sent?  I take it you didn't try
 them because your test program worked for me with the patches
 applied to uthread_fd.c and uthread_init.c.
 
 You said you were also getting other segmentation faults even
 after applying Mikhail Teterins patches from the PR filed.  What
 is the status of that problem?
 
 > >Fix: 
 >         
 >         This fix does NOT fix the seg-fault itself, but only prevents
 >         the panic from happening in this legal case.
 
 Dan Eischen
 eischen@vigrid.com
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 1999-07-29 21:03:30 UTC
State Changed
From-To: open->closed

Mis-filed en route to PR 12853.