[OpenSIPS-Devel] trying to examine presence/timer crash

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Sep 28 09:43:12 CEST 2010


Juha Heinanen wrote:
> Bogdan-Andrei Iancu writes:
>
>   
>> in frame 1, try to print:
>>
>> p (struct prep_stmt*)(*(conn)->curr_ps)
>>
>> p ((struct prep_stmt*)(*(conn)->curr_ps))->ctx
>>     
>
> same thing, won't work:
>
> (gdb) p (struct prep_stmt*)(*(conn)->curr_ps)
> Cannot access memory at address 0x4
>   
So I should understand that conn->curr_ps is 4 ? This is strange as the 
bt shows the processing going further where this *conn->curr_ps is 
used.....maybe the "4" value is a side-effect of the original bug......

if I make a small patch to print some logs at runtime (to try to hunt 
done this issue), would it be possible to run it ?

Regards,
Bogda

> (gdb) p ((struct prep_stmt*)(*(conn)->curr_ps))->ctx
> Cannot access memory at address 0x4
>
> -- juha
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro




More information about the Devel mailing list