From owner-freebsd-bugs Tue Nov 11 00:40:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA08309 for bugs-outgoing; Tue, 11 Nov 1997 00:40:03 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA08286; Tue, 11 Nov 1997 00:40:02 -0800 (PST) (envelope-from gnats) Resent-Date: Tue, 11 Nov 1997 00:40:02 -0800 (PST) Resent-Message-Id: <199711110840.AAA08286@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, div@nsu.ru 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 X-Send-Pr-Version: www-1.0 Subject: bin/5008: libc_r not working at static linking Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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 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: