Skip Menu |
 

This queue is for tickets about the List-MoreUtils CPAN distribution.

Report information
The Basics
Id: 38699
Status: resolved
Priority: 0/
Queue: List-MoreUtils

People
Owner: VPARSEVAL [...] cpan.org
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: segv from part() on two stack grows [XS]
Date: Mon, 25 Aug 2008 10:50:09 +1000
To: bug-list-moreutils [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
Download (untitled) / with headers
text/plain 585b
With the debian packaged perl 5.10.0 and list-moreutils 0.22 the program part-grow.pl below gets a segv, where I hoped it would print 1025, which is the case with the pure-perl code (commented out BEGIN in the program). The grow_the_stack() is supposed to provoke a stack move (like other report). The 1024 return from the part() block is supposed to provoke another one at "EXTEND(SP,last)" near the end of the part(). I suspect POP_MULTICALL of perl 5.10.0 doesn't do an SPAGAIN, unlike what the fallbacks and multicall.h, so SP isn't up to date at the point of that EXTEND.
Download part-grow.pl
text/x-perl 342b

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 369b
I just released a new version of 0.23 where unfortunately the fix you submitted is commented out (worse even, using a C++ comment), presumably in an effort to reproduce this. I was never able to but I have no doubt that your patch fixes a real problem that manifests itself elsehwhere. 0.24 will follow very soon and it will include your patch. Sorry for that. Tassilo
That's fixed


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.