Bug#992471: segmentation fault with "info -a ..."
On Thu, Aug 19, 2021 at 11:08:17PM +0900, Norbert Preining wrote:
> Hi Bjarni,
>
> > (No debugging symbols found in info)
>
> ARggh, there was something I forgot.
>
> Before running gdb, please do
> export DEBUGINFOD_URLS=https://debuginfod.debian.net
> to get the debug symbols downloaded. Otherwise no use.
>
Reading symbols from info...
Reading symbols from /home/bg/.cache/debuginfod_client/7cad18c2c9b827ea78ed9e2c7bef73ce276f025c/debuginfo...
(gdb) set args -a bash
(gdb) run
Starting program: /usr/bin/info -a bash
Program received signal SIGSEGV, Segmentation fault.
0x00005555555657ee in info_get_menu_entry_by_label (node=node@entry=0x0, label=label@entry=0x5555555c2050 "bash",
sloppy=sloppy@entry=1) at info-utils.c:225
Download failed: Invalid argument. Continuing without source file ./info/info-utils.c.
225 info-utils.c: No such file or directory.
(gdb) bt
#0 0x00005555555657ee in info_get_menu_entry_by_label (node=node@entry=0x0, label=label@entry=0x5555555c2050 "bash",
sloppy=sloppy@entry=1) at info-utils.c:225
#1 0x000055555555db18 in dir_entry_of_infodir (label=label@entry=0x5555555c2050 "bash",
searchdir=0x5555555c1f10 "/usr/local/share/info") at dir.c:294
#2 0x000055555555bf6c in info_find_matching_files (filename=0x5555555c2050 "bash") at info.c:582
#3 main (argc=<optimized out>, argv=<optimized out>) at info.c:937
(gdb) quit
Probable cause is an empty "/usr/local/share/info/dir".
I was compiling the latest "automake" and "autoconf" and could not get
to see the corresponding info files with
INFOPATH=/usr/local/share/info:/usr/share/info:/home/bg/git/groff/build/doc
I do not know how to populate the "dir" directory, did not find
anything in the "info info" output.
To see the latest info-file I tried "info -f automake" and that showed
the new version.
Reply to: