Subject: | wrong results from apply() [XS] |
Date: | Thu, 21 Aug 2008 08:49:03 +1000 |
To: | bug-list-moreutils [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
In the debian packaged perl 5.10.0 and list-moreutils 0.22 (packaged or
my build), the program below prints
CODE(0x876aba8)
where I hoped it would be
myresult
The latter is what I get from forcing the pure-perl code (the commented
out BEGIN in the program).
grow_the_stack() is supposed to do what it says :-), ie. grow the stack.
I suspect it moves the memory, thus making the "args" pointer in apply()
no good. The diff below to refresh it seems to make the program work
... or perhaps that's only by accident.
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.
--
"Mr Simpson I dread the day when $100,000 isn't worth grovelling for."
-- C. M. Burns