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
File::Path rmtree is not thread safe #12018
Comments
From steve@rhythm.comCreated by steve@rhythm.comOn Linux, threads are typically created with pthread_create which Deleting /tmp/test/junk I have replicated this problem on linux with perl v5.10.0 #!/usr/bin/perl use File::Path qw( rmtree mkpath); mkpath("/tmp/test/precious/1/2",0755); for( $x = 0 ;$x < 1000 ; $x++){ chdir("/tmp"); $_->join() for threads->list(); print "CWD: " . getcwd() . "\n"; sub wanted { foreach my $dir ( qw(/tmp/test/junk /tmp/test/precious)){ sub sub2(){ sub _delDir { my $rmTreeErrors; return $rmTreeErrors; Perl Info
|
From @karenetheridgeAs discussed in https://rt.cpan.org/Ticket/Display.html?id=99230#txn-1416715, if we can't fix the implemention, this limitation should be documented, as well as: `die 'rmtree not thread-safe' if threads->tid`. |
The RT System itself - Status changed from 'new' to 'open' |
From @jkeenanOn Tue Sep 30 15:00:59 2014, ether wrote:
File::Path is found in the Perl 5 core distribution under 'cpan/', which suggests that it is primarily maintained on CPAN. So that's where the patch should originate. Thank you very much. -- |
@iabyn - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#112008 (status was 'rejected')
Searchable as RT112008$
The text was updated successfully, but these errors were encountered: