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 "Mark Whitlock (JIRA)" <ax...@ws.apache.org> on 2005/05/11 11:59:19 UTC

[jira] Created: (AXISCPP-640) mallocs in C++ engine

mallocs in C++ engine
---------------------

         Key: AXISCPP-640
         URL: http://issues.apache.org/jira/browse/AXISCPP-640
     Project: Axis-C++
        Type: Bug
  Components: Client - Engine  
    Reporter: Mark Whitlock


The Axis C++ engine should not use malloc/free/strdup. Instead it should use new/delete because mixing the two APIs causes memory problems. There are mallocs in MessageData.cpp, SoapDeSerializer.cpp, XercesHandler.cpp and PlatformSpecificOS400.cpp. These and other mallocs/frees/strdups should be replaced.

-- 
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


[jira] Commented: (AXISCPP-640) mallocs in C++ engine

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-640?page=comments#action_12313109 ] 

nadir amra commented on AXISCPP-640:
------------------------------------

Please leave malloc/frees for OS/400 specific code for the time being...anything within ifdef __OS400__ or in platforms/os400 directory.

> mallocs in C++ engine
> ---------------------
>
>          Key: AXISCPP-640
>          URL: http://issues.apache.org/jira/browse/AXISCPP-640
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: Mark Whitlock
>     Assignee: Chinthana Danapala

>
> The Axis C++ engine should not use malloc/free/strdup. Instead it should use new/delete because mixing the two APIs causes memory problems. There are mallocs in MessageData.cpp, SoapDeSerializer.cpp, XercesHandler.cpp and PlatformSpecificOS400.cpp. These and other mallocs/frees/strdups should be replaced.

-- 
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


[jira] Resolved: (AXISCPP-640) mallocs in C++ engine

Posted by "Chinthana Danapala (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-640?page=all ]
     
Chinthana Danapala resolved AXISCPP-640:
----------------------------------------

    Fix Version: 1.6 Alpha
     Resolution: Incomplete

(Visible to axiscpp-developers)


> mallocs in C++ engine
> ---------------------
>
>          Key: AXISCPP-640
>          URL: http://issues.apache.org/jira/browse/AXISCPP-640
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: Mark Whitlock
>     Assignee: Chinthana Danapala
>      Fix For: 1.6 Alpha

>
> The Axis C++ engine should not use malloc/free/strdup. Instead it should use new/delete because mixing the two APIs causes memory problems. There are mallocs in MessageData.cpp, SoapDeSerializer.cpp, XercesHandler.cpp and PlatformSpecificOS400.cpp. These and other mallocs/frees/strdups should be replaced.

-- 
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


[jira] Assigned: (AXISCPP-640) mallocs in C++ engine

Posted by "Chinthana Danapala (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-640?page=all ]

Chinthana Danapala reassigned AXISCPP-640:
------------------------------------------

    Assign To: Chinthana Danapala

> mallocs in C++ engine
> ---------------------
>
>          Key: AXISCPP-640
>          URL: http://issues.apache.org/jira/browse/AXISCPP-640
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: Mark Whitlock
>     Assignee: Chinthana Danapala

>
> The Axis C++ engine should not use malloc/free/strdup. Instead it should use new/delete because mixing the two APIs causes memory problems. There are mallocs in MessageData.cpp, SoapDeSerializer.cpp, XercesHandler.cpp and PlatformSpecificOS400.cpp. These and other mallocs/frees/strdups should be replaced.

-- 
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


[jira] Closed: (AXISCPP-640) mallocs in C++ engine

Posted by "Adrian Dick (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-640?page=all ]
     
Adrian Dick closed AXISCPP-640:
-------------------------------


> mallocs in C++ engine
> ---------------------
>
>          Key: AXISCPP-640
>          URL: http://issues.apache.org/jira/browse/AXISCPP-640
>      Project: Axis-C++
>         Type: Bug

>   Components: Client - Engine
>     Reporter: Mark Whitlock
>     Assignee: Chinthana Danapala
>      Fix For: 1.6 Alpha

>
> The Axis C++ engine should not use malloc/free/strdup. Instead it should use new/delete because mixing the two APIs causes memory problems. There are mallocs in MessageData.cpp, SoapDeSerializer.cpp, XercesHandler.cpp and PlatformSpecificOS400.cpp. These and other mallocs/frees/strdups should be replaced.

-- 
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


[jira] Commented: (AXISCPP-640) mallocs in C++ engine

Posted by "Chinthana Danapala (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-640?page=comments#action_12313560 ] 

Chinthana Danapala commented on AXISCPP-640:
--------------------------------------------

I have removed the "malloc" and "free" code in SoapDeSerializer.cpp, XercesHandler.cpp files.
I have tested the changes with the full test cycle twice in windows, and got the result same as before the changes in both the time.
But MessageData.cpp file one place have "malloc" code which I couldn't replace by the "new". 
As Nadir Amra requested I didn't change the PlatformSpecificOS400.cpp file.


> mallocs in C++ engine
> ---------------------
>
>          Key: AXISCPP-640
>          URL: http://issues.apache.org/jira/browse/AXISCPP-640
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: Mark Whitlock
>     Assignee: Chinthana Danapala

>
> The Axis C++ engine should not use malloc/free/strdup. Instead it should use new/delete because mixing the two APIs causes memory problems. There are mallocs in MessageData.cpp, SoapDeSerializer.cpp, XercesHandler.cpp and PlatformSpecificOS400.cpp. These and other mallocs/frees/strdups should be replaced.

-- 
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