Hello,
I wanted to create a gettext portable object template (.pot) file from
Norman Walsh's DocBook: The Definitive Guide. Therefor I used:
xml2po -e -o book.pot book.xml
in http://docbook.svn.sourceforge.net/viewvc/docbook/trunk/defguide/en/
and received a segmentation fault. So I started gdb and got the attached
backtrace. Can any of you say, where the segmentation fault is produced
- in xml2po or libxml2/python-libxml2 - so I can file a bug-report?
xmllint validates the XML source if you fix the tag element in
refpages/elements/equation/refentry.xml (should be an sgmltag element).
CCing Danilo Segan, the maintainer of xml2po
Thanks for any help,
Regards, Daniel
The program being debugged has been started already.
Start it from the beginning? (y or n) Starting program: /usr/bin/python
/usr/bin/xml2po -e -o book.pot book.xml
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1209702720 (LWP 25761)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209702720 (LWP 25761)]
0xb7bed365 in xmlSearchNs__internal_alias (doc=0xb7f8007c, node=0xb7007465,
nameSpace=0xb7f87510 \buø·\buø·\020uø·\020uø·\030uø·\030uø· uø·
uø·(uø·([EMAIL
PROTECTED]@uø·Huø·Huø·Puø·Puø·Xuø·Xuø·`uø·`uø·huø·huø·puø·puø·xuø·xuø·\200uø·\200uø·\210uø·\210uø·\220uø·\220uø·\230uø·\230uø· uø· uø·¨uø·¨uø·°uø·°uø·¸uø·¸uø·Àuø·Àuø·Èuø·Èuø·...)
at tree.c:5612
5612tree.c: No such file or directory.
in tree.c
#0 0xb7bed365 in xmlSearchNs__internal_alias (doc=0xb7f8007c, node=0xb7007465,
nameSpace=0xb7f87510 \buø·\buø·\020uø·\020uø·\030uø·\030uø· uø·
uø·(uø·([EMAIL
PROTECTED]@uø·Huø·Huø·Puø·Puø·Xuø·Xuø·`uø·`uø·huø·huø·puø·puø·xuø·xuø·\200uø·\200uø·\210uø·\210uø·\220uø·\220uø·\230uø·\230uø· uø· uø·¨uø·¨uø·°uø·°uø·¸uø·¸uø·Àuø·Àuø·Èuø·Èuø·...)
at tree.c:5612
cur = (xmlNsPtr) 0xa5c0f40
#1 0xb7bf5524 in xmlStaticCopyNode (node=0xa5c0f40, doc=0x8156710, parent=0x0,
extended=1) at tree.c:3931
ulccur = value optimized out
ret = value optimized out
#2 0xb7be84eb in xmlParseReference__internal_alias (ctxt=0xb1138a0) at
parser.c:6202
nw = (xmlNodePtr) 0x7369736f
cur = (xmlNodePtr) 0xa5c0f40
firstChild = (xmlNodePtr) 0x0
ent = (xmlEntityPtr) 0x828e6c0
val = value optimized out
#3 0xb7be6d95 in xmlParseContent__internal_alias (ctxt=0xb1138a0) at
parser.c:8462
cons = 19425
#4 0xb7beb09d in xmlParseElement__internal_alias (ctxt=0xb1138a0) at
parser.c:8623
name = (const xmlChar *) 0xb7ade351 entry
prefix = value optimized out
URI = value optimized out
node_info = {node = 0x114, begin_pos = 2, begin_line = 222324016,
end_pos = 3998, end_line = 0}
line = 276
tlen = value optimized out
ret = (xmlNodePtr) 0xd44d680
nsNr = 0
#5 0xb7be6d88 in xmlParseContent__internal_alias (ctxt=0xb1138a0) at
parser.c:8453
cons = 19425
#6 0xb7beb09d in xmlParseElement__internal_alias (ctxt=0xb1138a0) at
parser.c:8623
name = (const xmlChar *) 0xb7ade34d row
prefix = value optimized out
URI = value optimized out
node_info = {node = 0xd406530, begin_pos = 185677984, begin_line =
222324249, end_pos = 3217717352, end_line = 275}
line = 276
tlen = value optimized out
ret = (xmlNodePtr) 0xd44d540
nsNr = 0
#7 0xb7be6d88 in xmlParseContent__internal_alias (ctxt=0xb1138a0) at
parser.c:8453
cons = 19425
#8 0xb7beb09d in xmlParseElement__internal_alias (ctxt=0xb1138a0) at
parser.c:8623
name = (const xmlChar *) 0xb7ade347 tbody
prefix = value optimized out
URI = value optimized out
node_info = {node = 0x8, begin_pos = 2, begin_line = 222324016, end_pos
= 175, end_line = 13}
line = 14
tlen = value optimized out
ret = (xmlNodePtr) 0xd3fc3c8
nsNr = 0
#9 0xb7be6d88 in xmlParseContent__internal_alias (ctxt=0xb1138a0) at
parser.c:8453
cons = 0
#10 0xb7beb09d in xmlParseElement__internal_alias (ctxt=0xb1138a0) at
parser.c:8623
name = (const xmlChar *) 0xb7ade322 tgroup
prefix = value optimized out
URI = value optimized out
node_info = {node = 0x7, begin_pos = 2, begin_line = 222324016, end_pos
= 159, end_line = 7}
line = 8
tlen = value optimized out
ret = (xmlNodePtr) 0xd3fbc68
nsNr = 0
#11 0xb7be6d88 in xmlParseContent__internal_alias (ctxt=0xb1138a0) at
parser.c:8453
cons = 0
#12 0xb7beb09d in xmlParseElement__internal_alias (ctxt=0xb1138a0) at
parser.c:8623
name = (const xmlChar *) 0xb7ade314 informaltable
prefix = value optimized out
URI = value optimized out
node_info = {node = 0x5, begin_pos = 2, begin_line = 222324016, end_pos
= 102, end_line = 5}
line = 7
tlen = value optimized out
ret = (xmlNodePtr) 0xd3fbbd8
nsNr = 0
#13 0xb7be6d88