FreeBSD deadlock (with fork?)
Ivan Voras
ivoras at freebsd.org
Thu Sep 18 12:16:25 UTC 2008
David Naylor wrote:
> Hi,
>
> I have a program that spawns a lot of subprocesses (with pipes open) from
> multiple threads. The problem is the program often deadlocks, but not
> consistently. Sometimes the program can run over 5 times to competition
> without incidence and yet othertimes it locks within a few seconds.
>
> However if I limit the thread count to 1 the problem does not appear to be
> present.
>
> Here are the logs from gdb:
...
Are you sure it's not a design error in your program?
Your best bet for solving this problem is to try to create a minimum
program that will fail and post it here (don't post your whole program,
it's probably too big).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080918/94a8c3e7/signature.pgp
More information about the freebsd-current
mailing list