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
getpwent() problems on HPUX 11 #4154
Comments
From rrauenza@cup.hp.comperl 5.6.1 doesn't pass t/op/grent.t (2nd test) on my machine -- it A short script that reproduces the problem with any number of entries is $,=":";
$\="\n";
setgrent();
do {
@entries=getgrent();
print @entries;
} until (@entries==0);
endgrent(); There is also a problem with ... $,=":";
$\="\n";
setpwent();
do {
@entries=getpwent();
print @entries;
} until (@entries==0);
endpwent(); The .c "equivalent" doesn't fail -- but the perl script does a lot of other passwd function calls that the .c doesn't do -- this was my first step at trying to reproduce it in C: #include <pwd.h>
int main() {
struct passwd *pw;
setpwent();
do {
pw = getpwent();
if(pw) {
printf("%s\n", pw->pw_name);
}
} while (pw);
pw = getpwent();
endpwent();
} The perl scripts above also fail (core dump) with 5.6.0 and do so on The stack trace for the core dump (of the getpwent script above) in
So, the core dump is down in libc somewhere, somehow caused by an Perl Info
|
@Tux is this worth pursuing or should we close it? |
Migrated from rt.perl.org#7207 (status was 'open')
Searchable as RT7207$
The text was updated successfully, but these errors were encountered: