Index | Thread | Search

From:
Alexander Bluhm <bluhm@openbsd.org>
Subject:
Re: smokeping build fails with new perl (perl segfault, locale-related?)
To:
tech <tech@openbsd.org>
Date:
Fri, 17 May 2024 16:47:23 +0200

Download raw body.

Thread
Seems to be a general problem with new Perl, no smokeping involved.

$ perl -MPOSIX -e 'setlocale(LC_NUMERIC,"")'
Unknown locale category 4 at -e line 1.
Segmentation fault (core dumped)

On Fri, May 17, 2024 at 09:38:13AM +0100, Stuart Henderson wrote:
> smokeping is tripping a new warning in perl 5.38:
> https://perldoc.perl.org/perl5380delta#New-Warnings
> 
> Making all in doc
> gmake[1]: Entering directory '/pobj/smokeping-2.8.2/smokeping-2.8.2/doc'
> PERL5LIB=/usr/local/libdata/perl5/site_perl /usr/bin/perl -I../thirdparty/lib/perl5 -I../lib -mSmokeping -e 'Smokeping::main()' -- --makepod Smokeping::probes::AnotherCurl > Smokeping_probes_AnotherCurl.pod
> Unknown locale category 4 at ../lib/Smokeping.pm line 40.
> Segmentation fault (core dumped)
> 
> Not sure how to work around this, clearly it shouldn't be segfaulting
> either though.
> 
> #0  L2 () at /usr/src/lib/libc/arch/i386/string/strcmp.S:23
> 23      L2:     movb    (%eax),%cl
> (gdb) bt
> #0  L2 () at /usr/src/lib/libc/arch/i386/string/strcmp.S:23
> #1  0x0564cd9c in Perl_setlocale ()
>    from /usr/lib/libperl.so.24.0
> #2  0x080eda81 in XS_POSIX_setlocale ()
>    from /usr/libdata/perl5/i386-openbsd/auto/POSIX/POSIX.so
> #3  0x055ddf15 in Perl_clear_defarray ()
>    from /usr/lib/libperl.so.24.0
> #4  0x055d3003 in Perl_runops_standard ()
>    from /usr/lib/libperl.so.24.0
> #5  0x0551bb71 in Perl_call_sv ()
>    from /usr/lib/libperl.so.24.0
> #6  0x05517b0b in Perl_call_list ()
>    from /usr/lib/libperl.so.24.0
> #7  0x0550bb06 in Perl_newCONSTSUB_flags ()
>    from /usr/lib/libperl.so.24.0
> #8  0x055046d2 in Perl_newATTRSUB_x ()
>    from /usr/lib/libperl.so.24.0
> #9  0x055054a1 in Perl_newPVOP ()
>    from /usr/lib/libperl.so.24.0
> #10 0x0554d810 in Perl_parse_subsignature ()
>    from /usr/lib/libperl.so.24.0
> #11 0x0551a551 in perl_parse () from /usr/lib/libperl.so.24.0
> #12 0x1620bbb3 in main () from /usr/bin/perl