Re: [Devel] nathelper coredump ;(

Ingo Wolfsberger iwolfsberger at gmx.net
Tue Jul 19 14:25:09 CEST 2005


Line 240 is line 2040, sorry ;)


> I have a "strange" nathelper problem:
> With one contact in the location db it works ok, with 2 contacts (they are
> nearly the same) ser crashes in the natpinger.
> 
> Program terminated with signal 11, Segmentation fault.
> (gdb) backtrace
> #0  nh_timer (ticks=5, param=0x0) at nathelper.c:2040
> #1  0x08088469 in timer_ticker () at timer.c:141
> #2  0x08062c12 in main_loop () at main.c:1093
> #3  0x080644eb in main (argc=15, argv=0xbfe4f204) at main.c:1564
> 
> 
> nathelper.c:
> ---sip---
>         while (1) {
>                 LOG(L_ERR, "nathelper: in while\n");
>                 memcpy(&(c.len), cp, sizeof(c.len));
>                 if (c.len == 0)
>                         break;
>                 c.s = (char*)cp + sizeof(c.len);
>                 cp =  (char*)cp + sizeof(c.len) + c.len;
> line 240        memcpy( &send_sock, cp, sizeof(send_sock));
>                 cp += sizeof(send_sock);
>                 memcpy( &flags, cp, sizeof(flags));
>                 cp += sizeof(flags);
> ---snap---
> 
> The second time in while it crashes, cp does not seem to be valid.
> Currently I have no idea why. This part of the codes has not been changed
> for a while.
> The problem occurs regardless if I use sip_natping or not.
> 
> bye,
>    Ingo
> 
> -- 
> 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
> +++ GMX - die erste Adresse f�r Mail, Message, More +++
> 
> _______________________________________________
> Devel mailing list
> Devel at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel
> 

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl



More information about the Devel mailing list