After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 404478 - Segmentation fault received trying to process a large book
Segmentation fault received trying to process a large book
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: general
2.6.x
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2007-02-05 01:43 UTC by Daniel Leidert
Modified: 2021-07-05 13:22 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Daniel Leidert 2007-02-05 01:43:44 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.
Comment 1 Claude Paroz 2009-09-17 20:32:36 UTC
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...
Comment 2 GNOME Infrastructure Team 2021-07-05 13:22:41 UTC
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.