bug-texinfo
[Top][All Lists]
Advanced

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

segfault with 2 similar index entries and 2 similar printindex


From: Dumas Patrice
Subject: segfault with 2 similar index entries and 2 similar printindex
Date: Fri, 9 May 2003 15:12:21 +0200
User-agent: Mutt/1.4i

Hi,

On a redhat 7.3.
I got makeinfo from 4.5 (and in 4.2) to segfault with this texinfo file 
(also attached, bug.texi):

==================================================
\input texinfo @c -*-texinfo-*-

@node Top

@cindex entry 
@cindex entry 

@printindex cp

@printindex cp

@bye
==================================================

The backtrace is:

(gdb) set args bug.texi
(gdb) run
Starting program: /cired/zeus/data/src/texinfo-4.5/makeinfo/makeinfo bug.texi

Program received signal SIGSEGV, Segmentation fault.
sort_index (index=0x8073638) at index.c:579
579           temp = temp->next;
(gdb) bt
#0  sort_index (index=0x8073638) at index.c:579
#1  0x0804ddfb in cm_printindex () at index.c:681
#2  0x08054c1e in read_command () at makeinfo.c:1920
#3  0x08054eb9 in reader_loop () at makeinfo.c:2038
#4  0x080543a6 in convert_from_loaded_file (name=0xbffffb3b "bug.texi")
    at makeinfo.c:1588
#5  0x08053154 in main (argc=2, argv=0xbffffa04) at makeinfo.c:776
#6  0x42017589 in __libc_start_main () from /lib/i686/libc.so.6


If I remove something it doesn't segfault anymore.

If I add 
@cindex print
between the 2 index commands makeinfo don't segfaults but hangs. I suspect
an infinite recursion. The file triggering that is also attached 
(recursion_makeinfo.texi)

Pat

Attachment: bug.texi
Description: TeXInfo document

Attachment: recursion_makeinfo.texi
Description: TeXInfo document


reply via email to

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