From nobody  Tue Nov 11 00:30:27 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.7/8.8.7) id AAA07951;
          Tue, 11 Nov 1997 00:30:27 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199711110830.AAA07951@hub.freebsd.org>
Date: Tue, 11 Nov 1997 00:30:27 -0800 (PST)
From: div@nsu.ru
To: freebsd-gnats-submit@freebsd.org
Subject: libc_r  not working at static linking 
X-Send-Pr-Version: www-1.0

>Number:         5008
>Category:       bin
>Synopsis:       libc_r  not working at static linking
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 11 00:40:01 PST 1997
>Closed-Date:    Thu Dec 10 14:01:57 PST 1998
>Last-Modified:  Thu Dec 10 14:03:43 PST 1998
>Originator:     Boris F. Muratshin
>Release:        2.2.2
>Organization:
R&D Information Issues Institute
>Environment:
FreeBSD SSS 2.2.2-RELEASE FreeBSD 2.2.2-RELEASE #0:
Mon Nov 10 10:52:13 NS 1997 root@sss:/usr/src/sys/compile/SSS i386
>Description:
At static linking does not working programs using  'pthreads' 
or 'sleep' system call.
Compiling & linking goes withowt problems but at attempt to run
process stalling. As can I see in 'top'  it eats processor time but do nothing & ktrace says nothing.


>How-To-Repeat:
Try the next:
1. create file aa.cc with contents of
'
#include <unistd.h>
int main()
{
  sleep(1);
  return 0;
}
'
2. run gcc aa.cc -lc_r -static 
3. run a.out 
4. fun

PS I am using pgcc 2.7.2 from ports/lang


>Fix:
???
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Thu Dec 10 14:01:57 PST 1998 
State-Changed-Why:  
Please try this with a later RELEASE.  This problem seems to have 
been fixed. 
>Unformatted:
