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 170779 - xml Schemas : memory fault in xmlSchemaBubbleIDCNodeTables when using 'unique' elements.
xml Schemas : memory fault in xmlSchemaBubbleIDCNodeTables when using 'unique...
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
2.6.18
Other Linux
: Normal normal
: ---
Assigned To: kbuchcik
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-18 10:18 UTC by Fabrice GUY
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test.xml file reproducing the bug (442 bytes, text/xml)
2005-03-18 10:20 UTC, Fabrice GUY
Details
test.xsd file reproducing the bug (1.38 KB, text/xml)
2005-03-18 10:21 UTC, Fabrice GUY
Details

Description Fabrice GUY 2005-03-18 10:18:36 UTC
xmlllint --schema test.xsd --noout test.xml produces a memory fault (files are
attached)

Here is the gdb stack :
  • #0 _int_realloc
    from /lib/tls/libc.so.6
  • #1 realloc
    from /lib/tls/libc.so.6
  • #2 xmlSchemaBubbleIDCNodeTables
    at xmlschemas.c line 18212
  • #3 xmlSchemaEndElement
    at xmlschemas.c line 18436
  • #4 xmlSchemaValidateCallback
    at xmlschemas.c line 16114
  • #5 xmlRegCompactPushString
    at xmlregexp.c line 2700
  • #6 xmlRegExecPushString__internal_alias
    at xmlregexp.c line 2764
  • #7 xmlRegExecPushString2__internal_alias
    at xmlregexp.c line 3108
  • #8 xmlSchemaValidateElementByComplexType
    at xmlschemas.c line 19357
  • #9 xmlSchemaValidateElementByType
    at xmlschemas.c line 19637
  • #10 xmlSchemaValidateElementByDeclaration
    at xmlschemas.c line 18869
  • #11 xmlSchemaValidateCallback
    at xmlschemas.c line 16101
  • #12 xmlRegCompactPushString
    at xmlregexp.c line 2700
  • #13 xmlRegExecPushString__internal_alias
    at xmlregexp.c line 2764
  • #14 xmlRegExecPushString2__internal_alias
    at xmlregexp.c line 3108
  • #15 xmlSchemaValidateElementByComplexType
    at xmlschemas.c line 19357
  • #16 xmlSchemaValidateElementByType
    at xmlschemas.c line 19637
  • #17 xmlSchemaValidateElementByDeclaration
    at xmlschemas.c line 18869
  • #18 xmlSchemaStartValidation
    at xmlschemas.c line 20466
  • #19 xmlSchemaValidateDoc__internal_alias
    at xmlschemas.c line 20855
  • #20 parseAndPrintFile
    at xmllint.c line 1702
  • #21 main
    at xmllint.c line 2407

Comment 1 Fabrice GUY 2005-03-18 10:20:32 UTC
Created attachment 38889 [details]
test.xml file reproducing the bug
Comment 2 Fabrice GUY 2005-03-18 10:21:03 UTC
Created attachment 38890 [details]
test.xsd file reproducing the bug
Comment 3 kbuchcik 2005-03-21 20:15:54 UTC
Should be fixed in CVS, xmlschemas.c rev 1.120.

Additionally, I deactivated the unnecessary bubbling for <key>s/<unique>s if not
referenced by a <keyref>.

Thanks for the report!

Comment 4 Daniel Veillard 2005-09-05 08:59:33 UTC
This should be closed by release of libxml2-2.6.21,

  thanks,

Daniel