perl5 icon indicating copy to clipboard operation
perl5 copied to clipboard

lib/ExtUtils/t/Embed.t: failures on OpenBSD when compiling with gcc but not with clang

Open jkeenan opened this issue 1 year ago • 24 comments

For several months I have been noticing smoke-test failures under certain configurations on OpenBSD-7.4; see, e.g., report 5052514. The failures occur when configuring a perl built with these command-line switches:

$ sh ./Configure -des -Dusedevel -Dcc=gcc -Accflags='-DPERL_RC_STACK -DDEBUG_LEAKING_SCALARS'

... and then, after running make test_prep, calling:

$ cd t; ./perl harness -v ../lib/ExtUtils/t/Embed.t; cd - 
ld: error: undefined symbol: Perl_more_sv
>>> referenced by embed_test.c
>>>               /tmp//ccE9t92Z.o:(S_new_SV)

ld: error: undefined symbol: PL_sv_serial
>>> referenced by embed_test.c
>>>               /tmp//ccE9t92Z.o:(S_new_SV)
>>> referenced by embed_test.c
>>>               /tmp//ccE9t92Z.o:(S_new_SV)
collect2: ld returned 1 exit status

not ok 1
not ok 10 # system returned -1
Failed 10/10 subtests 

Test Summary Report
-------------------
../lib/ExtUtils/t/Embed.t (Wstat: 0 Tests: 2 Failed: 2)
  Failed tests:  1, 10
  Parse errors: Tests out of sequence.  Found (10) but expected (2)
                Bad plan.  You planned 10 tests but ran 2.
Files=1, Tests=2,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.48 cusr  0.11 csys =  0.62 CPU)
Result: FAIL

I didn't pay these much attention at first because at first the perl was being built with a compiler I had never heard of, eg++. But more recently these failures were occuring with gcc as the compiler.

I haven't been able to install an OpenBSD more recent than 6.9, but I decided to explore this problem on that version today regardless. I got the test failure reported above on blead. I then decided to see whether these failures were due to a recent code change or whether @cjg-cguevara's exploration of these config options had merely revealed a problem that was "always" there. I tested at tag v5.38.0 and got the failure reported above.

$ uname -mrs
OpenBSD 6.9 amd64

$ gcc --version | head -1
gcc (GCC) 4.2.1 20070719

$ git show | head -3
commit 76298ae68aa7796f0ffc05095b127d23f4b2de8f
Author: Ricardo Signes <[email protected]>
Date:   Sat Jul 1 20:48:27 2023 -0400

$ sh ./Configure -des -Dusedevel -Dcc=gcc -Accflags='-DPERL_RC_STACK -DDEBUG_LEAKING_SCALARS'; make test_prep

$ ./perl -Ilib -V:config_args
config_args='-des -Dusedevel -Dcc=gcc -Accflags=-DPERL_RC_STACK -DDEBUG_LEAKING_SCALARS';

$ cd t; ./perl harness -v ../lib/ExtUtils/t/Embed.t; cd - 
ld: error: undefined symbol: Perl_more_sv
>>> referenced by embed_test.c
>>>               /tmp//ccE9t92Z.o:(S_new_SV)

ld: error: undefined symbol: PL_sv_serial
>>> referenced by embed_test.c
>>>               /tmp//ccE9t92Z.o:(S_new_SV)
>>> referenced by embed_test.c
>>>               /tmp//ccE9t92Z.o:(S_new_SV)
collect2: ld returned 1 exit status

not ok 1
not ok 10 # system returned -1
Failed 10/10 subtests 

Test Summary Report
-------------------
../lib/ExtUtils/t/Embed.t (Wstat: 0 Tests: 2 Failed: 2)
  Failed tests:  1, 10
  Parse errors: Tests out of sequence.  Found (10) but expected (2)
                Bad plan.  You planned 10 tests but ran 2.
Files=1, Tests=2,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.48 cusr  0.11 csys =  0.62 CPU)
Result: FAIL

Since the gcc version I was testing with dates back to 2007, I decided to try with the system's default C-compiler, clang-10.

$ clang --version                                                               >
OpenBSD clang version 10.0.1 
Target: amd64-unknown-openbsd6.9
Thread model: posix
InstalledDir: /usr/bin

$ sh ./Configure -des -Dusedevel -Dcc=clang -Accflags='-DPERL_RC_STACK -DDEBUG_LEAKING_SCALARS'; make test_prep

With this more recent clang, the failing tests PASSed.

$ cd t; ./perl harness -v ../lib/ExtUtils/t/Embed.t; cd -

ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10 # system returned 0
ok
All tests successful.
Files=1, Tests=10,  1 wallclock secs ( 0.01 usr  0.02 sys +  0.55 cusr  0.36 csys =  0.94 CPU)
Result: PASS

It would be good if someone could test these config options on an up-to-date OpenBSD with both gcc and clang. We can then try to evaluate the source of the test failures. cc: @afresh1

jkeenan avatar Apr 06 '24 15:04 jkeenan

I tried this on my -current sparc64 with both -Dcc=clang and -Dcc=gcc. I did not see this failure in either case. Let me know if you need me to try something else or need access to an OpenBSD machine for testing.

zarniwoop$ sysctl kern.version
kern.version=OpenBSD 7.5-current (GENERIC.MP) #2098: Wed Apr  3 15:08:08 MDT 2024
    [email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC.MP

zarniwoop$ gcc -v              
Reading specs from /usr/lib/gcc-lib/sparc64-unknown-openbsd7.5/4.2.1/specs
Target: sparc64-unknown-openbsd7.5
Configured with: OpenBSD/sparc64 system compiler
Thread model: posix
gcc version 4.2.1 20070719 
zarniwoop$ clang -v
OpenBSD clang version 16.0.6
Target: sparc64-unknown-openbsd7.5
Thread model: posix
InstalledDir: /usr/bin

afresh1 avatar Apr 07 '24 01:04 afresh1

I tried this on my -current sparc64 with both -Dcc=clang and -Dcc=gcc. I did not see this failure in either case.

And those were configured with -Accflags='-DPERL_RC_STACK -DDEBUG_LEAKING_SCALARS' -- correct? [snip]

gcc version 4.2.1 20070719

Is there some reason why OpenBSD's port of gcc remains at this version more than 16 years old (other than not wanting to use the GPL)? Should we even be bothering to test perls built with gcc on OpenBSD?

jkeenan avatar Apr 07 '24 11:04 jkeenan

Noting the 2 instances of ld: error: undefined symbol ...:

$ cd t && \
gcc -o embed_test -I..  -std=gnu99 -DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE -DNO_LOCALE_MONETARY -DNO_LOCALE_TIME -DNO_LOCALE_MESSAGES -DLIBC_HANDLES_MISMATCHED_CTYPE -DDEBUG_LEAKING_SCALARS -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include   embed_test.c -L.. -lperl   -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -lperl -lpthread -lm -lutil -lc; cd -

ld: error: undefined symbol: Perl_more_sv
>>> referenced by embed_test.c
>>>               /tmp//cc2IxT9I.o:(S_new_SV)

ld: error: undefined symbol: PL_sv_serial
>>> referenced by embed_test.c
>>>               /tmp//cc2IxT9I.o:(S_new_SV)
>>> referenced by embed_test.c
>>>               /tmp//cc2IxT9I.o:(S_new_SV)
collect2: ld returned 1 exit status
[openbsd69: perl] $ ack -l '(Perl_more_sv)' .              
sv_inline.h
embed.h
proto.h
sv.c
[openbsd69: perl] $ ack -l '(PL_sv_serial)' .              
sv_inline.h
embedvar.h
makedef.pl
lib/Devel/PPPort.pm
...

Further analysis needs more C-foo than I have.

jkeenan avatar Apr 07 '24 12:04 jkeenan

$ cd t && \
gcc -o embed_test -I..  -std=gnu99 -DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE -DNO_LOCALE_MONETARY -DNO_LOCALE_TIME -DNO_LOCALE_MESSAGES -DLIBC_HANDLES_MISMATCHED_CTYPE -DDEBUG_LEAKING_SCALARS -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include   embed_test.c -L.. -lperl   -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -lperl -lpthread -lm -lutil -lc; cd -

I should add that, as the above invocation suggests, I configured with each of the two options separately and learned that the test failure is being generated by -DDEBUG_LEAKING_SCALARS. When I configure only with -DPERL_RC_STACK and build with gcc, the test PASSes.

jkeenan avatar Apr 07 '24 12:04 jkeenan

I tried this on my -current sparc64 with both -Dcc=clang and -Dcc=gcc. I did not see this failure in either case.

And those were configured with -Accflags='-DPERL_RC_STACK -DDEBUG_LEAKING_SCALARS' -- correct? [snip]

Yes, I copied the incantation from the first message:

$ sh ./Configure -des -Dusedevel -Dcc=clang -Accflags='-DPERL_RC_STACK -DDEBUG_LEAKING_SCALARS'

Just changing =clang to =gcc between them.

gcc version 4.2.1 20070719

Is there some reason why OpenBSD's port of gcc remains at this version more than 16 years old (other than not wanting to use the GPL)? Should we even be bothering to test perls built with gcc on OpenBSD?

I believe we have some architectures still that clang doesn't support and we are stuck with gcc, but where possible it is becoming the system compiler and when stable, we stop installing gcc.

And yes, it is because the clang licence is more acceptable to OpenBSD. I'm fairly sure we will not bring any GPL3 code into the base system at all.

afresh1 avatar Apr 07 '24 17:04 afresh1

On Sat, Apr 06, 2024 at 08:45:25AM -0700, James E Keenan wrote:

$ cd t; ./perl harness -v ../lib/ExtUtils/t/Embed.t; cd - ld: error: undefined symbol: Perl_more_sv

referenced by embed_test.c /tmp//ccE9t92Z.o:(S_new_SV)

ld: error: undefined symbol: PL_sv_serial

referenced by embed_test.c /tmp//ccE9t92Z.o:(S_new_SV) referenced by embed_test.c /tmp//ccE9t92Z.o:(S_new_SV)

When perl is built with -DDEBUG_LEAKING_SCALARS, it changes a few things. In particular:

  1. a static function called S_new_SV() is created that the macro new_SV() calls, rather than new_SV() doing the work directly itself.

  2. The variable PL_sv_serial is defined.

In the Embed.t test, it tests perl's ability to embed perl in other code. So it creates a standalone C program, embed_test.c, which is compiled and linked to the perl library perl.o.

Something is going wrong at link time: the symbols PL_sv_serial and Perl_more_sv, apparently referenced from S_new_SV, can't be found by the look of it.

Perhaps it's something like perl getting compiled with DEBUG_LEAKING_SCALARS, while embed_test.c isn't?

S_new_SV() is weird: although it's static, it's not declared as inline, even although its defined in sv_inline.h. I don't know whether this is a mistake. It was in sv.c until 5.36.0. It was moved by this commit:

commit 75acd14e43f2ffb698fc7032498f31095b56adb5 Author: Richard Leach @.***> AuthorDate: Sun Feb 6 22:52:54 2022 +0000

Make newSV_type an inline function

When a new SV is created and upgraded to a type known at compile time,
uprooting a SV head and then using the general-purpose upgrade function
(sv_upgrade) is clunky. Specifically, while uprooting a SV head is
lightweight (assuming there are unused SVs), sv_upgrade is too big to be
inlined, contains many branches that can logically be resolved at compile
time for known start & end types, and the lookup of the correct
body_details struct may add CPU cycles.

This commit tries to address that by making newSV_type an inline function
and including only the parts of sv_upgrade needed to upgrade a SVt_NULL.
When the destination type is known at compile time, a decent compiler will
inline a call to newSV_type and use the type information to throw away all
the irrelevant parts of the sv_upgrade logic.

Because of the spread of type definitions across header files, it did not
seem possible to make the necessary changed inside sv.h, and so a new
header file (sv_inline.h) was created. For the inlined function to work
outside of sv.c, many definitions from that file were moved to sv_inline.h.

Finally, in order to also benefit from this change, existing code in sv.c
that does things like this:
    SV* sv;
    new_SV(sv);
    sv_upgrade(sv, SVt_PV)
has been modified to read something like:
    SV* sv = newSV_type(SVt_PV);

-- You're only as old as you look.

iabyn avatar Apr 08 '24 09:04 iabyn

Bisecting on OpenBSD-6.9 with this invocation:

perl Porting/bisect.pl \
-Dcc=gcc \
-Accflags='-DDEBUG_LEAKING_SCALARS' \
--start=4f1687891150ddeda14ad7b0716032145bc69801 \
--end=8b03aeb95ab72abdb2fa40f2d1196ce42f34708d \
--target lib/ExtUtils/t/Embed.t

... confirmed the breaking commit:

commit 75acd14e43f2ffb698fc7032498f31095b56adb5
Author:     Richard Leach <[email protected]>
AuthorDate: Sun Feb 6 22:52:54 2022 +0000
Commit:     Tomasz Konojacki <[email protected]>
CommitDate: Mon Mar 7 01:08:53 2022 +0100

    Make newSV_type an inline function

jkeenan avatar Apr 08 '24 12:04 jkeenan

@richardleach ^^

jkeenan avatar Apr 08 '24 12:04 jkeenan

Thanks, I'll try to look into this later this week

richardleach avatar Apr 09 '24 10:04 richardleach

S_new_SV() is weird: although it's static, it's not declared as inline, even although its defined in sv_inline.h. I don't know whether this is a mistake. It was in sv.c until 5.36.0. It was moved by this commit:

I'm assuming this is indeed an error by omission on my part, but haven't had chance to get an OpenBSD VM running yet.

richardleach avatar Apr 21 '24 23:04 richardleach

I had a look at this and reproduced it locally. libperl.a looks fine:

$ nm libperl.a | grep PL_sv_serial
...
00006738 B PL_sv_serial
...

So what do we end up linking against? I edited Embed.t to add -Wl,-t to the compiler invocation:

# eg++ -o embed_test -Wl,-t -I..  -DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE -DNO_LOCALE_MONETARY -DNO_LOCALE_TIME -DNO_LOCALE_MESSAGES -DLIBC_HANDLES_MISMATCHED_CTYPE -DPERL_RC_STACK -DDEBUG_LEAKING_SCALARS -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include   embed_test.c -L.. -lperl   -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -lperl -lpthread -lm -lutil -lc
ld: error: undefined symbol: PL_sv_serial
>>> referenced by embed_test.c
>>>               /tmp//ccIahN7A.o:(S_new_SV)
>>> referenced by embed_test.c
>>>               /tmp//ccIahN7A.o:(S_new_SV)
collect2: error: ld returned 1 exit status
# /usr/lib/crt0.o

# /usr/lib/crtbegin.o

# /tmp//ccIahN7A.o

# /usr/lib/libperl.so.23.0

# /usr/lib/libperl.so.23.0

# /usr/lib/libpthread.so.27.0

# /usr/lib/libutil.so.16.0

# /usr/local/lib/libestdc++.so.20.0

# /usr/lib/libm.so.10.1

# /usr/lib/libc.so.97.0

# /usr/lib/libc.so.97.0

# /usr/lib/crtend.o

not ok 1
# embed_test = ./embed_test
not ok 10 # system returned -1
Failed 10/10 subtests 

So we're linking against the system libperl, which of course wasn't built with -DDEBUG_LEAKING_SCALARS and doesn't define PL_sv_serial.

So while 75acd14e43f2ffb698fc7032498f31095b56adb5 revealed this problem, it didn't cause the problem.

tonycoz avatar Apr 24 '24 03:04 tonycoz

I've tried a few approaches to this

  • making -L.. -lperl the only reference to libperl
  • using an absolute path for the -L used for libperl

The only way I could get it to link the correct libperl was a direct reference:

# eg++ -o embed_test -Wl,-t -Wl,--verbose -I..  -DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE -DNO_LOCALE_MONETARY -DNO_LOCALE_TIME -DNO_LOCALE_MESSAGES -DLIBC_HANDLES_MISMATCHED_CTYPE -DPERL_RC_STACK -DDEBUG_LEAKING_SCALARS -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include   embed_test.c ../libperl.a   -Wl,-E  -fstack-protector-strong   -lpthread -lm -lutil -lc
# /usr/lib/crt0.o

# /usr/lib/crtbegin.o

# /tmp//cc13wQEa.o

# ../libperl.a(perl.o)

# ../libperl.a(op.o)

# ../libperl.a(universal.o)

# ../libperl.a(av.o)

...

I don't see a way to get ld to trace where it looks for libraries, so I don't see a way to trace this any further.

tonycoz avatar Apr 24 '24 04:04 tonycoz

@tonycoz - Thanks for figuring out what was going on here re: linking.

richardleach avatar Apr 28 '24 21:04 richardleach

I need to look into it further, perl itself seems to link fine.

tonycoz avatar Apr 28 '24 23:04 tonycoz

I need to look into it further, perl itself seems to link fine.

The perl executable links the library via direct reference:

eg++ -o perl -Wl,-E  -fstack-protector-strong -L/usr/local/lib  perlmain.o   libperl.a `cat ext.libs` -lpthread -lm -lutil -lc

So I see two issues directly related to the test here:

  • the link process for embed_test doesn't match that of the perl executable, so we might link the wrong library in (and do in this case)
  • the test itself doesn't detect that we linked the wrong library, it's fairly simple and doesn't do anything that involves the layout of the perl structure

I can see a couple of issues not directly related to the failures:

  • S_new_SV should probably be PERL_STATIC_INLINE, or maybe better just defined in sv.c and exported, ie. E in embed.fnc, to allow simpler breakpoints
  • the S_new_SV file, line, func arguments should be PERL_ARG_UNUSED():
In file included from ../../perl.h:7870,
                 from B.xs:13:
../../sv_inline.h: In function 'SV* S_new_SV(const char*, int, const char*)':
../../sv_inline.h:75:28: warning: unused parameter 'file' [-Wunused-parameter]
   75 | S_new_SV(pTHX_ const char *file, int line, const char *func)
      |                ~~~~~~~~~~~~^~~~
../../sv_inline.h:75:38: warning: unused parameter 'line' [-Wunused-parameter]
   75 | S_new_SV(pTHX_ const char *file, int line, const char *func)
      |                                  ~~~~^~~~
../../sv_inline.h:75:56: warning: unused parameter 'func' [-Wunused-parameter]
   75 | S_new_SV(pTHX_ const char *file, int line, const char *func)

tonycoz avatar Apr 29 '24 05:04 tonycoz

I can see a couple of issues not directly related to the failures:

I'm working on a PR for these

richardleach avatar May 09 '24 15:05 richardleach

I can see a couple of issues not directly related to the failures:

I'm working on a PR for these

@richardleach @tonycoz: Can we get an update on this? This broke in the previous development cycle.

jkeenan avatar May 10 '24 01:05 jkeenan

I can see a couple of issues not directly related to the failures:

I'm working on a PR for these

@richardleach @tonycoz: Can we get an update on this? This broke in the previous development cycle.

As far as a PR for the "issues not directly related to the failures", I'm currently stuck on figuring out how to correctly declare - or otherwise make visible - the S_new_SV function and correct new_SV macro within sv_inline.h for that file's inline functions.

richardleach avatar May 10 '24 22:05 richardleach

Ok, I cannot see how to make the S_new_SV function and newSV macro visible within sv_inline.h and also not cause redefinition warnings elsewhere, such as in .c files that import both sv_inline.h and embed.h. To make some progress, I've raised https://github.com/Perl/perl5/pull/22208 instead.

richardleach avatar May 11 '24 14:05 richardleach

This broke in the previous development cycle.

As far as I can tell the build issue itself is very long standing, unrelated to 75acd14 and can't be fixed in the C source.

lib/ExtUtils/t/Embed.t needs to be updated to build embed_test in the same way Makefile builds perl itself, but this late in the development process I don't think this should be done for 5.40, as it has a good chance of introducing similar failures on other platforms.

At base it looks like a bug in the old gcc on that platform, since the default clang works fine.

It could be added to known issues for the 5.40 perldelta.

tonycoz avatar May 13 '24 00:05 tonycoz

This broke in the previous development cycle.

As far as I can tell the build issue itself is very long standing, unrelated to 75acd14 and can't be fixed in the C source.

lib/ExtUtils/t/Embed.t needs to be updated to build embed_test in the same way Makefile builds perl itself, but this late in the development process I don't think this should be done for 5.40, as it has a good chance of introducing similar failures on other platforms.

At base it looks like a bug in the old gcc on that platform, since the default clang works fine.

It could be added to known issues for the 5.40 perldelta.

@tonycoz, now that we're well into the 5.41 dev cycle, is there any way we could move work on this problem forward? Thanks.

jkeenan avatar Aug 09 '24 21:08 jkeenan

This broke in the previous development cycle.

As far as I can tell the build issue itself is very long standing, unrelated to 75acd14 and can't be fixed in the C source. lib/ExtUtils/t/Embed.t needs to be updated to build embed_test in the same way Makefile builds perl itself, but this late in the development process I don't think this should be done for 5.40, as it has a good chance of introducing similar failures on other platforms. At base it looks like a bug in the old gcc on that platform, since the default clang works fine. It could be added to known issues for the 5.40 perldelta.

@tonycoz, now that we're well into the 5.41 dev cycle, is there any way we could move work on this problem forward? Thanks.

@tonycoz, ping ^^

jkeenan avatar Aug 31 '24 23:08 jkeenan

As https://perl5.test-smoke.org has come back to life (thanks to Leo, Olaf, et al.), I've been able to gather more data about this problem -- and am glad that the problem was partially solved by @richardleach's https://github.com/Perl/perl5/commit/c79fe2b42ae2a540552f87251aa0e36a060dd584 back in June. I noticed that after a string of 5 smoke-test run failures on my OpenBSD-6.9 VM between April 6 and June 11, no failures have been observed since. I bisected with the following invocation:

perl Porting/bisect.pl -Dcc=gcc \
    -Accflags='-DPERL_RC_STACK -DDEBUG_LEAKING_SCALARS' \
--start a902d92a78 \
--end 01f2355587 \
--expect-fail \
--target lib/ExtUtils/t/Embed.t

... and found that the first "bad" (really, good, in this case) commit was :+1:

c79fe2b42ae2a540552f87251aa0e36a060dd584 is the first bad commit
commit c79fe2b42ae2a540552f87251aa0e36a060dd584
Author: Richard Leach <[email protected]>
Date:   Sat May 11 13:26:27 2024 +0000
Commit:     Richard Leach <[email protected]>
CommitDate: Wed Jun 12 12:44:21 2024 +0100

    S_new_SV: args unused, static inline & defined, rename with Perl_ prefix

This build used gcc but was not a threaded build. Today I decided to confirm that I got a PASS on a threaded build. Today I configured with:

$ sh ./Configure -des -Dusedevel -Duseithreads -Dcc=gcc

... then built and tested.

$ cd t; ./perl harness -v ../lib/ExtUtils/t/Embed.t; cd -                 
ld: error: undefined symbol: Perl_croak_nocontext
>>> referenced by embed_test.c
>>>               /tmp//ccTDHCnn.o:(Perl_croak_memory_wrap)
collect2: ld returned 1 exit status

not ok 1
not ok 10 # system returned -1
Failed 10/10 subtests 

Test Summary Report
-------------------
../lib/ExtUtils/t/Embed.t (Wstat: 0 Tests: 2 Failed: 2)
  Failed tests:  1, 10
  Parse errors: Tests out of sequence.  Found (10) but expected (2)
                Bad plan.  You planned 10 tests but ran 2.
Files=1, Tests=2,  1 wallclock secs ( 0.00 usr  0.05 sys +  0.45 cusr  0.18 csys =  0.68 CPU)
Result: FAIL
Finished test run at Sun Sep  1 12:11:21 2024.

Note that the very first entry in this issue back in April was reporting an unthreaded build.

I'm hoping that we can get some smoke-tests on more up-to-date OpenBSDs (7.5) with more modern gccs, unthreaded and threaded, with and without -Accflags='-DPERL_RC_STACK -DDEBUG_LEAKING_SCALARS' so that we can get a better handle on this problem.

jkeenan avatar Sep 01 '24 12:09 jkeenan

Note that c79fe2b4 didn't fix the underlying issue: linking with the wrong libperl.

I've spent some time on this, mostly trying to work out how to detect the mismatch so the test fails when it should fail.

tonycoz avatar Sep 02 '24 01:09 tonycoz