You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Dinesh Premalal (JIRA)" <ji...@apache.org> on 2006/11/07 20:26:53 UTC

[jira] Created: (AXIS2C-396) element free segfaults if attributes reused

element free segfaults if attributes reused
-------------------------------------------

                 Key: AXIS2C-396
                 URL: http://issues.apache.org/jira/browse/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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXIS2C-396) element free segfaults if attributes reused

Posted by "Dinesh Premalal (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-396?page=all ]

Dinesh Premalal resolved AXIS2C-396.
------------------------------------

    Fix Version/s: Current (Nightly)
       Resolution: Fixed

fixed !

> element free segfaults if attributes reused
> -------------------------------------------
>
>                 Key: AXIS2C-396
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-396
>             Project: Axis2-C
>          Issue Type: Sub-task
>          Components: xml/om
>    Affects Versions: 0.95
>            Reporter: Dinesh Premalal
>         Assigned To: Dinesh Premalal
>             Fix For: Current (Nightly)
>
>
>  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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Assigned: (AXIS2C-396) element free segfaults if attributes reused

Posted by "Dinesh Premalal (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-396?page=all ]

Dinesh Premalal reassigned AXIS2C-396:
--------------------------------------

    Assignee: Dinesh Premalal

> element free segfaults if attributes reused
> -------------------------------------------
>
>                 Key: AXIS2C-396
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-396
>             Project: Axis2-C
>          Issue Type: Sub-task
>          Components: xml/om
>    Affects Versions: 0.95
>            Reporter: Dinesh Premalal
>         Assigned To: 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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org