bug-texinfo
[Top][All Lists]
Advanced

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

crash with big macro


From: Patrice Dumas
Subject: crash with big macro
Date: Wed, 20 Aug 2008 14:28:30 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hello,

I get a segfault with a big macro used. It manifests differently when in
insertcopying and in normal text, but I guess that it is in fact the
same issue. Also the reproducibility is not complete, there is a
segfault, or a glibc error (on fedora devel).

I don't know if the content of the @macro is relevant or not, but the
length is important. The macro is in coverage_macro.texi. If I remove some 'a'
in the line of 'A' and 'a' I don't get a crash anymore. And if in
@insertcopying, and someting is added, then I get a glibc realloc error
instead of a segfault. The exact number of caracters is not always 
exactly the same even for 2 consecutive runs, you may have to play a
bit. This may be because of some stack randomization in fedora, or not.

I attach the macro include file coverage_macro.texi, formatting.texi with
the macro called in @copying, and formatting-no_insertcopying.texi with 
the macro called in text.

If the macro is expanded (by 
perl -w -x ~/src/texi2html/texi2html.pl -U texi2html 
formatting-no_insertcopying.texi -E t_f.texi)
there is no crash anymore, I attach t_f.texi. Even if I add manually
more lines there is no crash.

I also attach some backtraces and a glibc message.

--
Pat

Attachment: coverage_macro.texi
Description: TeXInfo document

Attachment: formatting.texi
Description: TeXInfo document

Attachment: formatting-no_insertcopying.texi
Description: TeXInfo document

Attachment: t_f.texi
Description: TeXInfo document

Attachment: makeinfo_realloc_error-gdb
Description: Text document

Attachment: makeinfo_realloc_error-realloc_glibc_error
Description: Text document


reply via email to

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