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
'eval'ing a certain format string segfaults perl #9375
Comments
From kantor@cs.wisc.eduCreated by kantor@cs.wisc.eduThe following program segfaults perl: The error has something to do with escaping the $ sign in \$oSpec). The test case follows: #!/usr/bin/perl -w my $optSpec = [ printDocOptions($optSpec); sub printDocOptions{ print "Options:\n"; my ($oSpec, $oDefault, $oDesc); foreach my $o (@$optSpec){ return ""; Perl Info
|
From @chornyThis program does not segfault on 5.10.0 (Strawberry Perl on Win32) 2008/6/12 via RT Arthur Kantor <perlbug-followup@perl.org>:
-- |
The RT System itself - Status changed from 'new' to 'open' |
From @nwc10On Thu, Jun 12, 2008 at 08:03:56PM +0300, Alexandr Ciornii wrote:
It still seems to be a real bug. On blead, with all the assertions enabled: (gdb) r Program received signal SIGABRT, Aborted. So it seems that the format code is assuming that it can set the length of case FF_LINESNGL: specifically to avoid entering this if unless a '\n' was found: if (oneline) { Nicholas Clark |
From @nwc10formats consume their variables: $ cat eat.pl $a = <<'EOT'; print $a; formline '^*', $a; print $a; What should the output of this be? $ cat eat_overload.pl sub new { package main; $a = Pie->new; print $a; formline '^*', $a; print $a; [No, I'm not going to give any clues. The current implementation is wrong, and Nicholas Clark |
From @khwilliamsonThis is a naasty bug now in 5.20RC1 blead. It hangs my system, forcing me to press and hold the power button to get out of it. It's doing this in the write(). I presume it is gobbling up memory. valgrind doesn't show anything obvious. |
From @jhiOn Monday-201405-19, 14:47, Karl Williamson via RT wrote:
I tried whittling down the test code, attached is my current best. |
From @iabynOn Mon, May 19, 2014 at 09:44:05PM -0400, Jarkko Hietaniemi wrote:
It's quite reasonable that this exhausts memory. That format is is roughly equivalent to $output = ''; i.e. its supposed to strip lines off the front of the string and append As to the older comments in the ticket about pp_formline being unable to So unless anyone can get blead to fail with anything other than an -- |
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#55668 (status was 'resolved')
Searchable as RT55668$
The text was updated successfully, but these errors were encountered: