[ 
http://issues.apache.org/jira/browse/AXISCPP-343?page=comments#action_12332538 
] 

Henrik Nordberg commented on AXISCPP-343:
-----------------------------------------

Well my problem still hasn't gone away.

I regenerated the stubs from the WSDL and it still crashes on that same line.

Also,

void reset();

is missing from the generated .hpp files (it is defined in the .cpp files, but 
needs to be declared in the .hpp files).

I really would like this to be fixed. The problem may or may not be in the 
above array resizing code.
I am attaching the WSDL file that has functions that cause this error. Would it 
be possible for you to use it as a test case? You could try calling the 
GetDrivers() function, for example. Just create and return a dummy array of a 
few items. It crashes the second time it is invoked (when the dtor is called).

Thanks
 - Henrik

> SIGSEGV deserializing an array of complex elements
> --------------------------------------------------
>
>          Key: AXISCPP-343
>          URL: http://issues.apache.org/jira/browse/AXISCPP-343
>      Project: Axis-C++
>         Type: Bug
>   Components: Serialization
>     Versions: 1.4 Final
>  Environment: RH9
>     Reporter: Unai Uribarri
>     Assignee: Nadir Amra
>      Fix For: 1.6 Alpha
>  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 crash.

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

Reply via email to