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
abs_path() errouneously returning undef because lstat() sets errno to EINVAL #11137
Comments
From dmuey@cpan.orgCreated by dmuey@cpan.orgHello, I am seeing several systems behaving strangely (details below) in [ -- Working server -- ] # perl -MCwd -Mstrict -wle 'my $etc = Cwd::abs_path("/etc");if (defined $etc) { print "Defined: $etc" } else { print "Undefined"; }' [ -- Affected server -- ] # perl -MCwd -Mstrict -wle 'my $etc = Cwd::abs_path("/etc");if (defined $etc) { print "Defined: $etc" } else { print "Undefined"; }' [ -- lower level -- ] If I add debug output before and after line 156 in Cwd.xs like so: printf("DEBUG Before %d %s\n", errno, resolved); and rebuild it, then we now see that errno was changed from ENOENT to EINVAL and thus the return(NULL) is triggered: # perl -I. -I./blib/arch -MCwd -Mstrict -wle 'my $etc = Cwd::abs_path("/etc");if (defined $etc) { print "Defined: $etc" } else { print "Undefined"; }' It is the same if we change lstat() to PerlLIO_lstat() [ -- misc info -- ] Both servers are Working server: Affected server (the server this perlbug was sent from): A diff of the output of: perl -MConfig -e 'for $k (sort keys %Config) { print "$k:$Config{$k}\n"; }' on each box is attached to https://rt.cpan.org/Ticket/Display.html?id=65379 Perl Info
|
From @cpansproutOn Thu Feb 17 09:07:03 2011, dmuey wrote:
I cannot produce this on Mac OS X. Does the affected server remain right |
The RT System itself - Status changed from 'new' to 'open' |
From dmuey@cpan.org
Right, it is only reproducible on certain machines.
As a matter of fact it does, nice! So it appears to be a (64bit) threading issue … |
From webmaster@simplemood.com
Right, it is only reproducible on certain machines.
As a matter of fact it does, nice! So it appears to be a (64bit) threading issue … |
From @jkeenanOn Thu Feb 24 00:43:58 2011, webmaster@simplemood.com wrote:
Tonight I built a threaded perl on the Dromedary server, at blead, and ##### Granted, I did not configure with the long list of arguments the OP did. Can anyone confirm? Is this ticket closable? Thank you very much. |
From @jkeenanOn Fri Sep 06 20:09:25 2013, jkeenan wrote:
We have not heard from the original poster in 2-3/4 years. No one has provided evidence that this is not fixed in blead. So I am taking this ticket for the purpose of closing it within 7 days unless someone objects. Thank you very much. |
From @jkeenanOn Sun Nov 24 09:50:35 2013, jkeenan wrote:
Closing as per schedule. |
@jkeenan - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#84338 (status was 'resolved')
Searchable as RT84338$
The text was updated successfully, but these errors were encountered: