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): https://uwe-dueffert.de/code/perl5.37.1/142_valgrind_with_5.37.1+smoke.sh.log.xz https://uwe-dueffert.de/code/perl5.37.1/142_texinfo_broken.sh.log.xz > 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: https://uwe-dueffert.de/code/perl5.37.1/37.0_DEBUG.log.xz https://uwe-dueffert.de/code/perl5.37.1/37.1_DEBUG.log.xz 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): ^Z Program received signal SIGTSTP, Stopped (user). 0x00007ffff7a1b0c0 in mbrtowc@plt () from tp/Texinfo/XS/.libs/XSParagraph.so (gdb) bt #0 0x00007ffff7a1b0c0 in mbrtowc@plt () from tp/Texinfo/XS/.libs/XSParagraph.so #1 0x00007ffff7a1d74c in xspara.add_next () from tp/Texinfo/XS/.libs/XSParagraph.so #2 0x00007ffff7a1d85b in xspara_add_next () from tp/Texinfo/XS/.libs/XSParagraph.so #3 0x00007ffff7a1c01c in XS_Texinfo__Convert__Paragraph_add_next () from tp/Texinfo/XS/.libs/XSParagraph.so #4 0x00007ffff7d1e628 in Perl_pp_entersub () from /usr/lib/perl5/5.37.1/x86_64-linux-thread-multi/CORE/libperl.so #5 0x00007ffff7d14496 in Perl_runops_standard () from /usr/lib/perl5/5.37.1/x86_64-linux-thread-multi/CORE/libperl.so #6 0x00007ffff7c74bd9 in perl_run () from /usr/lib/perl5/5.37.1/x86_64-linux-thread-multi/CORE/libperl.so #7 0x0000000000401252 in main ()Thread Previous | Thread Next