[Olsr-dev] Segmentation violation

Sven-Ola Tücke (spam-protected)
Wed May 21 08:52:01 CEST 2008


Yep. Tip does not work. Hacking in the init func does not help either (see patch). Here's the output.

(spam-protected):/usr/src/olsrd-00dca9a3d6f8# make CC="gcc -ggdb" all libs
[...]
(spam-protected):/usr/src/olsrd-00dca9a3d6f8# gdb --args ./olsrd -f /etc/olsrd.conf.debug -d 9
[...]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210669392 (LWP 19390)]
0xb7ddcac9 in strcasecmp () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7ddcac9 in strcasecmp () from /lib/tls/i686/cmov/libc.so.6
#1  0x0805779b in avl_strcasecmp (str1=0x0, str2=0x80871a0) at src/lq_plugin.c:60
#2  0x0804f4dc in avl_find_rec (node=0x8087180, key=0x0, comp=0x8057784 <avl_strcasecmp>) at src/common/avl.c:113
#3  0x0804f5ad in avl_find (tree=0x80809f0, key=0x0) at src/common/avl.c:140
#4  0x080578a5 in activate_lq_handler (name=0x0) at src/lq_plugin.c:107
#5  0x080577ee in init_lq_handler_tree () at src/lq_plugin.c:71
#6  0x0805d830 in olsr_init_tables () at src/olsr.c:253
#7  0x08058ecb in main (argc=3, argv=0xbfecae6c) at src/main.c:371

// Sven-Ola

Am Mittwoch 21 Mai 2008 08:20:50 schrieb Henning Rogge:
> Am Mittwoch 21 Mai 2008 07:26:30 schrieb Henning Rogge:
> > Hannes, we have a circular dependency in the recent lq-plugin
> > initialization code.
>
> Just checked all built in plugins, none is calling the internal tables of
> olsrd during initialization. Maybe we could make this a policy and do
> plugin initialization earlier ?
>
> Henning
>
>
> *************************************************
> Diplom Informatiker Henning Rogge
> Forschungsgesellschaft für
> Angewandte Naturwissenschaften e. V. (FGAN)
> Neuenahrer Str. 20, 53343 Wachtberg, Germany
> Tel.: 0049 (0)228 9435-961
> Fax: 0049 (0)228 9435-685
> E-Mail: (spam-protected)
> Web: www.fgan.de
> ************************************************
> Sitz der Gesellschaft: Bonn
> Registergericht: Amtsgericht Bonn VR 2530
> Vorstand: Dr. rer. nat. Ralf Dornhaus (Vors.), Prof. Dr. Joachim Ender
> (Stellv.)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 101-olsrd-fixlqfpminit.patch
Type: text/x-diff
Size: 447 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20080521/f50707c4/attachment.patch>


More information about the Olsr-dev mailing list