develooper Front page | perl.perl5.porters | Postings from February 2009

Re: [PATCH] setpgrp() should extend the stack before modifying it

Thread Previous
From:
Rafael Garcia-Suarez
Date:
February 4, 2009 05:42
Subject:
Re: [PATCH] setpgrp() should extend the stack before modifying it
Message ID:
b77c1dce0902040541r4ef93d49wf41ff151400a76ca@mail.gmail.com
2009/1/26 Niko Tyni <ntyni@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

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About