Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 2000 17:52:10 -0500
From:      Randall Hopper <aa8vb@ipass.net>
To:        Tom <tom@uniserve.com>, stable@FreeBSD.ORG
Subject:   Re: Dynamic linker bug in 3.4-RELEASE (I think)
Message-ID:  <20000319175210.A52827@ipass.net>
In-Reply-To: <20000319105019.D78517@beastie.localdomain>; from boshea@ricochet.net on Sun, Mar 19, 2000 at 10:50:19AM -0800
References:  <20000317195156.A24243@ipass.net> <Pine.BSF.4.05.10003171652210.25933-100000@shell.uniserve.ca> <20000318110118.A34149@ipass.net> <20000319105019.D78517@beastie.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
Brian O'Shea:
 |>| Randall Hopper:
 |>|  > I have a small program I wrote that uses sigwait and takes about 1
 |>|  > second to complete.
 |>|  > 
 |>|  > If I run it over-and-over many times repeatedly, occasionally the
 |>|  > dynamic linker will fail to resolve the "sigwait" symbol.
 |>   ...
 |>|  >      /usr/libexec/ld-elf.so.1: hw4-1: Undefined symbol "sigwait"
 | 
 |However, I don't think that this is what's going on here since in each
 |iteration of the while-loop, the shell waits for its child to exit
 |before starting the next iteration (and it should be closing /dev/null
 |in the parent process after each fork() system call).  It could be a
 |shell bug (if the shell isn't closing the open files from the
 |redirection after the fork).  To test this, you could try running fstat
 |on the shell process while the script is running to see how many times
 |it has /dev/null open.  The fstat program doesn't show file names, it
 |will only tell you that there are open files in / (/dev/null is in the
 |/ filesystem), so it might be useful to run this command before and
 |during the while-loop and compare the output from both times).

I tried this.  I never caught tcsh (6.09.00) with /dev/null open.
I did see hw4-1 with it open one or twice (it forks one child process and
terminates after the child exits, so the second /dev/null is the child).
But nothing besides that with either process.

Randall



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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