From eischen@vigrid.com Wed Jul 28 17:16:02 1999
Return-Path: <eischen@vigrid.com>
Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3])
	by hub.freebsd.org (Postfix) with ESMTP id 4BE84154E5
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Jul 1999 17:15:52 -0700 (PDT)
	(envelope-from eischen@vigrid.com)
Received: (from eischen@localhost)
	by pcnet1.pcnet.com (8.8.7/PCNet) id UAA01121;
	Wed, 28 Jul 1999 20:13:41 -0400 (EDT)
Message-Id: <199907290013.UAA01121@pcnet1.pcnet.com>
Date: Wed, 28 Jul 1999 20:13:41 -0400 (EDT)
From: Daniel Eischen <eischen@vigrid.com>
To: eischen@vigrid.com, lawlopez@cisco.com
Cc: FreeBSD-gnats-submit@freebsd.org, jb@cimlogic.com.au,
	mi@aldan.algebra.com, msestina@cisco.com, sjlee@cisco.com
Subject: Re: resend: uthread_init.c PANICs in case of (legally) close stdin

>Number:         12862
>Category:       bin
>Synopsis:       Re: resend: uthread_init.c PANICs in case of (legally) close stdin
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 28 17:20:00 PDT 1999
>Closed-Date:    Thu Jul 29 13:03:30 PDT 1999
>Last-Modified:  Wed Oct 26 06:08:09 GMT 2005
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 > 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
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Thu Jul 29 13:03:30 PDT 1999 
State-Changed-Why:  
Mis-filed en route to PR 12853. 
>Unformatted:
