axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjiva Weerawarana" <sanj...@opensource.lk>
Subject Re: SimpleAxisServer
Date Thu, 15 Jan 2004 15:28:46 GMT
Can you please submit a bug report with a patch for this? That'll
make sure it gets fixed for everyone ..

Thanks!

Sanjiva.

----- Original Message ----- 
From: "Roland Kosovsky" <nospam_kosovsky@abacus.ch>
To: "Apache AXIS C User List" <axis-c-user@ws.apache.org>
Sent: Thursday, January 15, 2004 9:04 PM
Subject: Re: SimpleAxisServer


> In my case the crash was caused by "sstr->so.http.op_headercount" that 
> was not set to 0.
> 
> mod_axis2.c, Ln 138:
> static int mod_axis_method_handler (request_rec *req_rec)
> ...
>     sstr = malloc(sizeof(Ax_soapstream));
>     memset(sstr, 0, sizeof(Ax_soapstream)); // <<<<< insert this line
> 
> This code has some more bugs, look at this:
> ...
> if(0 != process_request(sstr))
>     {
>         /*ap_rputs("SOAP Engine failed to response",req_rec);*/
>         return OK;  // #### sstr will never be freed!!!!!
>     }
>     if (sstr->so.http.op_headers)
>         free(sstr->so.http.op_headers);
>     free(sstr);
> 
> Why is the Ax_soapstream not on stack? It would be deleted for free.
> Roland
> 
> 
> 
> Datey, Ameya wrote:
> 
> >Hi All,
> >
> >I'm trying to run the simple axis server (running without apache), and
> >the program starts but then blows up if I do an HTTP request.
> >
> >I ran simpleaxisserver 8888 and then tried http://localhost:8888
> >
> >The program crashed & threw open my debugger.
> >
> >Any pointers?
> >Ameya
> >
> >Ps: Windows 2000 with ALL service packs
> >
> >
> >
> >  
> >
> 


Mime
View raw message