develooper Front page | perl.perl5.porters | Postings from October 2013

[perl #119617] PerlEmbed 5.14: sv_setsv(ERRSV, &PL_sv_undef); crashes on Linux

Thread Previous | Thread Next
From:
bulk88 via RT
Date:
October 26, 2013 21:54
Subject:
[perl #119617] PerlEmbed 5.14: sv_setsv(ERRSV, &PL_sv_undef); crashes on Linux
Message ID:
rt-4.0.18-14231-1382824429-1007.119617-15-0@perl.org
On Sat Oct 26 14:25:23 2013, bulk88 wrote:
> 
> Attaching the 2 files from that John Unswort email post that didn't
> get to RT, to RT. Note, the C file is different from FC's C file in
> https://rt.perl.org/Ticket/Display.html?id=119617#txn-1265206 .

Ran on 5.19.6/blead, VC 2003 win32 32 bits threaded, got
--------------------------
loaded OK
Hello
--------------------------

no segvs.

The c++ code does look flakey. Also the code doesn't do "#define PERL_NO_GET_CONTEXT". Removing the 2 redundant lines below and doing "#define PERL_NO_GET_CONTEXT" still doesn't crash.
----------------------------------
    SV **sp = PL_stack_sp;

    PERL_SET_CONTEXT(my_perl); //already set somewhere where bulk88 can't quickly ID, PL_stack_sp would be uninit memory otherwise
    SPAGAIN; //redundant of line 1, use dSP;
----------------------------------

-- 
bulk88 ~ bulk88 at hotmail.com

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=119617

Thread Previous | Thread Next


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