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 "Fred Preston (JIRA)" <ax...@ws.apache.org> on 2005/09/22 13:17:28 UTC

[jira] Created: (AXISCPP-834) ~xsd__hexBinary() needs to delete the contents of __ptr

~xsd__hexBinary() needs to delete the contents of __ptr
-------------------------------------------------------

         Key: AXISCPP-834
         URL: http://issues.apache.org/jira/browse/AXISCPP-834
     Project: Axis-C++
        Type: Bug
 Environment: n/a
    Reporter: Fred Preston


On the destructor of xsd__hexBinary() it needs to check if the __ptr value is not NULL and then delete it before returning.

-- 
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-834) ~xsd__hexBinary() needs to delete the contents of __ptr

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-834?page=comments#action_12356753 ] 

Dushshantha Chandradasa commented on AXISCPP-834:
-------------------------------------------------

with following changes to ~xsd__hexBinary() 

xsd__hexBinary::~xsd__hexBinary() {
	if ( __ptr )
		delete __ptr;
}


 AxisBench_TTest to crash on Windows with following output file.

 StringType StringType
Unknown exception has occured
Unknown exception has occured
Unknown exception has occured
Unknown exception has occured
Unknown exception has occured
Unknown exception on clean up: 
Unknown exception has occured
Unknown exception on clean up: 
Unknown exception has occured
Unknown exception on clean up: 
Unknown exception on clean up: 
Unknown exception has occured
Unknown exception on clean up: 
Unknown exception has occured
Unknown exception on clean up: 
Unknown exception on clean up: 
Unknown exception has occured
Unknown exception on clean up: 
Unknown exception has occured
Unknown exception on clean up: 
Unknown exception has occured
Unknown exception on clean up: 

----------------------------------TEST COMPLETE--------------------------------



> ~xsd__hexBinary() needs to delete the contents of __ptr
> -------------------------------------------------------
>
>          Key: AXISCPP-834
>          URL: http://issues.apache.org/jira/browse/AXISCPP-834
>      Project: Axis-C++
>         Type: Bug
>  Environment: n/a
>     Reporter: Fred Preston
>     Assignee: Dushshantha Chandradasa
>      Fix For: 1.6 Alpha

>
> On the destructor of xsd__hexBinary() it needs to check if the __ptr value is not NULL and then delete it before returning.

-- 
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-834) ~xsd__hexBinary() needs to delete the contents of __ptr

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-834?page=comments#action_12330558 ] 

Dushshantha Chandradasa commented on AXISCPP-834:
-------------------------------------------------

i found lots of coupling bitween classes that are using xsd__hexBinary ,therefore we cannot just delete this pointer. this will lead us  to recieve garbage instead of hex binary values. We have to change all the classes that use xsd__hexBinary to have of deep copy of above value.

> ~xsd__hexBinary() needs to delete the contents of __ptr
> -------------------------------------------------------
>
>          Key: AXISCPP-834
>          URL: http://issues.apache.org/jira/browse/AXISCPP-834
>      Project: Axis-C++
>         Type: Bug
>  Environment: n/a
>     Reporter: Fred Preston
>     Assignee: Dushshantha Chandradasa

>
> On the destructor of xsd__hexBinary() it needs to check if the __ptr value is not NULL and then delete it before returning.

-- 
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-834) ~xsd__hexBinary() needs to delete the contents of __ptr

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

    Resolution: Fixed

I think this works now. I changed AxisBench_TTest to suit the new memory management model and it appears to work fine. I have not run this under a memory leak finding tool though !

> ~xsd__hexBinary() needs to delete the contents of __ptr
> -------------------------------------------------------
>
>          Key: AXISCPP-834
>          URL: http://issues.apache.org/jira/browse/AXISCPP-834
>      Project: Axis-C++
>         Type: Bug
>  Environment: n/a
>     Reporter: Fred Preston
>     Assignee: Dushshantha Chandradasa
>      Fix For: 1.6 Alpha

>
> On the destructor of xsd__hexBinary() it needs to check if the __ptr value is not NULL and then delete it before returning.

-- 
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] Updated: (AXISCPP-834) ~xsd__hexBinary() needs to delete the contents of __ptr

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

John Hawkins updated AXISCPP-834:
---------------------------------

    Fix Version: 1.6 Alpha

> ~xsd__hexBinary() needs to delete the contents of __ptr
> -------------------------------------------------------
>
>          Key: AXISCPP-834
>          URL: http://issues.apache.org/jira/browse/AXISCPP-834
>      Project: Axis-C++
>         Type: Bug
>  Environment: n/a
>     Reporter: Fred Preston
>     Assignee: Dushshantha Chandradasa
>      Fix For: 1.6 Alpha

>
> On the destructor of xsd__hexBinary() it needs to check if the __ptr value is not NULL and then delete it before returning.

-- 
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-834) ~xsd__hexBinary() needs to delete the contents of __ptr

Posted by "Fred Preston (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-834?page=comments#action_12331995 ] 

Fred Preston commented on AXISCPP-834:
--------------------------------------

Could the fixer of this JIRA either create a new or incorporate into an existing test a test that would create a for this function so that we do not regress?

> ~xsd__hexBinary() needs to delete the contents of __ptr
> -------------------------------------------------------
>
>          Key: AXISCPP-834
>          URL: http://issues.apache.org/jira/browse/AXISCPP-834
>      Project: Axis-C++
>         Type: Bug
>  Environment: n/a
>     Reporter: Fred Preston
>     Assignee: Dushshantha Chandradasa
>      Fix For: 1.6 Alpha

>
> On the destructor of xsd__hexBinary() it needs to check if the __ptr value is not NULL and then delete it before returning.

-- 
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-834) ~xsd__hexBinary() needs to delete the contents of __ptr

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

Dushshantha Chandradasa reassigned AXISCPP-834:
-----------------------------------------------

    Assign To: Dushshantha Chandradasa

> ~xsd__hexBinary() needs to delete the contents of __ptr
> -------------------------------------------------------
>
>          Key: AXISCPP-834
>          URL: http://issues.apache.org/jira/browse/AXISCPP-834
>      Project: Axis-C++
>         Type: Bug
>  Environment: n/a
>     Reporter: Fred Preston
>     Assignee: Dushshantha Chandradasa

>
> On the destructor of xsd__hexBinary() it needs to check if the __ptr value is not NULL and then delete it before returning.

-- 
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-834) ~xsd__hexBinary() needs to delete the contents of __ptr

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


> ~xsd__hexBinary() needs to delete the contents of __ptr
> -------------------------------------------------------
>
>          Key: AXISCPP-834
>          URL: http://issues.apache.org/jira/browse/AXISCPP-834
>      Project: Axis-C++
>         Type: Bug

>  Environment: n/a
>     Reporter: Fred Preston
>     Assignee: Dushshantha Chandradasa
>      Fix For: 1.6 Alpha

>
> On the destructor of xsd__hexBinary() it needs to check if the __ptr value is not NULL and then delete it before returning.

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