Alex Shnitman wrote:
On Fri, 2003-07-11 at 15:49, Shlomi Fish wrote:

Here's the output from the program on my machine:

Father
Sweet child in time: 8826
you'll see the light

It seems the exec is happening. I'm using kernel 2.4.21-0.18mdk with
glibc-2.3.1-10mdk on a Mandrake 9.1 system running on a P3 Machine.


This is very troubling. The exact same program gets stuck on my machine
right after "Sweet child in time", and I get no further printings. This
means that neither the execlp() nor the perror() after it were called.
The process table looks pretty weird, too:

alexsh   12056  0.2  0.1  3624  396 pts/0    S    10:15   0:00 ./thfork
alexsh   12057  0.0  0.0     0    0 pts/0    Z    10:15   0:00 [thfork]
<defunct>
alexsh   12059  0.0  0.1  3624  424 pts/0    S    10:15   0:00 ./thfork


Gentelmen,

Can you please post the link command used to generate the binary? did you remember to lni libpthread? because if you didn't you're using the standart fork/exec instead of the thread aware ones from libpthread and this explains what you're seeing.

Gilad.


================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to