Skip Menu |
 

This queue is for tickets about the Devel-LexAlias CPAN distribution.

Report information
The Basics
Id: 74862
Status: resolved
Priority: 0/
Queue: Devel-LexAlias

People
Owner: Nobody in particular
Requestors: RURBAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.04
Fixed in: 0.04



Subject: [PATCH] Fixed assertion in DEBUGGING perls
Download (untitled) / with headers
text/plain 1003b
I fixed an assertion with debugging perls, because the temp sv you are creating might have no SVs_PADMY flag. #0 0x00007ffff6bb5405 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007ffff6bb8680 in abort () at abort.c:92 #2 0x00007ffff6bae5b1 in __assert_fail (assertion=0x7ffff7d9506a "(sv)- Show quoted text
>sv_flags & 0x00040000",
file=<value optimized out>, line=939, function=0x7ffff7d95b50 "Perl_leave_scope") at assert.c:81 #3 0x00007ffff7c21980 in Perl_leave_scope (base=3) at scope.c:939 #4 0x00007ffff7c1bf82 in Perl_pop_scope () at scope.c:110 #3 0x00007ffff7c21980 in Perl_leave_scope (base=3) at scope.c:939 939 assert( SvFLAGS(sv) & SVs_PADMY); (gdb) p *sv $1 = {sv_any = 0x406e38, sv_refcnt = 2, sv_flags = 1073741835, sv_u = {svu_pv = 0x692f70 " f^", svu_iv = 6893424, svu_uv = 6893424, svu_rv = 0x692f70, svu_array = 0x692f70, svu_hash = 0x692f70, svu_gp = 0x692f70, svu_fp = 0x692f70}} Tested ok with all perls -- Reini Urban
patch attached -- Reini Urban
Subject: Devel-LexAlias-0.04.patch
[CPAN #74862] Fixed assertion in DEBUGGING perls diff -bu Devel-LexAlias-0.04/LexAlias.xs~ Devel-LexAlias-0.04/LexAlias.xs --- Devel-LexAlias-0.04/LexAlias.xs~ 2012-02-10 15:22:41.855499430 -0600 +++ Devel-LexAlias-0.04/LexAlias.xs 2012-02-10 15:31:03.806741489 -0600 @@ -33,6 +33,7 @@ SV* old_sv = (SV*) av_fetch(padv, i, 0); av_store(padv, i, new_sv); SvREFCNT_inc(new_sv); + SvPADMY_on(new_sv); } } }
Thanks, released as 0.05 -- Richard Clamp <richardc@unixbeard.net>


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.