develooper Front page | perl.perl5.porters | Postings from June 2012

[perl #44129] Setting $0 in eval_pv causes core dump

Thread Next
From:
Jesse Luehrs via RT
Date:
June 22, 2012 09:30
Subject:
[perl #44129] Setting $0 in eval_pv causes core dump
Message ID:
rt-3.6.HEAD-5009-1340382619-1273.44129-15-0@perl.org
This is still true in blead. The segfault happens at the memcpy call here:

  Copy(s, PL_origargv[0], PL_origalen-1, char);

which is currently mg.c:3011 (as of revision 83f29af). According to gdb,
PL_origargv[0] is "", but PL_origalen is 4.

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=44129

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