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 434196 - Wrong context and column locator for error message, internal error
Wrong context and column locator for error message, internal error
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: general
2.6.27
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-28 19:44 UTC by Ville Skyttä
Modified: 2021-07-05 13:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Reproducer document (50.65 KB, text/plain)
2007-04-28 19:45 UTC, Ville Skyttä
Details
Output of "xmllint scoreboard.html" (5.92 KB, text/plain)
2007-04-28 19:46 UTC, Ville Skyttä
Details

Description Ville Skyttä 2007-04-28 19:44:18 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:
Comment 1 Ville Skyttä 2007-04-28 19:45:45 UTC
Created attachment 87198 [details]
Reproducer document
Comment 2 Ville Skyttä 2007-04-28 19:46:18 UTC
Created attachment 87199 [details]
Output of "xmllint scoreboard.html"
Comment 3 Ville Skyttä 2011-11-29 21:11:30 UTC
Still happens with libxml2 2.7.8 (Fedora 15's libxml2-2.7.8-6.fc15.x86_64).
Comment 4 GNOME Infrastructure Team 2021-07-05 13:25:49 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.