[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: makeinfo segmentation fault on OS X
From: |
Jesper Harder |
Subject: |
Re: makeinfo segmentation fault on OS X |
Date: |
Sun, 17 Apr 2005 21:54:19 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (darwin) |
address@hidden (Karl Berry) writes:
> Debugging C is not my forte, but if you tell me something specific to
> try I'll be glad to help.
>
> Thanks. For the segmentation faults: run makeinfo under gdb (or
> whatever debugger). Execute the command line that causes the seg fault.
> When it crashes, get a backtrace and see where you are.
Hi Karl,
Here are backtraces for xml and docbook:
(gdb) run --xml temp.texi
Starting program: /usr/local/bin/makeinfo --xml temp.texi
Reading symbols for shared libraries . done
temp.texi:8: warning: unrecognized encoding name `utf-8'.
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x0002f058 in xml_indent () at xml.c:701
701 if (output_paragraph[output_paragraph_offset-1] != '\n')
(gdb) backtrace
#0 0x0002f058 in xml_indent () at xml.c:701
#1 0x0002fb24 in xml_insert_element_with_attribute (elt=145, arg=0,
format=0x0) at xml.c:898
#2 0x00030040 in xml_insert_element (elt=145, arg=0) at xml.c:990
#3 0x000331b8 in xml_begin_multitable (ncolumns=3, column_widths=0x194a70) at
xml.c:2014
#4 0x00025cd4 in do_multitable () at multi.c:372
#5 0x0001191c in begin_insertion (type=multitable) at insertion.c:603
#6 0x000147ac in cm_multitable () at insertion.c:1721
#7 0x0001fb88 in read_command () at makeinfo.c:2076
#8 0x00020440 in reader_loop () at makeinfo.c:2247
#9 0x000249e4 in execute_string (format=0x42ff0 "%s") at makeinfo.c:3985
#10 0x00018ba8 in execute_macro (def=0x113c30) at macro.c:443
#11 0x0001f814 in read_command () at makeinfo.c:2003
#12 0x00020440 in reader_loop () at makeinfo.c:2247
#13 0x0001eae8 in convert_from_loaded_file (name=0xbffffd5e "temp.texi") at
makeinfo.c:1690
#14 0x0001dd70 in convert_from_file (name=0xbffffd5e "temp.texi") at
makeinfo.c:1384
#15 0x0001c72c in main (argc=3, argv=0xbffffcb4) at makeinfo.c:849
(gdb)
(gdb) run --docbook temp.texi
Starting program: /usr/local/bin/makeinfo --docbook temp.texi
Reading symbols for shared libraries . done
temp.texi:8: warning: unrecognized encoding name `utf-8'.
*** stack underflow (-1 - 0) ***
*** stack underflow (-1 - 0) ***
*** stack underflow (-1 - 0) ***
*** stack underflow (-1 - 0) ***
*** stack underflow (-2 - 0) ***
*** stack underflow (-1 - 119) ***
*** stack underflow (-1 - 119) ***
*** stack underflow (-2 - 0) ***
*** stack underflow (-2 - 0) ***
*** stack underflow (-3 - 0) ***
*** stack underflow (-2 - 119) ***
*** stack underflow (-1 - 124) ***
*** stack underflow (-2 - 119) ***
*** stack underflow (-3 - 0) ***
*** stack underflow (-3 - 0) ***
*** stack underflow (-4 - 0) ***
*** stack underflow (-3 - 119) ***
*** stack underflow (-1 - 146) ***
*** stack underflow (-1 - 146) ***
*** stack underflow (-1 - 146) ***
*** stack underflow (-2 - 124) ***
*** stack underflow (-3 - 119) ***
*** stack underflow (-4 - 0) ***
*** stack underflow (-4 - 0) ***
*** stack underflow (-5 - 0) ***
*** stack underflow (-4 - 119) ***
[... thousands of similar lines]
*** stack underflow (-79 - 11) ***
*** stack underflow (-79 - 11) ***
*** stack underflow (-79 - 11) ***
*** stack underflow (-80 - 10) ***
*** stack underflow (-81 - 9) ***
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x0002f270 in xml_end_para () at xml.c:733
733 while (cr_or_whitespace(output_paragraph[output_paragraph_offset-1]))
(gdb) backtrace
#0 0x0002f270 in xml_end_para () at xml.c:733
#1 0x0002f990 in xml_insert_element_with_attribute (elt=11, arg=0,
format=0x47fd4 "label=\"%s\"") at xml.c:882
#2 0x0002c620 in sectioning_underscore (cmd=0x42be0 "subsection") at
sectioning.c:387
#3 0x0002d41c in cm_subsection () at sectioning.c:728
#4 0x0001fb88 in read_command () at makeinfo.c:2076
#5 0x00020440 in reader_loop () at makeinfo.c:2247
#6 0x0001eae8 in convert_from_loaded_file (name=0xbffffe3a "temp.texi") at
makeinfo.c:1690
#7 0x0001dd70 in convert_from_file (name=0xbffffe3a "temp.texi") at
makeinfo.c:1384
#8 0x0001c72c in main (argc=3, argv=0xbffffda0) at makeinfo.c:849
(gdb)
--
Cheers,
Jesper Harder