axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henrik Nordberg (JIRA)" <>
Subject [jira] Commented: (AXISCPP-343) SIGSEGV deserializing an array of complex elements
Date Tue, 04 Oct 2005 19:47:48 GMT
    [ ] 

Henrik Nordberg commented on AXISCPP-343:

I think this issue was not solved correctly. I now get a crash in the dtor of generated classes
of type ArrayOfXXXX. Here is an example:

	/*delete any pointer and array members here*/
	if (item.m_Array != NULL)
		delete [] ((WsDatabaseColumn*)item.m_Array);

I get a crash on the delete[] line. I suspect it has something to do with this bug (AXISCPP-343).
I hope this can get resolved quickly since this is a big blocker for us, and we want to release
 - Henrik

> SIGSEGV deserializing an array of complex elements
> --------------------------------------------------
>          Key: AXISCPP-343
>          URL:
>      Project: Axis-C++
>         Type: Bug
>   Components: Serialization
>     Versions: 1.4 Final
>  Environment: RH9
>     Reporter: Unai Uribarri
>     Assignee: Dushshantha Chandradasa
>  Attachments: siaam.wsdl
> The function Axis_Create_* (in the following example, the mapItem
> object) in the stubs generated by wsdl2ws java tool generates a SIGSEGV
> when tring to enlarge an array of objects
>         mapItem* pNew = new mapItem[nSize];
>         memcpy(pNew, pObj, sizeof(mapItem)*nSize/2);
>         memset(pObj, 0, sizeof(mapItem)*nSize/2);
>         --> delete [] pObj; <-- SIGSEGV
> memset clears the virtual table pointer of the mapItem objects and the delete operator

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message