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

[perl #120487] dist/lib/t/01lib.t changes @INC to system perl, then loads XS module, crash

From:
Tony Cook via RT
Date:
October 29, 2014 02:55
Subject:
[perl #120487] dist/lib/t/01lib.t changes @INC to system perl, then loads XS module, crash
Message ID:
rt-4.0.18-5616-1414551309-1502.120487-15-0@perl.org
On Thu Nov 07 20:11:33 2013, bulk88 wrote:
> The -V below isn't from the perl that segved in this ticket.
> 
> I am getting a SEGV from dist/lib/t/01lib.t since 01lib.t munges @INC
> to
> the $Config{installsitelib} of the new build, which, on my system,
> happens to have Perl 5.12 in it. I do not plan to install the new
> build
> into the system perl dir. I haven't had this happen before because I
> usually set the install dir in the win32 makefile to a fairly recent
> perl or an empty dir. First time I leave it at the default of
> "C:\perl",
> this SEGV happens during a make test. Later on in an END block in
> 01lib.t a lazy load of an XS DLL occurs, and the XS DLL is from the
> system Perl 5.12, which then SEGVs in BOOT() since it got a Perl 5.19
> my_perl ptr. C callstack below.

The attached fixes this for me.

Of course, if Win32 perl used the release and archname in the library directory name this would be much less of an issue.

Tony

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



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