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

Niko Tyni ntyni at debian.org
Mon Jan 26 13:57:32 UTC 2009


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.
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-setpgrp-should-extend-the-stack-before-modifying-i.patch
Type: text/x-diff
Size: 0 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20090126/c58afdf3/attachment.patch 


More information about the Perl-maintainers mailing list