Front page | perl.perl5.porters |
Postings from February 2015
[perl #123788] Unloading Mouse class crashes Perl on 32-bit MSWin32
Thread Previous
From:
Tomasz Konojacki
Date:
February 10, 2015 23:13
Subject:
[perl #123788] Unloading Mouse class crashes Perl on 32-bit MSWin32
Message ID:
rt-4.0.18-6042-1423609775-1083.123788-75-0@perl.org
# New Ticket Created by Tomasz Konojacki
# Please include the string: [perl #123788]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=123788 >
This is a bug report for perl from me@xenu.tk,
generated with the help of perlbug 1.40 running under perl 5.20.1.
-----------------------------------------------------------------
[Please describe your issue here]
While I wasn't able to reproduce this without using Mouse and Class::Unload, I
strongly suspect that it's a bug in Perl core because Class::Unload is
pure-perl module and it crashes even when Mouse is loaded with MOUSE_PUREPERL=1
env variable, so it is pure-perl too. AFAIK perl should never crash if there
are no XS modules loaded.
Problem occurs on 32-bit perl on MSWin32 (both ActiveState and Strawberry),
nothing wrong happens on 64-bit MSWin32.
I'm sorry that I don't have more minimal snippet of code, I hope that someone
here will be able to do better job in isolating this problem than me.
Following code crashes Perl:
### file a.pl:
use ABC;
use Mouse;
use Class::Unload;
Class::Unload->unload('ABC');
require ABC; # crashes here
### file ABC.pm
package ABC;
use Mouse;
q/ :-( /;
######## END OF CODE ########
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=critical
---
Site configuration information for perl 5.20.1:
Configured by gecko at Wed Oct 15 22:04:55 2014.
Summary of my perl5 (revision 5 version 20 subversion 1) configuration:
Platform:
osname=MSWin32, osvers=5.2, archname=MSWin32-x86-multi-thread-64int
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
use64bitint=define, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='undef', ccflags =' -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='4.6.3', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='long long', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='undef', ldflags ='-s -static-libgcc -static-libstdc++ -L"C:\Perl\lib\CORE" -L"C:\MinGW\i686-w64-mingw32\lib"'
libpth=C:\MinGW\i686-w64-mingw32\lib
libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
libc=, so=dll, useshrplib=true, libperl=libperl520.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-mdll -s -static-libgcc -static-libstdc++ -L"C:\Perl\lib\CORE" -L"C:\MinGW\i686-w64-mingw32\lib"'
Locally applied patches:
ActivePerl Build 2000 [298557]
---
@INC for perl 5.20.1:
C:/Perl/site/lib
C:/Perl/lib
.
---
Environment for perl 5.20.1:
HOME (unset)
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static
PERL_BADLANG (unset)
SHELL (unset)
Thread Previous