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
getpwuid hangs on redhat #13015
Comments
From eldon.olmstead@newpace.comThis is a bug report for perl from eldon.olmstead@newpace.com, The following command hangs on the call to getpwuid. This is a similar perl -e 'eval {my @n = getpwuid 0;}; if ( The unit test t/op/pwent.t also hangs during testing of getpwuid and setpwent(). However, i have confirmed that calling setpwent doesn't hang. Flags: Site configuration information for perl 5.16.3: Configured by eolmstea at Wed Jun 5 13:07:39 GMT 2013. Summary of my perl5 (revision 5 version 16 subversion 3) configuration: Locally applied patches: @INC for perl 5.16.3: Environment for perl 5.16.3: |
From @jkeenanOn Wed Jun 05 10:11:17 2013, eldon.olmstead@newpace.com wrote:
You are configuring with a long list of options. Although I cannot see sh ./Configure -des -Dprefix=/home/bizapp/perl5/perlbrew/perls/perl-5.16.3
Would you be able to attach the output of the following to this ticket? In the directory where you were building and testing this instance of cd t;./perl harness -v op/pwent.t; cd-
-Wl,-rpath,/home/bizapp/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3/i386-linux-thread-multi/CORE'
1.6.5/bin:/usr/java/jdk1.7.0/bin:./:/home/bizapp/perl5/perlbrew/bin:/home/bizapp/perl5/perlbrew/perls/perl- 5.16.3/bin:/opt/app/siteminder/webagent/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/bizapp/bin:/opt/app/oracle/product/10.2.0_client/bin:/opt/cch/processor/bin
PERLBREW_PATH=/home/bizapp/perl5/perlbrew/bin:/home/bizapp/perl5/perlbrew/perls/perl-
|
The RT System itself - Status changed from 'new' to 'open' |
From @iabynOn Wed, Jun 05, 2013 at 10:11:18AM -0700, eldon.olmstead@newpace.com wrote:
Was does running that command under strace show it hanging on? What setup do you have for the user database? local files, or NIS or LDAP What are the entries for passwd and shadow in /etc/nsswitch.conf ? -- |
From eldon.olmstead@newpace.comThis is in reply to both James and Dave. I tried as James suggested and rebuilt perl ( 5.16.2 this time, see perl-5.16.2.txt attached) with only defaults. The problem still exists and I have found the simplest method to reproduce the problem is to invoke perl as follows: perl -e '@n=getpwuid 0;' To answer Dave's questions: We are using LDAP. cat /etc/nsswitch.conf Running the following also only hangs: Using the debugger on the above I get the following: $ perl -d op/pwent.t Loading DB routines from perl5db.pl version 1.37 Enter h or 'h h' for help, or 'man perldebug' for more help. main::(op/pwent.t:12): eval {my @n = getpwuid 0; setpwent()}; So next I tried strace with the above and get the following output. ( see attached perl-5.16.2-strace.txt ) I've also noted that the system perl (5.8.8 see perl-5.8.8.txt for configuration) is having the same issue so your questions are leading me to believe there is a system configuration problem. t $ which perl t $ perl -v This is perl, v5.8.8 built for i386-linux-thread-multi Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License or the Complete documentation for Perl, including FAQ lists, should be found on t $ perl -e '@a=getpwuid 0;' <hangs again> However, I do have root access and the above doesn't hang ( see perl-5.8.8-strace-as-root.txt ). |
From eldon.olmstead@newpace.comSummary of my perl5 (revision 5 version 8 subversion 8) configuration: Characteristics of this binary (from libperl): |
From eldon.olmstead@newpace.comSummary of my perl5 (revision 5 version 16 subversion 2) configuration: Characteristics of this binary (from libperl): |
From eldon.olmstead@newpace.comexecve("/usr/bin/perl", ["perl", "-e", "@a=getpwuid 0;"], [/* 23 vars */]) = 0 |
From @iabynOn Tue, Jun 11, 2013 at 10:00:44AM -0300, Eldon Olmstead wrote:
[snip]
Unfortunately that doesn't help much, because that's just tracing the perl Could you run strace on your 5.16.2 perl, just running the command shown $ strace -o /tmp/perl-5.16.2-strace.txt -tt perl-5.16.2 -e '@n=getpwuid 0;'
Again, seeing an strace of the non-root hanging 5.8.8 would be handy -- |
We haven't heard back in over 8 years from the OP re @iabyn's request for more information. Closing this ticket. |
Migrated from rt.perl.org#118335 (status was 'open')
Searchable as RT118335$
The text was updated successfully, but these errors were encountered: