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
Pipes cause threads to hang on join() #10749
Comments
From @jdheddenCreated by @jdheddenA pipe opened before a thread is created will cause the application open(my Complete sample script attached. This may be related to [perl #63662] Perl Info
|
From matthew.kidd@ghctechnologies.comI am the original source of Bug Id 78494: http://rt.perl.org/rt3//Public/Bug/Display.html?id=78494 I first reported it as a bug against the threads package: https://rt.cpan.org/Public/Bug/Display.html?id=61705 Jerry Hedden was able to greatly simplify my bug report in the In practice the bug is much more problematic because it means In some cases it is possible to work around the bug by piping Accordingly, I am requesting that the priority of Bug Id 78494 - Matthew Kidd |
From @cpansproutOn Thu Oct 21 07:31:08 2010, jdhedden@cpan.org wrote:
close($OUT) within the thread also hangs. The same thing happens with this, too: open(my $OUT, "| cat -n"); Closing $OUT2 first works, because it has somehow been marked as not PerlIOUnix_dup and PerlIOStdio_dup do not call PerlLIO_dup during Also, PL_fdpid is a per-thread variable, so I am completely at a loss It seems that any pipe duplication is doomed to cause a hang somewhere. It also seems that any existing pipes must be closed before threads are |
The RT System itself - Status changed from 'new' to 'open' |
From @LeontOn Sun, Feb 13, 2011 at 10:18 PM, Father Chrysostomos via RT
PerlIO does reference counting on file descriptors, see Leon |
From @cpansproutI’ve just used the fd-refcounting mechanism to solve this for threads The other case I discovered involving ">&" is unresolved, but I will put |
@cpansprout - Status changed from 'open' to 'resolved' |
From @cpansproutOn Tue Feb 15 16:38:11 2011, sprout wrote:
That does not solve #63662, so these appear to be two separate issues. |
Migrated from rt.perl.org#78494 (status was 'resolved')
Searchable as RT78494$
The text was updated successfully, but these errors were encountered: