[xml/sgml-pkgs] Bug#596013: libxml2: claims to be out of memory when validating SVG with XSD

brian m. carlson sandals at crustytoothpaste.net
Tue Sep 7 22:29:08 UTC 2010


Package: libxml2
Version: 2.7.7.dfsg-4
Severity: normal

I get an out of memory error from xmllint when validating an SVG file
(attached) with an XSD file[0].  The error occurs whether I use an http
URL or simply download the file to the local disk.

My kernel is set to the default settings with regard to memory, so it
should overcommit memory and never cause malloc to set errno to ENOMEM.
I also at this moment have over 675 MiB of free (not used for cache or
buffers) memory and have a total of 3 GiB total physical memory.

  lakeview no % xmllint --schema /tmp/SVG.xsd logo.svg
  /tmp/SVG.xsd:12: error: xmlSAX2StartElementNs: out of memory
  lementFormDefault="unqualified" attributeFormDefault="unqualified" xml:lang="en"
                                                                                 ^
  /tmp/SVG.xsd:14: parser error : Extra content at the end of the document
    <import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink.xsd"/>
    ^
  Schemas parser error : Failed to parse the XML resource '/tmp/SVG.xsd'.
  WXS schema /tmp/SVG.xsd failed to compile


[0] Found at http://www.w3.org/TR/2002/WD-SVG11-20020108/SVG.xsd

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libxml2 depends on:
ii  libc6                   2.11.2-5         Embedded GNU C Library: Shared lib
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages libxml2 recommends:
ii  xml-core                      0.13       XML infrastructure and XML catalog

libxml2 suggests no packages.

-- no debconf information

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20100907/219f74bc/attachment.pgp>


More information about the debian-xml-sgml-pkgs mailing list