[Olsr-dev] upgrade 0.5.5 - 0.5.6-r2 with Segmentation fault

Patrick Grimm (spam-protected)
Sun Dec 7 16:00:26 CET 2008


Am Freitag, 24. Oktober 2008 09:13:51 schrieben Sie:
> patrick,
>
> first of all - your debug tarball is really the kind of information
> that developers need.
>
> it looks like your nameservice plugin is older than 0.5.6-r2.
> pls recompile it, reinstall them and do not forget to run ldconfig.
>
> what is broken is that the callback for the parsing code for nameservice
> messages is not the function that it ought to be.
> it literally calls into "somewhere" in the name service code wher it
> causes a segfault.

I have bisect the problem. 
I use hg clone http://gredler.at/hg/olsrd-0.5.6 and
e.g. hg revert --all -r 1470 
Here are the result:
rev 1469 OK
rev 1470 compile err
---
src/link_set.c: In function `olsr_expire_link_hello_timer':
src/link_set.c:494: warning: double format, different type arg (arg 4)
src/link_set.c: In function `olsr_print_link_set':
src/link_set.c:905: error: `nowtm' undeclared (first use in this function)
src/link_set.c:905: error: (Each undeclared identifier is reported only once
src/link_set.c:905: error: for each function it appears in.)
src/link_set.c:905: error: `now' undeclared (first use in this function)
src/link_set.c:912: error: `link_set' undeclared (first use in this function)
src/link_set.c:912: error: structure has no member named `next'
make: *** [src/link_set.o] Error 1
--
rev 1471 compile err
---
src/olsrd_copy.c: In function `olsr_timed_out':
src/olsrd_copy.c:61: error: `now' undeclared (first use in this function)
src/olsrd_copy.c:61: error: (Each undeclared identifier is reported only once
src/olsrd_copy.c:61: error: for each function it appears in.)
src/olsrd_copy.c: In function `olsr_get_timestamp':
src/olsrd_copy.c:103: error: `now' undeclared (first use in this function)
make[2]: *** [src/olsrd_copy.o] Error 1
---
rev 1472 segfault
---
NAME PLUGIN: Received Message from 104.8.0.51
Received signal 11 - shutting down
Deleting all routes...
Updating kernel routes...
Closing sockets...
Closing plugins...
Restoring network state

 <<<< olsr.org - 0.5.6pre - terminating >>>>
           http://www.olsr.org
---

I think the bug is in 1470:96526c477d56.
But thats a big Patch :-\ 
What can I do?

Greetings
                      Patrick




More information about the Olsr-dev mailing list