Bug#512796: [PATCH] setpgrp() should extend the stack before modifying it

Rafael Garcia-Suarez rgarciasuarez at gmail.com
Wed Feb 4 13:41:59 UTC 2009


2009/1/26 Niko Tyni <ntyni at debian.org>:
> On Fri, Jan 23, 2009 at 08:21:24PM +0000, Marcin Owsiany wrote:
>> The following program dies for me on perl v5.8.8 with:
>> Can't call method "foo" without a package or object reference at a line 10.
>>
>> -------------------------------------------------------->8---
>> package A;
>> sub new { bless {}, shift }
>> sub foo { }
>> sub getref { setpgrp() }
>>
>> package main;
>> my $o = A->new;
>> # my $r = A::getref;
>> # $o->foo($r);
>> $o->foo(A::getref);
>> -------------------------------------------------------->8---
>>
>> However just uncomment the commented lines, and comment the last one,
>> and it works! :-O
>
> Thanks for the report.
>
> This bug is still present in bleadperl. The attached patch should fix it.

Thanks, applied to bleadperl. I also amended the MANIFEST for the new test file.
http://perl5.git.perl.org/perl.git/commitdiff/1f200948c4c45a9bc088451dd377e4ab8733c722






More information about the Perl-maintainers mailing list