perl: crash on cross compile build with gcc 10.2.1_pre2-r0 and musl 1.1.24-r2 to AARCH64
Crashes in miniperl test (make minitest) at build time
Stack trace:
thermi-probook:/aports$ gdb main/perl/src/perl-5.30.3/miniperl miniperl.crash
GNU gdb (GDB) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from main/perl/src/perl-5.30.3/miniperl...
warning: exec file is newer than core file.
[New LWP 446176]
Core was generated by `./miniperl -w -Ilib -Idist/Exporter/lib -MExporter -e <?>'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f6a75497aeb in __stack_chk_fail () from /lib/ld-musl-x86_64.so.1
(gdb) bt
#0 0x00007f6a75497aeb in __stack_chk_fail () from /lib/ld-musl-x86_64.so.1
#1 0x0000556995bb8256 in S_check_type_and_open ()
#2 0x0000556995bb8c4a in S_doopen_pm ()
#3 0x0000556995bbe799 in Perl_pp_require ()
#4 0x0000556995b85fd0 in Perl_runops_standard ()
#5 0x0000556995b1108a in Perl_call_sv ()
#6 0x0000556995b13514 in Perl_call_list ()
#7 0x0000556995af8358 in S_process_special_blocks ()
#8 0x0000556995b0c869 in Perl_newATTRSUB_x ()
#9 0x0000556995b0e53d in Perl_utilize ()
#10 0x0000556995b3bd14 in Perl_yyparse ()
#11 0x0000556995b17070 in perl_parse ()
#12 0x0000556995af7124 in main ()
Same with perl version 5.32.1 and 5.30.3.
thermi-probook:/aports$ gdb main/perl/src/perl-5.32.1/miniperl miniperl.crash
GNU gdb (GDB) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from main/perl/src/perl-5.32.1/miniperl...
[New LWP 14726]
Core was generated by `./miniperl -w -Ilib -Idist/Exporter/lib -MExporter -e <?>'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f6abcaf7aeb in __stack_chk_fail () from /lib/ld-musl-x86_64.so.1
(gdb) bt
#0 0x00007f6abcaf7aeb in __stack_chk_fail () from /lib/ld-musl-x86_64.so.1
#1 0x0000558d312c76e2 in S_check_type_and_open ()
#2 0x0000558d312c8109 in S_doopen_pm ()
#3 0x0000558d312ca702 in Perl_pp_require ()
#4 0x0000558d31294ed8 in Perl_runops_standard ()
#5 0x0000558d3121ac3a in Perl_call_sv ()
#6 0x0000558d3121d042 in Perl_call_list ()
#7 0x0000558d31201494 in S_process_special_blocks ()
#8 0x0000558d312159cd in Perl_newATTRSUB_x ()
#9 0x0000558d31217fed in Perl_utilize ()
#10 0x0000558d3124581b in Perl_yyparse ()
#11 0x0000558d3122101b in perl_parse ()
#12 0x0000558d31200114 in main ()
(gdb)