[Klone-users] Problem request_get_postarg

Stefano Barbato barbato at koanlogic.com
Wed May 14 17:52:56 EDT 2008


Hi Mickael,

the backtrace seems strange to me; there should not be any way to set  
a variable without setting its name so the u_string_c pointed by the  
backtrace should never be executed (the for loop around the offending  
line in vars.c:338 should guarantee such execution flow).

is the "myvar" variable set? how did you set "myvar" (using a form,  
with vars_add(), etc.)?

s


On 14/mag/08, at 18:42, Mickael Auger wrote:

> Hi,
>
> I use the "request_get_postarg" method, but my kloned process is  
> killed after use it.
> Here is my gdb backtrace :
> ==========================
> Program received signal SIGSEGV, Segmentation fault.
> u_string_c (s=0x6e652d32) at toolbox/str.c:103
> 103         return s->data;
> (gdb) bt
> #0  u_string_c (s=0x6e652d32) at toolbox/str.c:103
> #1  0xaa0b18 in vars_geti (vs=0x90a160, var_name=0x9bc365 "myvar",  
> i=0) at vars.c:338
> #2  0xaa0bfa in vars_get (vs=0x90a160, var_name=0x9bc365 "myvar") at  
> vars.c:367
> #3  0xa99a5e in request_get_postarg (rq=0x90a008, name=0x9bc365  
> "myvar") at request.c:304
> #4  0xaadf8a in exec_page (rq=0x90a008, rs=0x90a200, ses=0x9513f0)
>     at /home/all_user/ug_ma/ug_web-m68k-v2/webapp/www/index.kl1:111
> #5  0xa8e5fe in supemb_serve_dynamic (rq=0x90a008, rs=0x90a200,  
> e=0x9c8288) at sup_emb.c:254
> #6  0xa8e850 in supemb_serve (rq=0x90a008, rs=0x90a200) at sup_emb.c: 
> 299
> #7  0xa8d086 in broker_serve (b=0xbe7340, h=0xbe7310, rq=0x90a008,  
> rs=0x90a200) at broker.c:72
> #8  0xa8b290 in http_serve (h=0xbe7310, fd=6) at http.c:587
> #9  0xa8c36c in http_backend_serve (be=0xbe72b8, fd=6) at http.c:849
> #10 0xaa6732 in backend_serve (be=0xbe72b8, fd=6) at backend.c:129
> #11 0xa82cb2 in server_be_serve (s=0xd98008, be=0xbe72b8, ad=6) at  
> server.c:653
> #12 0xa83508 in server_dispatch (s=0xd98008, fd=5) at server.c:811
> #13 0xa83eb0 in server_loop (s=0xd98008) at server.c:979
> #14 0xa85f34 in app_run () at main.c:142
> #15 0xa86436 in main (argc=2, argv=0x9ffefc) at entry.c:408
> #16 0xac648a in __uClibc_start_main ()
> #17 0xac64ae in __uClibc_main ()
> #18 0xa80054 in __exit ()
> #19 0xda96ae in ?? ()
> #20 0x48d7001c in ?? ()
> Ignoring packet error, continuing...
> Reply contains invalid hex digit 116
> ==========================
>
> The "s" parameter from "vars_geti" function is NULL at a moment.
>
> Have you an idea ?
>
> Thanks.
>
> PS: I don't test valgrind for the moment.
> -- 
> Mickaël AUGER
> mickael.auger at gmail.com  
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users





More information about the klone-users mailing list