From lawlopez@cisco.com Wed Jul 28 17:31:40 1999
Return-Path: <lawlopez@cisco.com>
Received: from tornado.cisco.com (tornado.cisco.com [171.69.104.22])
	by hub.freebsd.org (Postfix) with ESMTP id 4DA6814EEF
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Jul 1999 17:31:38 -0700 (PDT)
	(envelope-from lawlopez@cisco.com)
Received: from cisco.com (lawlopez-pc.cisco.com [171.69.206.56]) by tornado.cisco.com (8.8.5-Cisco.1/8.6.5) with ESMTP id UAA11309; Wed, 28 Jul 1999 20:31:10 -0400 (EDT)
Message-Id: <379FA0D0.BE5E5BAD@cisco.com>
Date: Wed, 28 Jul 1999 20:31:12 -0400
From: "Lawrence D. Lopez" <lawlopez@cisco.com>
Sender: lawlopez@cisco.com
To: Daniel Eischen <eischen@vigrid.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
References: <199907290013.UAA01121@pcnet1.pcnet.com>

>Number:         12863
>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:40:01 PDT 1999
>Closed-Date:    Thu Jul 29 13:04:19 PDT 1999
>Last-Modified:  Wed Oct 26 06:15:57 GMT 2005
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 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
 
>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:04:19 PDT 1999 
State-Changed-Why:  
Mis-filed en route to PR 12853. 
>Unformatted:
