Closed p5pRT closed 16 years ago
When generating a table\, that will never be printed\, using format it makes sense to not print the form feed character. Setting the $FORMAT_FORMFEED variable to undef rather\, rather than an empty string\, causes a segfault when the format is large enough to need a form feed. Setting the $FORMAT_FORMFEED variable to undef should be equivalent to an empty string rather than generating an obscure segfault that is difficult to trace (Thanks to Glen Dudek for helping me figure it out).
-- Craig Smith
On Tue 30 Apr 2002 18:13\, csmith@vgi.com wrote:
This is a bug report for perl from csmith@vgi.com\, generated with the help of perlbug 1.33 running under perl v5.6.1.
----------------------------------------------------------------- [Please enter your report here]
When generating a table\, that will never be printed\, using format it makes sense to not print the form feed character. Setting the $FORMAT_FORMFEED variable to undef rather\, rather than an empty string\, causes a segfault when the format is large enough to need a form feed. Setting the $FORMAT_FORMFEED variable to undef should be equivalent to an empty string rather than generating an obscure segfault that is difficult to trace (Thanks to Glen Dudek for helping me figure it out).
Since segfaults are generally considered to be bad\, shall I at least try to extend the test case to catch it?
ENOTIME for a quick fix here
-- H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/) using perl-5.6.1\, 5.7.3 & 631 on HP-UX 10.20 & 11.00\, AIX 4.2\, AIX 4.3\, WinNT 4\, Win2K pro & WinCE 2.11. Smoking perl CORE: smokers@perl.org http://archives.develooper.com/daily-build@perl.org/ perl-qa@perl.org send smoke reports to: smokers-reports@perl.org\, QA: http://qa.perl.org
[csmith@vgi.com - Tue Apr 30 02:13:46 2002]:
This is a bug report for perl from csmith@vgi.com\, generated with the help of perlbug 1.33 running under perl v5.6.1.
----------------------------------------------------------------- [Please enter your report here]
When generating a table\, that will never be printed\, using format it makes sense to not print the form feed character. Setting the $FORMAT_FORMFEED variable to undef rather\, rather than an empty string\, causes a segfault when the format is large enough to need a form feed. Setting the $FORMAT_FORMFEED variable to undef should be equivalent to an empty string rather than generating an obscure segfault that is difficult to trace (Thanks to Glen Dudek for helping me figure it out).
ENOTESTCASE
This was what I read in the report\, and it does not fail/core in 5.6.1 and up on my HP-UX 11.00
a5:/u/usr/merijn 113 > perl5.6.1 xx.pl line 1 line 2 line 3 line 4 line 5 line 6 a5:/u/usr/merijn 114 > perl5.8.0 xx.pl line 1 line 2 line 3 line 4 line 5 line 6 a5:/u/usr/merijn 115 > perl5.9.0 xx.pl line 1 line 2 line 3 line 4 line 5 line 6 a5:/u/usr/merijn 116 > cat xx.pl #!/pro/bin/perl
use strict; use warnings;
$^L = undef; $= = 5; write;
format STDOUT = line 1 line 2 line 3 line 4 line 5 line 6 . a5:/u/usr/merijn 117 >
@tux - Status changed from 'open' to 'stalled'
p5p@spam.wizbit.be - Status changed from 'stalled' to 'rejected'
Migrated from rt.perl.org#9114 (status was 'rejected')
Searchable as RT9114$