[Olsr-dev] Olsrd 0.6.5.2 is freezing at start
Ferry Huberts
(spam-protected)
Wed Mar 27 18:38:19 CET 2013
This all sound very unfamiliar.
It would really help if you could dig in a bit deeper.
Maybe sprinkle a few printf's in the startup?
On 27/03/13 13:28, Douglas Diniz wrote:
> I just tested jsoninfo. When the olsrd is frozen, the jsoninfo plugin
> shows nothing. When olsrd is running fine, jsoninfo shows the normal
> information.
>
> Seems that olsrd is waiting for something.
> If I run:
>
> /home/olsrd -f /etc/olsrd.conf -d 0
>
> the Linux terminal remains locked (the olsrd doesn't become a daemon).
> And if I run the command several times, the process freezes all times.
> But after several attempts the process runs fine, and after that it
> works all subsequent attempts. until it freezes again...
>
> So seems that this versions is waiting for something when it starts. Do
> you know if something was added that could create this behavior?
>
> Thanks
>
> On Wed, Mar 27, 2013 at 1:59 PM, Henning Rogge <(spam-protected)
> <mailto:(spam-protected)>> wrote:
>
> What does the txtinfo plugin tell you about the known
> topology/neighbors/routes?
>
> Henning Rogge
>
> On Wed, Mar 27, 2013 at 5:50 PM, Douglas Diniz <(spam-protected)
> <mailto:(spam-protected)>> wrote:
> > Hi, sorry, I sent the wrong log. I need to compile Olsrd with the
> flag
> > "-msoft-float", otherwise the printf shows only 0's.
> > But this doesn't affect the olsrd internal working.
> > The correct log is:
> >
> > *** olsr.org <http://olsr.org> -
> 0.6.4-git_-hash_818b16a4ec8c80b704eadb83ce3cc45e - ***
> > Build date: 2013-03-27 13:40:47 on dgdiniz-desktop
> >
> > http://www.olsr.org
> >
> > Parsing file: "/etc/olsrd.conf"
> > Smart gateway system: disabled
> > Link quality fish eye 0
> >
> > Interface Defaultssetting ifs_in_curr_cfg = 0
> > HELLO interval: 1.00
> > HELLO validity: 10.00
> > TC interval: 5.00
> > TC validity: 60.00
> > MID interval: 5.00
> > MID validity: 60.00
> > HNA interval: 5.00
> > HNA validity: 60.00
> >
> > Mode: mesh
> > IPv4 broadcast/multicast : AUTO (d)
> > Mode : mesh (d)
> > IPv6 multicast : ff02::6d
> > HELLO emission/validity : 2.00/20.00
> > TC emission/validity : 5.00/300.00
> > MID emission/validity : 5.00/300.00
> > HNA emission/validity : 5.00/300.00
> >
> > Autodetect changes : yes
> > IPv4 broadcast/multicast : AUTO
> > Mode : mesh (d)
> > IPv6 multicast : ::
> > HELLO emission/validity : 1.00/10.00
> > TC emission/validity : 5.00/60.00
> > MID emission/validity : 5.00/60.00
> > HNA emission/validity : 5.00/60.00
> > Autodetect changes : no
> > olsr.org <http://olsr.org> -
> 0.6.4-git_-hash_818b16a4ec8c80b704eadb83ce3cc45e - detaching
> > from the current process...
> >
> > My olsrd.conf is:
> >
> >
> >
> >
> >
> > #
> > # OLSR.org routing daemon config file
> > # This file contains the usual options for an ETX based
> > # stationary network without fisheye
> > # (for other options see olsrd.conf.default.full)
> > #
> > # Lines starting with a # are discarded
> > #
> >
> > #### ATTENTION for IPv6 users ####
> > # Because of limitations in the parser IPv6 addresses must NOT
> > # begin with a ":", so please add a "0" as a prefix.
> >
> > ###########################
> > ### Basic configuration ###
> > ###########################
> > # keep this settings at the beginning of your first configuration
> file
> >
> > # Debug level (0-9)
> > # If set to 0 the daemon runs in the background, unless "NoFork"
> is set to
> > true
> > # (Default is 1)
> >
> > # DebugLevel 1
> >
> > # IP version to use (4 or 6)
> > # (Default is 4)
> >
> > # IpVersion 4
> >
> > #################################
> > ### OLSRd agent configuration ###
> > #################################
> > # this parameters control the settings of the routing agent which
> are not
> > # related to the OLSR protocol and it's extensions
> >
> > # FIBMetric controls the metric value of the host-routes OLSRd sets.
> > # - "flat" means that the metric value is always 2. This is the
> preferred
> > value
> > # because it helps the linux kernel routing to clean up older
> routes
> > # - "correct" use the hopcount as the metric value.
> > # - "approx" use the hopcount as the metric value too, but does
> only update
> > the
> > # hopcount if the nexthop changes too
> > # (Default is "flat")
> >
> > # FIBMetric "flat"
> >
> > #######################################
> > ### Linux specific OLSRd extensions ###
> > #######################################
> > # these parameters are only working on linux at the moment, but
> might become
> > # useful on BSD in the future
> >
> > # SrcIpRoutes tells OLSRd to set the Src flag of host routes to the
> > originator-ip
> > # of the node. In addition to this an additional localhost device
> is created
> > # to make sure the returning traffic can be received.
> > # (Default is "no")
> >
> > # SrcIpRoutes no
> >
> > # Specify the proto tag to be used for routes olsr inserts into
> kernel
> > # currently only implemented for linux
> > # valid values under linux are 1 .. 254
> > # 1 gets remapped by olsrd to 0 UNSPECIFIED (1 is reserved for ICMP
> > redirects)
> > # 2 KERNEL routes (not very wise to use)
> > # 3 BOOT (should in fact not be used by routing daemons)
> > # 4 STATIC
> > # 8 .. 15 various routing daemons (gated, zebra, bird, & co)
> > # (defaults to 0 which gets replaced by an OS-specific default value
> > # under linux 3 (BOOT) (for backward compatibility)
> >
> > # RtProto 0
> >
> > # Activates (in IPv6 mode) the automatic use of NIIT
> > # (see README-Olsr-Extensions)
> > # (default is "yes")
> >
> > # UseNiit yes
> >
> > # Activates the smartgateway ipip tunnel feature.
> > # See README-Olsr-Extensions for a description of smartgateways.
> > # (default is "no")
> >
> > SmartGateway no
> >
> > # Allows the selection of a smartgateway with NAT (only for IPv4)
> > # (default is "yes")
> >
> > # SmartGatewayAllowNAT yes
> >
> > # Defines what kind of Uplink this node will publish as a
> > # smartgateway. The existence of the uplink is detected by
> > # a route to 0.0.0.0/0 <http://0.0.0.0/0>, ::ffff:0:0/96 and/or
> 2000::/3.
> > # possible values are "none", "ipv4", "ipv6", "both"
> > # (default is "both")
> >
> > # SmartGatewayUplink "both"
> >
> > # Specifies if the local ipv4 uplink use NAT
> > # (default is "yes")
> >
> > # SmartGatewayUplinkNAT yes
> >
> > # Specifies the speed of the uplink in kilobit/s.
> > # First parameter is upstream, second parameter is downstream
> > # (default is 128/1024)
> >
> > # SmartGatewaySpeed 128 1024
> >
> > # Specifies the EXTERNAL ipv6 prefix of the uplink. A prefix
> > # length of more than 64 is not allowed.
> > # (default is 0::/0
> >
> > # SmartGatewayPrefix 0::/0
> >
> > ##############################
> > ### OLSR protocol settings ###
> > ##############################
> >
> > # HNA (Host network association) allows the OLSR to announce
> > # additional IPs or IP subnets to the net that are reachable
> > # through this node.
> > # Syntax for HNA4 is "network-address network-mask"
> > # Syntax for HNA6 is "network-address prefix-length"
> > # (default is no HNA)
> > Hna4
> > {
> > # Hna4 - Internet gateway:
> > #0.0.0.0 0.0.0.0
> > # Hna4 - more entries can be added:
> > #off168.10.0 255.255.255.0
> > #off168.11.0 255.255.255.0
> > #off168.12.0 255.255.255.0
> > #off168.13.0 255.255.255.0
> > #off168.14.0 255.255.255.0
> > }
> > Hna6
> > {
> > # Internet gateway
> > # 0:: 0
> > # specific small networks reachable through this node
> > # fec0:2200:106:0:0:0:0:0 48
> > }
> >
> > ################################
> > ### OLSR protocol extensions ###
> > ################################
> >
> > # Link quality algorithm (only for lq level 2)
> > # (see README-Olsr-Extensions)
> > # - "etx_float", a floating point ETX with exponential aging
> > # - "etx_fpm", same as ext_float, but with integer arithmetic
> > # - "etx_ff" (ETX freifunk), an etx variant which use all OLSR
> > # traffic (instead of only hellos) for ETX calculation
> > # - "etx_ffeth", an incompatible variant of etx_ff that allows
> > # ethernet links with ETX 0.1.
> > # (defaults to "etx_ff")
> >
> > # LinkQualityAlgorithm "etx_ff"
> >
> > # Fisheye mechanism for TCs (0 meansoff, 1 means on)
> > # (default is 1)
> >
> > LinkQualityFishEye 0
> >
> > #####################################
> > ### Example plugin configurations ###
> > #####################################
> > # Olsrd plugins to load
> > # This must be the absolute path to the file
> > # or the loader will use the following scheme:
> > # - Try the paths in the LD_LIBRARY_PATH
> > # environment variable.
> > # - The list of libraries cached in /etc/ld.so.cache
> > # - /lib, followed by /usr/lib
> > #
> > # the examples in this list are for linux, so check if the plugin is
> > # available if you use windows/BSD.
> > # each plugin should have a README file in it's lib subfolder
> >
> > # LoadPlugin "olsrd_txtinfo.dll"
> > LoadPlugin "olsrd_txtinfo.so.0.1"
> > {
> > # port number the txtinfo plugin will be listening, default 2006
> > # PlParam "port" "81"
> > # ip address that can access the plugin, use "0.0.0.0"
> > # to allow everyone
> > PlParam "Accept" "127.0.0.1"
> > }
> >
> > LoadPlugin "olsrd_dot_draw.so.0.3"
> > {
> > PlParam "Accept" "127.0.0.1"
> > }
> >
> > LoadPlugin "olsrd_jsoninfo.so.0.0"
> > {
> > # the default port is 9090 but you can change it like this:
> > PlParam "port" "9090"
> >
> > # You can set a "accept" single address to allow to connect to
> > # jsoninfo. If no address is specified, then localhost
> (127.0.0.1)
> > # is allowed by default. jsoninfo will only use the first
> "accept"
> > # parameter specified and will ignore the rest.
> >
> > # to allow a specific host:
> > #PlParam "accept" "172.29.44.23"
> > # if you set it to 0.0.0.0, it will accept all connections
> > PlParam "accept" "0.0.0.0"
> >
> > # specify a UUID for this node to track it for debugging
> > #PlParam "UUIDFile" "/etc/olsrd/olsrd.uuid"
> > }
> >
> > #############################################
> > ### OLSRD default interface configuration ###
> > #############################################
> > # the default interface section can have the same values as the
> following
> > # interface configuration. It will allow you so set common
> options for all
> > # interfaces.
> >
> > InterfaceDefaults {
> > # Ip4Broadcast 255.255.255.255
> > }
> >
> > ######################################
> > ### OLSRd Interfaces configuration ###
> > ######################################
> > # multiple interfaces can be specified for a single configuration
> block
> > # multiple configuration blocks can be specified
> >
> > # WARNING, don't forget to insert your interface names here !
> > Interface "wlan0"
> > {
> > # Interface Mode is used to prevent unnecessary
> > # packet forwarding on switched ethernet interfaces
> > # valid Modes are "mesh" and "ether"
> > # (default is "mesh")
> >
> > HelloInterval 1.0
> > HelloValidityTime 10.0
> > TcInterval 5.0
> > TcValidityTime 60.0
> > MidInterval 5.0
> > MidValidityTime 60.0
> > HnaInterval 5.0
> > HnaValidityTime 60.0
> >
> > Mode "mesh"
> >
> > }
> >
> >
> > On Wed, Mar 27, 2013 at 12:41 PM, Henning Rogge
> <(spam-protected) <mailto:(spam-protected)>>
> > wrote:
> >>
> >> Default and interface timings all zero? That sounds badly wrong.
> >>
> >> Can you post your olsr config file?
> >>
> >> Henning
> >>
> >>
> >> On Wed, Mar 27, 2013 at 4:38 PM, Douglas Diniz
> <(spam-protected) <mailto:(spam-protected)>> wrote:
> >> > Hi, I was using Olsrd 0.6.4 and now I updated to 0.6.5.2.
> >> > I'm cross-compiling to PowerPc.
> >> >
> >> > Now when I run "olsrd -f /etc/olsrd.conf" the process freezes,
> and stops
> >> > at
> >> > this point:
> >> >
> >> > *** olsr.org <http://olsr.org> -
> 0.6.5.2-git_-hash_64c0ebc7d623ac4986be69c7f7130d13 -
> >> > ***
> >> > Build date: 2013-03-27 11:50:13 on dgdiniz-desktop
> >> > http://www.olsr.org
> >> >
> >> >
> >> > Sometimes the process starts fine, but most of the time the
> process
> >> > stops at
> >> > this point.
> >> > Other times the process continue to run after some seconds,
> but most of
> >> > time
> >> > it freezes for a long time.
> >> >
> >> >
> >> > Olsrd version 0.6.4 starts fine every time:
> >> >
> >> > *** olsr.org <http://olsr.org> -
> 0.6.4-git_-hash_9297fc2b2ddda43b84f0e26d5f2e06be - ***
> >> > Build date: 2012-11-16 11:57:22 on dgdiniz-desktop
> >> > http://www.olsr.org
> >> >
> >> > Parsing file: "/etc/olsrd.conf"
> >> > Smart gateway system: disabled
> >> > Link quality fish eye 0
> >> >
> >> > Interface Defaultssetting ifs_in_curr_cfg = 0
> >> > HELLO interval: 0.00
> >> > HELLO validity: 0.00
> >> > TC interval: 0.00
> >> > TC validity: 0.00
> >> > MID interval: 0.00
> >> > MID validity: 0.00
> >> > HNA interval: 0.00
> >> > HNA validity: 0.00
> >> > Mode: mesh
> >> > IPv4 broadcast/multicast : AUTO (d)
> >> > Mode : mesh (d)
> >> > IPv6 multicast : ff02::6d
> >> > HELLO emission/validity : 0.00L�/0.00(null)
> >> > TC emission/validity : 0.00L�/0.00(null)
> >> > MID emission/validity : 0.00L�/0.00(null)
> >> > HNA emission/validity : 0.00L�/0.00(null)
> >> > Autodetect changes : yes
> >> > IPv4 broadcast/multicast : AUTO
> >> > Mode : mesh (d)
> >> > IPv6 multicast : ::
> >> > HELLO emission/validity : 0.00L�/0.00(null)
> >> > TC emission/validity : 0.00L�/0.00(null)
> >> > MID emission/validity : 0.00L�/0.00(null)
> >> > HNA emission/validity : 0.00L�/0.00(null)
> >> > Autodetect changes : no
> >> > olsr.org <http://olsr.org> -
> 0.6.4-git_-hash_9297fc2b2ddda43b84f0e26d5f2e06be -
> >> > detaching
> >> > from the current process...
> >> >
> >> >
> >> >
> >> > Someone knows what is happening?
> >> >
> >> > Thanks
> >> >
> >> > --
> >> > Olsr-dev mailing list
> >> > (spam-protected) <mailto:(spam-protected)>
> >> > https://lists.olsr.org/mailman/listinfo/olsr-dev
> >>
> >>
> >>
> >> --
> >> We began as wanderers, and we are wanderers still. We have lingured
> >> long enough on the shores of the cosmic ocean. We are ready at
> last to
> >> set sail for the stars - Carl Sagan
> >
> >
> >
> >
>
>
>
> --
> We began as wanderers, and we are wanderers still. We have lingured
> long enough on the shores of the cosmic ocean. We are ready at last to
> set sail for the stars - Carl Sagan
>
>
>
>
> --
> -------------------------------------------------------------------
> Douglas Gameiro Diniz
> Engenheiro de Computação - 2003 - UNICAMP
>
> Mobile: (19) 92158777
> Gtalk: dgdiniz
> Msn: (spam-protected) <mailto:(spam-protected)>
>
>
--
Ferry Huberts
More information about the Olsr-dev
mailing list