Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.9k stars 538 forks source link

grent.t, pwent.t dump core due to running past EOF of group, passwd #4521

Closed p5pRT closed 19 years ago

p5pRT commented 22 years ago

Migrated from rt.perl.org#7838 (status was 'resolved')

Searchable as RT7838$

p5pRT commented 22 years ago

From root@sdx1.uky.edu

getgrent and getpwent dump core in the relevant test routines; they do not stop at the end of the relevant files. The system is not using HP "Trusted Systems" password shadowing. The grent.t and pwent.t tests complete with no errors when run under perl5.005.

Modifications used to stop grent.t at the last entry and output from both forms of the test follow.

Thanks\, Chuck Fisher chuck@​uky.edu

Script started on Tue Oct 23 14​:32​:17 2001 # diff grent.t grent.t.mod 142a143\,144

$max = $n; print "here 1\n"; 146a149\,150 print "here 1.1\n";

147a152\,154

print "here 1.2\n";

148a156 print "here 1.3 max $max\n"; 153a162 print "here 2\n"; 163a173 print "here 3\n"; # ../perl grent.t.mod    

1..2 ok 1 Bus error (core dumped) # ../perl grent.t.mod

1..2 ok 1 here 1 here 1.1 here 1.2 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 2 here 3 ok 2

Perl Info ``` Flags: category=core severity=medium Site configuration information for perl v5.6.1: Configured by root at Tue Oct 23 13:06:30 EDT 2001. Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration: Platform: osname=hpux, osvers=11.11, archname=PA-RISC2.0 uname='hp-ux sdx1 b.11.11 u 9000800 905338324 unlimited-user license ' config_args='-Duselargefiles -Dprefix=/opt/local/apps' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef Compiler: cc='cc', ccflags =' -D_HPUX_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ae', optimize='-O', cppflags='-D_HPUX_SOURCE -Aa' ccversion='B.11.11.02', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, usemymalloc=y, prototype=define Linker and Libraries: ld='ld', ldflags =' -Wl,+vnocompatwarnings -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib libs=-lnsl -lnm -lndbm -ldld -lm -lc -lndir -lcrypt -lsec perllibs=-lnsl -lnm -ldld -lm -lc -lndir -lcrypt -lsec libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred ' cccdlflags='+z', lddlflags='-b +vnocompatwarnings -L/usr/local/lib' Locally applied patches: @INC for perl v5.6.1: lib /opt/local/apps/perl5/lib/5.6.1/PA-RISC2.0 /opt/local/apps/perl5/lib/5.6.1 /opt/local/apps/perl5/lib/site_perl/5.6.1/PA-RISC2.0 /opt/local/apps/perl5/lib/site_perl/5.6.1 /opt/local/apps/perl5/lib/site_perl . Environment for perl v5.6.1: HOME (unset) LANG (unset) LANGUAGE (unset) LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/usr/bin:/usr/sbin:/sbin:/usr/contrib/bin:/usr/local/bin PERL_BADLANG (unset) SHELL=/usr/bin/csh SHLIB_PATH (unset) ```
p5pRT commented 19 years ago

From @smpeters

[root@​sdx1.uky.edu - Tue Oct 23 04​:42​:42 2001]​:

----------------------------------------------------------------- [Please enter your report here] getgrent and getpwent dump core in the relevant test routines; they do not stop at the end of the relevant files. The system is not using HP "Trusted Systems" password shadowing. The grent.t and pwent.t tests complete with no errors when run under perl5.005.

Modifications used to stop grent.t at the last entry and output from both forms of the test follow.

Thanks\, Chuck Fisher chuck@​uky.edu

Script started on Tue Oct 23 14​:32​:17 2001 # diff grent.t grent.t.mod 142a143\,144

$max = $n; print "here 1\n"; 146a149\,150 print "here 1.1\n";

147a152\,154

print "here 1.2\n";

148a156 print "here 1.3 max $max\n"; 153a162 print "here 2\n"; 163a173 print "here 3\n"; # ../perl grent.t.mod    

1..2 ok 1 Bus error (core dumped) # ../perl grent.t.mod

1..2 ok 1 here 1 here 1.1 here 1.2 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 1.3 max 14 here 2 here 3 ok 2

Comments were previously added to this test to point out that a failure here does not necessarily indicate a problem and that it could be caused by your configuration.

p5pRT commented 19 years ago

@smpeters - Status changed from 'open' to 'resolved'