Subject: | Undetected segfaults with any perl |
Since my Debian reports any segfault in /var/log/messages I discovered
this weirdness. Running the test t/20-protect.t with any of my perls
which currently go back to 5.14.1 gives a segfault. Nobody notices it,
the program retruns true, passes all tests. I produced a ore file and
this stacktrace:
Core was generated by
`/mnt/k75/homesand/src/perl/repoperls/installed-perls/p\
erl/v5.17.1-327-gee36fb6/'.
Program terminated with signal 11, Segmentation fault.
#0 0x00002b4ed699ec20 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00002b4ed699ec20 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00000000004ae40d in Perl_sv_setpvn (sv=sv@entry=0x2432ed0,
ptr=ptr@entry=0x2b4ed7c3f000
"012345678:012345678:012345678:012345678:012\
345678:012345678:012345678:012345678:012345678:012345678:", len=3) at
sv.c:4516
#2 0x00000000004bcd10 in Perl_pp_substr () at pp.c:3042
#3 0x0000000000499833 in Perl_runops_standard () at run.c:41
#4 0x000000000043f076 in S_run_body (oldscope=<optimized out>) at
perl.c:240\
9
#5 perl_run (my_perl=<optimized out>) at perl.c:2332
#6 0x0000000000423a05 in main (argc=2, argv=0x7fff427689d8,
env=0x7fff427689f0) at perlmain.c:120
Let me know if I can provide more information.
Best,