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 60184 - libxml is miscompiled with gcc 3.01
libxml is miscompiled with gcc 3.01
Status: VERIFIED NOTABUG
Product: libxml
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2001-09-07 13:37 UTC by t.greve
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description t.greve 2001-09-07 13:37:31 UTC
When configuring libxml-1.8.15 or libxml2-2.4.3 with

  CFLAGS='-O2 -march=athlon' ./configure

using gcc 3.01, the regression test fails:

##
## XML regression tests
##
Testing att1
...
Testing ent2
./test/ent2:4: error: Invalid URI: title.xml
<!ENTITY title PUBLIC "-//MY-TITLE//FR" "title.xml">
                                                   ^
./test/ent2:5: error: Invalid URI: img.gif
<!ENTITY image SYSTEM "img.gif" NDATA GIF>
                               ^
warning: failed to load external entity "-//MY-TITLE//FR"
1,10d0
< <?xml version="1.0"?>
< <!DOCTYPE EXAMPLE SYSTEM "example.dtd" [
< <!ENTITY xml "Extensible Markup Language">
< <!ENTITY title PUBLIC "-//MY-TITLE//FR" "title.xml">
< <!ENTITY image SYSTEM "img.gif" NDATA GIF>
< ]>
< <EXAMPLE>
<   &title;
<   This text is about XML, the &xml; and this is an embedded <IMG
src="image"/>
< </EXAMPLE>
result.ent2:1: error: Document is empty

^
result.ent2:1: error: Start tag expected, '<' not found

^
Testing ent3
...

Lots of other failures are reported in the following tests.

Since this problem does not occur when libxml is compiled with gcc 2.95.2
(otherwise same environment), this might well be a bug in gcc 3.0.1.
Comment 1 Daniel Veillard 2001-09-10 20:59:46 UTC
Yep gcc-3.00 was already miscompiling libxml URI code
this is listed in the FAQ:

http://xmlsoft.org/FAQ.html#Compilatio

point 6.
I pointed the gcc maintainers to your report, this may
get fixed in 3.02, but I hadn't time to check against their
CVs head.

  thanks for the report,

Daniel
Comment 2 Daniel Veillard 2001-09-15 17:47:06 UTC
I got reports back from the GCC maintainer that this 
will be fixed in release 3.0.2,

 thanks for the report,

Daniel