axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <sam...@wso2.com>
Subject Re: adb binding broken for lists
Date Mon, 17 Sep 2007 05:58:17 GMT
I fixed the bug. Please check now.

Thanks,
Samisa...

Plamen Neykov wrote:
> Hi Samisa, 
>
> this bug is gone - thank you very much!
> Unfortunately there is one more bug which causes the server to crash after 
> processing the request. The crash occurs in adb_calculate_free (my service is 
> called calculate). The reason for the crash is in the way how 
> adb_calculate_deserialize is implemented - I have two lists as parameters for 
> the ws call. In adb_calculate_deserialize the first parameter is initialised 
> with:
>
>                  
>                     /**
>                      * building param0 array
>                      */
>                      
>                        arr_list = axutil_array_list_create( env, 10);
>                      
>
>                      
> But when it comes to the second parameter no initialization is performed:
>
>                     /**
>                      * building param1 array
>                      */
>   
>                      
>                      /**
>                       * building param1 element
>                       */
>  
> and then uses the same arr_list to populate  the content of the second 
> parameter - which clearly overrides the content of the previous list! 
> When the second free is performed the list was freed already and it crashes 
> (well it looses some memory in the process too, but this is secondary ...)
>
> I'm attaching the wsdl here so that you can take look by yourself.
>
> Thanks,
> Plamen
>
>   

-- 
Samisa Abeysinghe : WSO2 WSF/PHP
"http://wso2.org/projects/wsf/php?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework%2FPHP&nbsp;-&nbsp;Open&nbsp;source&nbsp;PHP&nbsp;extention&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services&nbsp;in&nbsp;PHP"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message