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).
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:35 UTC