[ 
https://issues.apache.org/jira/browse/AXIS2C-789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547254
 ] 

Bill Mitchell commented on AXIS2C-789:
--------------------------------------

On the Windows version, this change introduces a Heap Corruption failure the 
first time axiom_stax_builder_create_om_element() is called.  The 
temp_localname is allocated by libxml2 in axiom_xml_reader_get_name in its 
runtime space.  At the subsequent AXIS2_FREE call, the C runtime linked with 
Axis diagnoses the cell as not belonging to its runtime heap.  Thus the 
corruption.  

It is possible, in fact likely, that this heap corruption error will disappear 
if a libxml2.dll is used that is linked using the multi-threaded C runtime 
(/MD). But that's not the way the pre-compiled binaries are made available by 
xmlsoft.org at the link indicated on the Axis2 installation instructions.   

> Memory leak in om_stax_builder
> ------------------------------
>
>                 Key: AXIS2C-789
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-789
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: xml/om
>         Environment: Ubuntu
>            Reporter: Lahiru Gunathilake
>            Assignee: Sanjaya Ratnaweera
>         Attachments: diff_om
>
>
> There was a big memory leak in om_stax_builder it's around 4000bytes for echo 
> sample.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to