-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version perl 5.8.8 and above : threads + pipe command causes some deadlocks #9672
Comments
From joknarf@free.frCreated by joknarf@free.frWith this piece of code sometimes deadlock for some threads (more threads=more often, maybe some race condition ?) #!/usr/bin/perl my $Parallel=$ARGV[0]; sub jobq { The purpose of the script is to distribute jobs to threads that are piped to another command Perl Info
|
From @iabynOn Wed, Mar 04, 2009 at 11:49:11PM -0800, JO Knarf wrote:
I also see deadlocks with perl 5.8.1 and 5.8.7 (for ARGV[0]=10).
The deadlock appears to be that the parents (i.e. the threads that hold the Might be some interaction between POSIX threads and fork, but I don't -- |
The RT System itself - Status changed from 'new' to 'open' |
From starlight@binnacle.cxmay be same as bug 72120 |
From starlight@binnacle.cxdeadlock caused by race in pipe open logic in need of mutex: pipe() without mutex the child processes will inherit |
From starlight@binnacle.cxforgot to add: one can work around this problem by wrapping |
From starlight@binnacle.cxOn Sat Jan 16 04:38:45 2010, starlight wrote:
Oops--not true. Was able to induce deadlocks even with perl locks Perl locks do appear to fix the problem if the threads live |
Migrated from rt.perl.org#63662 (status was 'open')
Searchable as RT63662$
The text was updated successfully, but these errors were encountered: