develooper Front page | perl.perl5.porters | Postings from July 2022

Re: perl-5.37.1 breaks texinfo-6.8

Thread Previous | Thread Next
Uwe Düffert
July 11, 2022 19:50
Re: perl-5.37.1 breaks texinfo-6.8
Message ID:
On Sun, 10 Jul 2022, Karl Williamson wrote:

> If you have valgrind, or clang asan or similar, could you try running that?
So I compiled, installed and ran valgrind --leak-check=full on texinfos 
problematic perl command. With that, the run completes and creates 4 
*.info files identical to the ones produced using out-of-the-box 
perl-5.37.0. The valgrind output seems helpful especially compared to 
that of a broken run without valgrind (10MB vs 5MB uncompressed):

> If not or it doesn't show a problem,
I have and it does, but for completeness:

> run the working perl version using the -DLv and the 
> PERL_DEBUG_LOCALE_INIT environment variable (on a DEBUGGING one)
> I can then compare outputs.
As said before, built with -DDEBUGGING and run with -DLv, even 
an unpatched perl-5.37.1 works (and produces output *.info identical to 
the ones produced by perl-5.37.0). I somehow doubt that comparing is 
useful, but for what its worth: Output of the problematic texinfo 
testcase can be found at:
Yes, it is 6.7GB uncompressed each, and even with process numbers stripped 
before, the unified diff is still 1.4GB...

> And you could use gdb, and when it is in the hung state, break the program to 
> see where in texinfo it is hanging.
Here you go (multiple attempts give same callstack):
Program received signal SIGTSTP, Stopped (user).
0x00007ffff7a1b0c0 in mbrtowc@plt () from 
(gdb) bt
#0  0x00007ffff7a1b0c0 in mbrtowc@plt () from 
#1  0x00007ffff7a1d74c in xspara.add_next () from 
#2  0x00007ffff7a1d85b in xspara_add_next () from 
#3  0x00007ffff7a1c01c in XS_Texinfo__Convert__Paragraph_add_next () from 
#4  0x00007ffff7d1e628 in Perl_pp_entersub () from 
#5  0x00007ffff7d14496 in Perl_runops_standard () from 
#6  0x00007ffff7c74bd9 in perl_run () from 
#7  0x0000000000401252 in main ()

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About