[olsr-dev] Re: [OLSR-users] Dot Draw segfaults on mipsel
Andreas Tønnesen
(spam-protected)
Fri Dec 3 23:04:36 CET 2004
Ahh.. I found the problem. Some structs had not been updated to reflect
new members from the link quality code. I've updated CVS, but since this
takes some time to get to the public cvs I've attatched a patch. olsrd
itself must be compiled with the USE_LINK_QUALITY symbol defined(as it
is by default) for this to work.
- Andreas
Andreas Tønnesen wrote:
>
> As expected, that did not work... The pcf_event should really not need
> to be global since the pointer is passed from the plugin to olsrd.
> Hopefully somebody else can help John out here.
>
> Hey - where is gdb when you need it ;-)
>
> - Andreas
>
> Andreas Tønnesen wrote:
>
>>
>> Forgot the mailinglist(again):
>>
>> Andreas Tønnesen wrote:
>> Hi John,
>>
>> My best guess is that pcf_event has to be listed in the global section
>> of the version-script.txt file.
>>
>> - Andreas
>>
>>> John Gorkos wrote:
>>>
>>>> More info:
>>>> (spam-protected):/lib# olsrd -f /etc/olsrd.conf -d 1
>>>>
>>>> *** olsr.org - 0.4.8-pre ***
>>>> Build date: Dec 3 2004
>>>> http://www.olsr.org
>>>>
>>>> Parsing file: "/etc/olsrd.conf"
>>>> *** olsrd configuration ***
>>>> Debug Level : 1
>>>> IpVersion : 4
>>>> No interfaces : ALLOWED
>>>> TOS : 0x10
>>>> Willingness : AUTO
>>>> IPC connections : 1
>>>> Host 127.0.0.1
>>>> Pollrate : 0.05
>>>> TC redundancy : 0
>>>> MPR coverage : 1
>>>> LQ level : 0
>>>> LQ window size : 10
>>>> Clear screen : no
>>>> Interfaces:
>>>> dev: "eth1"
>>>> IPv4 broadcast : AUTO
>>>> IPv6 addrtype : site-local
>>>> IPv6 multicast site/glbl : ff05::15/ff0e::1
>>>> HELLO emission/validity : 2.00/6.00
>>>> TC emission/validity : 5.00/15.00
>>>> MID emission/validity : 5.00/15.00
>>>> HNA emission/validity : 5.00/15.00
>>>> Plugins:
>>>> Name: "olsrd_dot_draw.so.0.3"
>>>> Using hysteresis:
>>>> Scaling : 0.50
>>>> Thr high/low : 0.80/0.30
>>>> HNA4 entries:
>>>> 0.0.0.0/0.0.0.0
>>>> Could not read APM info - setting default willingness(3)
>>>> Using IP version 4
>>>>
>>>> ---- Interface configuration ----
>>>>
>>>> Checking eth1:
>>>> Wireless interface detected
>>>> MTU: 1500
>>>> Interface eth1 set up for use with index 0
>>>> Address:192.168.7.1
>>>> Netmask:255.255.255.0
>>>> Broadcast address:192.168.7.255
>>>> Adding OLSR socket entry 6
>>>> New main address: 192.168.7.1
>>>> Adding OLSR socket entry 7
>>>> Loading plugins...
>>>>
>>>> ---------- Plugin loader ----------
>>>> Library: olsrd_dot_draw.so.0.3
>>>> OLSRD dot draw plugin 0.3 by Andreas Tønnesen
>>>> Checking plugin interface version.... 2 - OK
>>>> Trying to fetch register function....OK
>>>> Trying to fetch plugin IO function....OK
>>>> Trying to fetch param function....OK
>>>> Sending parameters...
>>>> Running registration function...
>>>> Registering pcf function
>>>> Adding OLSR socket entry 8
>>>> ---------- LIBRARY LOADED ----------
>>>>
>>>> Main address: 192.168.7.1
>>>>
>>>> Scheduler started - polling every 0.05 seconds
>>>> Willingness for 192.168.7.28 changed from 0 to 3 - UPDATING
>>>>
>>>> --- 21:12:30.78 ----------------------------------------------------
>>>> LINKS
>>>>
>>>> IP address hyst LQ lost total NLQ ETX
>>>> 192.168.7.28 0.000 0.000 0 0 0.000 0.00
>>>>
>>>> --- 21:12:30.78 ------------------------------------------------
>>>> NEIGHBORS
>>>>
>>>> IP address LQ NLQ SYM MPR MPRS will
>>>> 192.168.7.28 0.000 0.000 NO NO NO 3
>>>> Segmentation fault
>>>>
>>>>
>>>> On Friday 03 December 2004 15:10, John Gorkos wrote:
>>>>
>>>>> Gang-
>>>>> Due to a radio failure, I had to restructure my network in a
>>>>> hurry. Now,
>>>>> instead of the x86 PC I was using as a gateway, I've got a WRT54GS
>>>>> router
>>>>> in place, with the internet connected to vlan0 and the mesh on
>>>>> eth1. The
>>>>> problem I'm getting is that dot_draw segfaults on startup.
>>>>>
>>>>> the dot_draw plugin would segfault on initialization in .4.7, and
>>>>> makes it
>>>>> through initialization and then segfaults when the first connection
>>>>> is made
>>>>> under CVS .4.8.
>>>>>
>>>>> Does anyone have a working dot_draw plugin compiled for mipsel
>>>>> architecture? For better or worse, it has become a critical part of my
>>>>> network management suite and not having it really puts a crimp on my
>>>>> ability to effective manage my network.
>>>>>
>>>>> John Gorkos
>>>>> _______________________________________________
>>>>> olsr-users mailing list
>>>>> (spam-protected)
>>>>> https://www.olsr.org/mailman/listinfo/olsr-users
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> olsr-users mailing list
>>>> (spam-protected)
>>>> https://www.olsr.org/mailman/listinfo/olsr-users
>>>
>>>
>>>
>>>
>>
>
--
Andreas Tønnesen
http://www.olsr.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dot_draw_fix.diff
Type: text/x-patch
Size: 1346 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20041203/84523ab4/attachment.bin>
More information about the Olsr-dev
mailing list