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 "Lahiru Gunathilake (JIRA)" <ji...@apache.org> on 2007/12/05 13:08:43 UTC

[jira] Created: (AXIS2C-808) Incompatible between Guththila and Libxml

Incompatible between Guththila and Libxml
-----------------------------------------

                 Key: AXIS2C-808
                 URL: https://issues.apache.org/jira/browse/AXIS2C-808
             Project: Axis2-C
          Issue Type: Bug
          Components: xml/om
    Affects Versions: Current (Nightly)
         Environment: Ubuntu
            Reporter: Lahiru Gunathilake
             Fix For: Current (Nightly)


In om_stax_builder.c it calls parsers get_value and get_prefix like methods to get the parts of the xml.But when it wants to free those axis2_char_t* it simply calls the axiom_xml_reader_free method.But since Guththila and Libxml2 implementations are different , with Guththila it doesn't actually delete the malloc char*.To resolve this we can't simply use AXIS2_FREE to delete with both parsers because libxml2 gives those parts without doing malloc.Then we have to use some macro definition and decide whether built with guththila or not and use seperate methods to delete those char*.If we simply ignore this it cause a big memory leak with Guththila.It's around 3000bytes for a simple xml.

Regs
lahiru

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-808) Incompatible between Guththila and Libxml

Posted by "Senaka Fernando (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548751 ] 

Senaka Fernando commented on AXIS2C-808:
----------------------------------------

Yes,

I think you are referring to a compiler flag. This should be the approach that we should opt as there are several inconsistencies between libxml2 and guththila and since we have no control over libxml2's implementations unlike guththila, we need to have a mechanism to realize the difference at compilation.

Great job!

Regards,
Senaka

> Incompatible between Guththila and Libxml
> -----------------------------------------
>
>                 Key: AXIS2C-808
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-808
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: xml/om
>    Affects Versions: Current (Nightly)
>         Environment: Ubuntu
>            Reporter: Lahiru Gunathilake
>             Fix For: Current (Nightly)
>
>         Attachments: diff
>
>
> In om_stax_builder.c it calls parsers get_value and get_prefix like methods to get the parts of the xml.But when it wants to free those axis2_char_t* it simply calls the axiom_xml_reader_free method.But since Guththila and Libxml2 implementations are different , with Guththila it doesn't actually delete the malloc char*.To resolve this we can't simply use AXIS2_FREE to delete with both parsers because libxml2 gives those parts without doing malloc.Then we have to use some macro definition and decide whether built with guththila or not and use seperate methods to delete those char*.If we simply ignore this it cause a big memory leak with Guththila.It's around 3000bytes for a simple xml.
> Regs
> lahiru

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXIS2C-808) Incompatible between Guththila and Libxml

Posted by "Sanjaya Ratnaweera (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanjaya Ratnaweera resolved AXIS2C-808.
---------------------------------------

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

Patch applied. Thanks Lahiru for the patch.

> Incompatible between Guththila and Libxml
> -----------------------------------------
>
>                 Key: AXIS2C-808
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-808
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: xml/om
>    Affects Versions: Current (Nightly)
>         Environment: Ubuntu
>            Reporter: Lahiru Gunathilake
>            Assignee: Sanjaya Ratnaweera
>             Fix For: 1.2.0
>
>         Attachments: diff
>
>
> In om_stax_builder.c it calls parsers get_value and get_prefix like methods to get the parts of the xml.But when it wants to free those axis2_char_t* it simply calls the axiom_xml_reader_free method.But since Guththila and Libxml2 implementations are different , with Guththila it doesn't actually delete the malloc char*.To resolve this we can't simply use AXIS2_FREE to delete with both parsers because libxml2 gives those parts without doing malloc.Then we have to use some macro definition and decide whether built with guththila or not and use seperate methods to delete those char*.If we simply ignore this it cause a big memory leak with Guththila.It's around 3000bytes for a simple xml.
> Regs
> lahiru

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Assigned: (AXIS2C-808) Incompatible between Guththila and Libxml

Posted by "Sanjaya Ratnaweera (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanjaya Ratnaweera reassigned AXIS2C-808:
-----------------------------------------

    Assignee: Sanjaya Ratnaweera

> Incompatible between Guththila and Libxml
> -----------------------------------------
>
>                 Key: AXIS2C-808
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-808
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: xml/om
>    Affects Versions: Current (Nightly)
>         Environment: Ubuntu
>            Reporter: Lahiru Gunathilake
>            Assignee: Sanjaya Ratnaweera
>             Fix For: Current (Nightly)
>
>         Attachments: diff
>
>
> In om_stax_builder.c it calls parsers get_value and get_prefix like methods to get the parts of the xml.But when it wants to free those axis2_char_t* it simply calls the axiom_xml_reader_free method.But since Guththila and Libxml2 implementations are different , with Guththila it doesn't actually delete the malloc char*.To resolve this we can't simply use AXIS2_FREE to delete with both parsers because libxml2 gives those parts without doing malloc.Then we have to use some macro definition and decide whether built with guththila or not and use seperate methods to delete those char*.If we simply ignore this it cause a big memory leak with Guththila.It's around 3000bytes for a simple xml.
> Regs
> lahiru

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Closed: (AXIS2C-808) Incompatible between Guththila and Libxml

Posted by "Lahiru Gunathilake (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lahiru Gunathilake closed AXIS2C-808.
-------------------------------------


> Incompatible between Guththila and Libxml
> -----------------------------------------
>
>                 Key: AXIS2C-808
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-808
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: xml/om
>    Affects Versions: Current (Nightly)
>         Environment: Ubuntu
>            Reporter: Lahiru Gunathilake
>            Assignee: Sanjaya Ratnaweera
>             Fix For: 1.2.0
>
>         Attachments: diff
>
>
> In om_stax_builder.c it calls parsers get_value and get_prefix like methods to get the parts of the xml.But when it wants to free those axis2_char_t* it simply calls the axiom_xml_reader_free method.But since Guththila and Libxml2 implementations are different , with Guththila it doesn't actually delete the malloc char*.To resolve this we can't simply use AXIS2_FREE to delete with both parsers because libxml2 gives those parts without doing malloc.Then we have to use some macro definition and decide whether built with guththila or not and use seperate methods to delete those char*.If we simply ignore this it cause a big memory leak with Guththila.It's around 3000bytes for a simple xml.
> Regs
> lahiru

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-808) Incompatible between Guththila and Libxml

Posted by "Lahiru Gunathilake (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lahiru Gunathilake updated AXIS2C-808:
--------------------------------------

    Attachment: diff

I've defined  a new macro AXIS2_GUTHTHILA_ENABLED and do the same deletion with different way which are suit to two parsers.Now memory leak is resolved and work fine.

regs
lahiru

> Incompatible between Guththila and Libxml
> -----------------------------------------
>
>                 Key: AXIS2C-808
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-808
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: xml/om
>    Affects Versions: Current (Nightly)
>         Environment: Ubuntu
>            Reporter: Lahiru Gunathilake
>             Fix For: Current (Nightly)
>
>         Attachments: diff
>
>
> In om_stax_builder.c it calls parsers get_value and get_prefix like methods to get the parts of the xml.But when it wants to free those axis2_char_t* it simply calls the axiom_xml_reader_free method.But since Guththila and Libxml2 implementations are different , with Guththila it doesn't actually delete the malloc char*.To resolve this we can't simply use AXIS2_FREE to delete with both parsers because libxml2 gives those parts without doing malloc.Then we have to use some macro definition and decide whether built with guththila or not and use seperate methods to delete those char*.If we simply ignore this it cause a big memory leak with Guththila.It's around 3000bytes for a simple xml.
> Regs
> lahiru

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org