Bug 12863

Summary: Re: resend: uthread_init.c PANICs in case of (legally) close stdin
Product: Base System Reporter: Lawrence D. Lopez <lawlopez>
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 Lawrence D. Lopez 1999-07-29 01:40:01 UTC
 Dan,
 
 	I didn't try the patches because mi had
 gone home.
 
 	The other problem we are having is:
 
 PANIC("Cannot set virtual timer");
 in uthread_kern.c
 
 	This one really has me stumped.
 
 	I will use -pthread in the future.
 
 
 		Larry
 
 
 Daniel Eischen wrote:
 > 
 > > 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:04:19 UTC
State Changed
From-To: open->closed

Mis-filed en route to PR 12853.