[Olsr-dev] OSLRd2 segmentation fault

Henning Rogge (spam-protected)
Thu Apr 21 07:59:07 CEST 2016

On Thu, Apr 21, 2016 at 4:59 AM, Gabriel <(spam-protected)> wrote:
>> Using gdb I found out that the instruction causing the SEGFAULT was in
>> olsrv2_routing.c at line 598:
>> memcpy(&rtentry->last_originator, last_originator,
>> sizeof(*last_originator));
>> After the the SEGFAULT I printed the variable "last_originator" in gdb
>> and it was null.
>> I

Thank you for locating this place.

> Sorry, I forgot to explain what I've done:
> I just put an if statement before the instructions to copy the memory
> locations only if the src (last_originator) is not null.

Hmm... I think I see what happens.

For some reason the IPv6 address on the local node is still missing
when the other side sends a NHDP message.

Could you test the following attached patch? I think this one fixes
the original problem.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: olsrv2.patch
Type: text/x-patch
Size: 780 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20160421/2329d599/attachment.bin>

More information about the Olsr-dev mailing list