[email protected]
[Top] [All Lists]

Bug#512796: marked as forwarded (setpgrp() causes: "Can't call method "

Subject: Bug#512796: marked as forwarded setpgrp() causes: "Can't call method "foo" without a package or object reference"
From: Debian Bug Tracking System
Date: Mon, 26 Jan 2009 14:00:06 +0000
Your message dated Mon, 26 Jan 2009 15:57:32 +0200
with message-id <[email protected]>
has caused the   report #512796,
regarding setpgrp() causes: "Can't call method "foo" without a package or 
object reference"
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
512796: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512796
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Subject: [PATCH] setpgrp() should extend the stack before modifying it
From: Niko Tyni
Date: Mon, 26 Jan 2009 15:57:32 +0200
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   [email protected]

Attachment: 0001-setpgrp-should-extend-the-stack-before-modifying-i.patch
Description: Text Data


--- End Message ---
<Prev in Thread] Current Thread [Next in Thread>
  • Bug#512796: marked as forwarded (setpgrp() causes: "Can't call method "foo" without a package or object reference"), Debian Bug Tracking System <=