On Sun, Apr 21, 2019 at 8:03 PM <andrey....@gmail.com> wrote:
>
>
> On Sun, Apr 21, 2019, 05:23 Adam Carter, <adamcart...@gmail.com> wrote:
>>
>> On Sun, Apr 21, 2019 at 12:24 PM <andrey....@gmail.com> wrote:
>>>
>>> Hi, folks.
>>>
>>> When texinfo tries to run to process the texinfo files as part of the
>>> compile step, perl appears to die with free(): invalid pointer.
>>>
>>> build.log: http://dpaste.com/2Z0K93S
>>> emerge --info: http://dpaste.com/1KD9J3R
>>>
>>
>> If you've just updated perl (i just got 5.28.2 today, ~amd64) you'll need to 
>> run perl-cleaner to get your perl stuff working again
>
> No change before or after, and texinfo doesn't use Perl modules not part of 
> the standard distribution.
> Is there a way to get the texinfo build to run Perl in debug mode so 
> something like a backtrace can be emitted?

I have a backtrace for sys-apps/texinfo-6.6-r1:
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007f9edf3397a5 in __GI_abort () at abort.c:79
#2  0x00007f9edf395450 in __libc_message
(action=action@entry=do_abort, fmt=fmt@entry=0x7f9edf4a7707 "%s\n") at
../sysdeps/posix/libc_fatal.c:181
#3  0x00007f9edf39cfd8 in malloc_printerr
(str=str@entry=0x7f9edf4a589b "free(): invalid pointer") at
malloc.c:5341
#4  0x00007f9edf39e964 in _int_free (av=<optimized out>, p=<optimized
out>, have_lock=<optimized out>) at malloc.c:4165
#5  0x00007f9edfbd3b8a in xs_abort_empty_line
(self=self@entry=0x55b7cc609128, current=current@entry=0x55b7cc901bc8,
    additional_spaces_in=additional_spaces_in@entry=0x55b7cc901e68) at misc.c:74
#6  0x00007f9edfbd48ea in xs_merge_text
(self=self@entry=0x55b7cc609128, current=0x55b7cc901bc8,
text_in=text_in@entry=0x55b7cbf15408)
    at misc.c:303
#7  0x00007f9edfbd2da4 in XS_Texinfo__MiscXSXS_merge_text
(my_perl=0x55b7cb1f9290, cv=<optimized out>) at MiscXS.c:266
#8  0x00007f9edf8391f4 in Perl_pp_entersub (my_perl=0x55b7cb1f9290) at
pp_hot.c:5232
#9  0x00007f9edf7f326a in Perl_runops_debug (my_perl=0x55b7cb1f9290)
at dump.c:2535
#10 0x00007f9edf75a58d in S_run_body (oldscope=1,
my_perl=0x55b7cb1f9290) at perl.c:2694
#11 perl_run (my_perl=0x55b7cb1f9290) at perl.c:2617
#12 0x000055b7cabf428d in main (argc=<optimized out>, argv=<optimized
out>, env=<optimized out>) at perlmain.c:122
(gdb) q

By the looks of it, something suspicious is going on in the compile of
MiscXS.so. This is similar to https://bugs.gentoo.org/622576 but
because the issue occurred with sys-apps/texinfo-6.6-r1, it can't be
exactly that.

Reply via email to