Re: FreeBSD deadlock (with fork?)

From: Ivan Voras <ivoras_at_freebsd.org>
Date: Thu, 18 Sep 2008 14:16:20 +0200
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).



Received on Thu Sep 18 2008 - 10:16:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:35 UTC