axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dinesh Premalal (JIRA)" <>
Subject [jira] Created: (AXIS2C-396) element free segfaults if attributes reused
Date Tue, 07 Nov 2006 19:26:53 GMT
element free segfaults if attributes reused

                 Key: AXIS2C-396
             Project: Axis2-C
          Issue Type: Sub-task
          Components: xml/om
    Affects Versions: 0.95
            Reporter: Dinesh Premalal

 If you create a namespace with axiom_attribute_create() and then create two
sibling elements using axiom_element_create(), passing them both the attribute pointer,
then both elements add the attribute pointer to their internal attribute hash,
because neither finds declated it in any of the ancerstor elements.

Then when you call axiom_node_free_tree(), you get a segfault when axiom_element_free() runs
for the second element, because it calls axiom_attribute_free() on a attribute that
the first element already freed. Both elements treat the attribute as if it was private to
themselves and add it to their internal attribute hashes, and then both try to free it. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message