GNOME Bugzilla – Bug 434196
Wrong context and column locator for error message, internal error
Last modified: 2021-07-05 13:25:49 UTC
Please describe the problem: Running xmllint from libxml2 2.6.27 or 2.6.28 (Fedora Core 6, x86_64) on the attached file (retrieved a bit ago from http://sports.espn.go.com/nhl/scoreboard) results in wrong context and column number locator for one error message, as well as an internal error. The end of the output is: --- scoreboard.html:229: parser error : xmlParseEntityRef: no name if (swid.indexOf("{")==0 && swid.indexOf("}")==swid.length-1) { ^ scoreboard.html:248: parser error : Sequence ']]>' not allowed in content if (swid.indexOf("{")==0 && swid.indexOf("}")==swid.length-1) { ^ scoreboard.html:248: parser error : Sequence ']]>' not allowed in content //]]> ^ scoreboard.html:248: parser error : internal error //]]> ^ scoreboard.html:248: parser error : Extra content at the end of the document //]]> ^ --- The first reported error on line 248 appears to be incorrectly reusing the shown context and column locator from the previous error on line 229. Line 248 does not contain the shown content for the error, it's only "//]]>". Further, there's an internal error a few lines later, perhaps cascading from the first one. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 87198 [details] Reproducer document
Created attachment 87199 [details] Output of "xmllint scoreboard.html"
Still happens with libxml2 2.7.8 (Fedora 15's libxml2-2.7.8-6.fc15.x86_64).
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.