Index | Thread | Search

From:
Andrew Hewus Fresh <andrew@afresh1.com>
Subject:
Re: smokeping build fails with new perl (perl segfault, locale-related?)
To:
Alexander Bluhm <bluhm@openbsd.org>
Cc:
tech <tech@openbsd.org>
Date:
Tue, 21 May 2024 12:58:44 -0700

Download raw body.

Thread
On Fri, May 17, 2024 at 09:59:10AM -0700, Andrew Hewus Fresh wrote:
> On Fri, May 17, 2024 at 06:00:32PM +0200, Alexander Bluhm wrote:
> > On Fri, May 17, 2024 at 04:47:23PM +0200, Alexander Bluhm wrote:
> > > 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)
> > 
> > This fixes the segfault.  The warning stays.
> 
> I tested this in bleadperl, and that fixes it too.  Unless it's specific
> to our build options and such, so I'll have to do more testing.
> 
> $ LD_LIBRARY_PATH=. ./perl -Ilib -v | head -2
> This is perl 5, version 39, subversion 11 (v5.39.11 (v5.39.10-21-g2fc32c2024)) built for OpenBSD.amd64-openbsd
> $ LD_LIBRARY_PATH=. ./perl -Ilib -MPOSIX -e
> $

While this was a bad test, due to the lack of 
`-Accflags="-DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE"` when I called
Configure there, upstream seems to have fixed this here:

https://github.com/Perl/perl5/commit/c22ada12fc5d70b5107da5600135ee970c3d27f1