perl5 icon indicating copy to clipboard operation
perl5 copied to clipboard

A TODO test may leave files on the system after it's run

Open dur-randir opened this issue 5 years ago • 4 comments

This is a bug report for perl from [email protected], generated with the help of perlbug 1.41 running under perl 5.31.10.


[Please describe your issue here]

ext/XS-APItest/t/clone-with-stack.t, when run on Mac OS X starting from at least 10.9.5, segfaults 2/3 of the times with the following:

./perl harness -v ext/XS-APItest/t/clone-with-stack.t
../ext/XS-APItest/t/clone-with-stack.t ..
1..8
ok 1 - minimal clone_with_stack
ok 2 - inside a subroutine
sh: line 1: 87880 Segmentation fault: 11  /private/tmp/perl5/perl "-I../lib" "-I." "t/tmp87874A" 2>&1
not ok 3 - inside a BEGIN block # TODO clone_with_stack inside a begin block
# Failed test 3 - inside a BEGIN block at ../../t/test.pl line 1056
#      got ""
# expected "ok"
# PROG:
# use XS::APItest;
# BEGIN {
#     clone_with_stack();
# }
# print "ok\n";
# STATUS: 35584
ok 4 - clone stack
ok 5 - with a lexical sub
ok 6 - with localised stuff
ok 7 - inside a loop inside a fn
ok 8 - inside fn inside a loop inside a fn
ok
All tests successful.
Files=1, Tests=8,  0 wallclock secs ( 0.01 usr  0.01 sys +  0.16 cusr  0.06 csys =  0.24 CPU)
Result: PASS.

This may leave core files when enabled on the system. Since this is a TODO test, I suggest to disable it completely.

[Please do not change anything below this line]


Flags: category=core severity=low

Site configuration information for perl 5.31.10:

Configured by dur-randir at Sun Mar 1 01:19:32 MSK 2020.

Summary of my perl5 (revision 5 version 31 subversion 10) configuration: Commit id: ae01c992e1a43c5a5a9f4d6ec02f28d57974d9ac Platform: osname=darwin osvers=19.0.0 archname=darwin-thread-multi-2level uname='darwin m-catalina.lan 19.0.0 darwin kernel version 19.0.0: wed sep 25 20:18:50 pdt 2019; root:xnu-6153.11.26~2release_x86_64 x86_64 ' config_args='-de -DDEBUGGING -Dusethreads -Dusedevel' hint=recommended useposix=true d_sigaction=define useithreads=define usemultiplicity=define use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n default_inc_excludes_dot=define bincompat5005=undef Compiler: cc='cc' ccflags ='-fno-common -DPERL_DARWIN -mmacosx-version-min=10.15 -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong -I/opt/local/include -DPERL_USE_SAFE_PUTENV' optimize='-O3 -g' cppflags='-fno-common -DPERL_DARWIN -mmacosx-version-min=10.15 -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong -I/opt/local/include' ccversion='' gccversion='4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.8)' gccosandvers='' intsize=4 longsize=8 ptrsize=8 doublesize=8 byteorder=12345678 doublekind=3 d_longlong=define longlongsize=8 d_longdbl=define longdblsize=16 longdblkind=3 ivtype='long' ivsize=8 nvtype='double' nvsize=8 Off_t='off_t' lseeksize=8 alignbytes=8 prototype=define Linker and Libraries: ld='cc' ldflags =' -mmacosx-version-min=10.15 -fstack-protector-strong -L/opt/local/lib' libpth=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.0/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib /opt/local/lib /usr/lib libs=-lpthread -lgdbm -ldbm -ldl -lm -lutil -lc perllibs=-lpthread -ldl -lm -lutil -lc libc= so=dylib useshrplib=false libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs dlext=bundle d_dlsymun=undef ccdlflags=' ' cccdlflags=' ' lddlflags=' -mmacosx-version-min=10.15 -bundle -undefined dynamic_lookup -L/opt/local/lib -fstack-protector-strong'


@INC for perl 5.31.10: ../lib /usr/local/lib/perl5/site_perl/5.31.10/darwin-thread-multi-2level /usr/local/lib/perl5/site_perl/5.31.10 /usr/local/lib/perl5/5.31.10/darwin-thread-multi-2level /usr/local/lib/perl5/5.31.10


Environment for perl 5.31.10: DYLD_LIBRARY_PATH (unset) HOME=/Users/dur-randir LANG=en_US.UTF-8 LANGUAGE (unset) LC_CTYPE=en_US.UTF-8 LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/Users/dur-randir/perlbrew/bin:/Users/dur-randir/perlbrew/perls/perl-blead/bin:/opt/local/bin:/usr/texbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Apple/bin PERLBREW_HOME=/Users/dur-randir/.perlbrew PERLBREW_MANPATH=/Users/dur-randir/perlbrew/perls/perl-blead/man PERLBREW_PATH=/Users/dur-randir/perlbrew/bin:/Users/dur-randir/perlbrew/perls/perl-blead/bin PERLBREW_PERL=perl-blead PERLBREW_ROOT=/Users/dur-randir/perlbrew PERLBREW_SHELLRC_VERSION=0.86 PERLBREW_VERSION=0.86 PERL_BADLANG (unset) SHELL=/opt/local/bin/zsh

dur-randir avatar Feb 29 '20 23:02 dur-randir