GNOME Bugzilla – Bug 404478
Segmentation fault received trying to process a large book
Last modified: 2021-07-05 13:22:41 UTC
See http://mail.gnome.org/archives/xml/2007-February/msg00011.html. I received a segmantation fault trying to create a .pot file from Normal Walsh's "DocBook: The Definitive Guide". Files and backtrace were attached to messages in the mentioned thread. I can think of, that there is a problem with entities resolving, because trying to process the single file tdg.xml (includes everything from book.xml + included documents) works.
Hi, I've been able to reproduce this problem. But it's probably not a xml2po bug, because it's reproducible with the following script: import libxml2 #deactivate error messages from the validation def noerr(ctx, str): pass libxml2.registerErrorHandler(noerr, None) ctxt = libxml2.createFileParserCtxt("book.xml") ctxt.replaceEntities(1) ctxt.parseDocument() Create a .py file with this content in the same folder as "book.xml" and run script.py and you'll get the error. It might be interesting to reproduce it with a comparative C program. Note also that when you don't desactivate error reporting, there are much parser errors. Might be a hint...
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.