Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 1997 00:30:27 -0800 (PST)
From:      div@nsu.ru
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   bin/5008: libc_r  not working at static linking 
Message-ID:  <199711110830.AAA07951@hub.freebsd.org>
Resent-Message-ID: <199711110840.AAA08286@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         5008
>Category:       bin
>Synopsis:       libc_r  not working at static linking
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 11 00:40:01 PST 1997
>Last-Modified:
>Originator:     Boris F. Muratshin
>Organization:
R&D Information Issues Institute
>Release:        2.2.2
>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:
???
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711110830.AAA07951>