bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [7.1] texi2any crashes with Bus Error on SPARC


From: Sam James
Subject: Re: [7.1] texi2any crashes with Bus Error on SPARC
Date: Wed, 01 Nov 2023 15:44:01 +0000
User-agent: mu4e 1.10.7; emacs 30.0.50

John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> writes:

> Hello!
>
> Starting with texinfo 7.1, there is a regression that results in texi2any
> crashing with a Bus Error on SPARC running on Linux [1]:
>
> /bin/bash: line 16: 753042 Bus error               TEXINFO_DEV_SOURCE=1 
> top_srcdir=".." top_builddir=".." /usr/bin/perl ../tp/texi2any -c 
> INFO_SPECIAL_CHARS_WARNING=0 -I . -o texi2any_api.info `test -
> f 'texi2any_api.texi' || echo './'`texi2any_api.texi
> /bin/bash: line 16: 753044 Bus error               TEXINFO_DEV_SOURCE=1 
> top_srcdir=".." top_builddir=".." /usr/bin/perl ../tp/texi2any -c 
> INFO_SPECIAL_CHARS_WARNING=0 -I . -o info-stnd.info `test -f
> 'info-stnd.texi' || echo './'`info-stnd.texi
>
> There are Linux SPARC machines available in the GCC Compile Farm which are
> currently offline [2]. They are expected to become available again within
> the next weeks.

I thought I'd take a quick look at this. When I tried building with
-fsanitize=undefined on amd64, unfortunately, I hit another issue
immediately (with export UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1)::

util.c:380:3: runtime error: null pointer passed as argument 2, which is 
declared to never be null
    #0 0x5629810d4196 in text_buffer_add_string 
/var/tmp/portage/sys-apps/texinfo-7.1/work/texinfo-7.1/info/util.c:380
    #1 0x562981119148 in write_tag_contents 
/var/tmp/portage/sys-apps/texinfo-7.1/work/texinfo-7.1/info/scan.c:934
    #2 0x562981119148 in scan_info_tag 
/var/tmp/portage/sys-apps/texinfo-7.1/work/texinfo-7.1/info/scan.c:1441
    #3 0x562981119148 in scan_node_contents 
/var/tmp/portage/sys-apps/texinfo-7.1/work/texinfo-7.1/info/scan.c:1634
    #4 0x562981110cd2 in info_node_of_tag_ext 
/var/tmp/portage/sys-apps/texinfo-7.1/work/texinfo-7.1/info/nodes.c:1289
    #5 0x5629810f34ec in info_indices_of_file_buffer 
/var/tmp/portage/sys-apps/texinfo-7.1/work/texinfo-7.1/info/indices.c:161
    #6 0x5629810f6333 in look_in_indices 
/var/tmp/portage/sys-apps/texinfo-7.1/work/texinfo-7.1/info/indices.c:514
    #7 0x5629810d7e0c in add_initial_nodes 
/var/tmp/portage/sys-apps/texinfo-7.1/work/texinfo-7.1/info/info.c:521
    #8 0x5629810d7e0c in main 
/var/tmp/portage/sys-apps/texinfo-7.1/work/texinfo-7.1/info/info.c:1048
    #9 0x7f3996a4b2e6  (/usr/lib64/libc.so.6+0x242e6)
    #10 0x7f3996a4b3a8 in __libc_start_main (/usr/lib64/libc.so.6+0x243a8)
    #11 0x5629810d8e04 in _start 
(/var/tmp/portage/sys-apps/texinfo-7.1/work/texinfo-7.1/info/ginfo+0xde04)

which led to almost every test failing. Trying -fsanitize=alignment
(which is a subset of =undefined) didn't give me any issues though,
interestingly. But I didn't try it on other arches yet or poke into the
matter further.

>
> Thanks,
> Adrian
>
>> [1] 
>> https://buildd.debian.org/status/fetch.php?pkg=texinfo&arch=sparc64&ver=7.1-1&stamp=1698621074&raw=0
>> [2] https://portal.cfarm.net/machines/list/

thanks,
sam



reply via email to

[Prev in Thread] Current Thread [Next in Thread]