[Olsr-dev] segfault in -r3 reproduced

L. Aaron Kaplan (spam-protected)
Sat Dec 6 14:26:06 CET 2008


compiled on tunnel.wien.funkfeuer.at, 64bit machine:


config file:
------------------------------------------------------------------------ 
--------
DebugLevel              0
IpVersion               4
AllowNoInt              yes
Pollrate                0.025
TcRedundancy            2
MprCoverage             5
LinkQualityFishEye      1
LinkQualityDijkstraLimit 0 3.0
RtTable 111
#RtTableDefault 112

LoadPlugin "olsrd_httpinfo.so.0.1"
{
         PlParam     "port"   "8000"
         PlParam     "Net"    "0.0.0.0 0.0.0.0"
}
LoadPlugin "olsrd_txtinfo.so.0.1"
{
         PlParam     "port"   "81"
         PlParam     "Accept"   "78.41.115.163"
}
#0.5.6++
LinkQualityAlgorithm    "etx_ff"


FIBMetric               "flat"
LoadPlugin "olsrd_watchdog.so.0.1"
{
         PlParam "file" "/tmp/olsrd.watchdog"
         PlParam "interval" "5"
}
#LoadPlugin "olsrd_dot_draw.so.0.3"
#{
#       PlParam "Accept" "127.0.0.1"
#}

LinkQualityLevel 2
UseHysteresis no
Interface "eth1" "tap01" "tap02" "tap03" "tap04" "tap05" "tap06"  
"tap07" "tap08"
  "tap09" "tap10" "tap11" "tap12" "tap13" "tap14" "tap15" "tap16"  
"tap17" "tap18"
  "tap19" "tap20" "tap21" "tap22" "tap23" "tap24" "tap25" "tap26"  
"tap27" "tap28"
  "tap29" "tap30" "tap31" "tap32" "tap34" "tap35" "tap36" "tap37"  
"tap38" "tap39"
  "tap40" "tap41" "tap42" "tap43" "tap44" "tap45"
{
         HelloInterval           9.0
         HelloValidityTime       125.0
         TcInterval              6.0
         TcValidityTime          375.0
         MidInterval             50.0
         MidValidityTime         375.0
         HnaInterval             50.0
         HnaValidityTime         375.0
         Ip4Broadcast 255.255.255.255
         #limited bandwith to liechtiwcht
         LinkQualityMult 193.238.158.154 0.9
         #has to many neighbours (osbridges to zelt), would get more  
than half of
  the entire network (-> too much for one router)
         LinkQualityMult 193.238.159.123 0.3
}

Hna4
{
#nord27-mobile nonolsr tunnel
         193.238.159.9   255.255.255.255
#       193.238.158.154   255.255.255.255
#tunnelserver also announces internet connectivity, as he is also  
secondary free
nt gateway for subway (via ospf)
         0.0.0.0         0.0.0.0
         0.0.0.0         128.0.0.0
         128.0.0.0       128.0.0.0
         193.238.157.0   255.255.255.128
         78.41.115.128   255.255.255.128
}


called olsr via:
------------------------------------------------------------------------ 
------
gdb
set args -f /etc/olsrd.conf -d 0 -nofork
run
...
backtrace


backtrace:
------------------------------------------------------------------------ 
-----
Starting program: /home/markus/olsrd/olsrd-0.5.6-r3/olsrd -f /etc/ 
olsrd.conf -d 0 -nofork
[Thread debugging using libthread_db enabled]
[New Thread 47720100218576 (LWP 19479)]

  *** olsr.org - 0.5.6-r3 ***
  Build date: 2008-12-06 13:20:00 on tunnel
  http://www.olsr.org

Parsing file: "/etc/olsrd.conf"
---------- LOADING LIBRARY olsrd_watchdog.so.0.1 ----------
Checking plugin interface version:  5 - OK
---------- LIBRARY olsrd_watchdog.so.0.1 LOADED ----------

---------- LOADING LIBRARY olsrd_txtinfo.so.0.1 ----------
OLSRD txtinfo plugin 0.1 by Lorenz Schori
Checking plugin interface version:  5 - OK
---------- LIBRARY olsrd_txtinfo.so.0.1 LOADED ----------

---------- LOADING LIBRARY olsrd_httpinfo.so.0.1 ----------
Httpinfo olsrd plugin 0.1 by Andreas Tonnesen
Checking plugin interface version:  5 - OK
---------- LIBRARY olsrd_httpinfo.so.0.1 LOADED ----------

-- ALL PLUGINS LOADED! --

olsrd: src/lq_plugin.c:426: olsr_malloc_hello_neighbor: Assertion ` 
(const char *)h + sizeof(*h) == (const char *)h->linkquality' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 47720100218576 (LWP 19479)]
0x00002b66b37e607b in raise () from /lib/libc.so.6
(gdb) bt
#0  0x00002b66b37e607b in raise () from /lib/libc.so.6
#1  0x00002b66b37e784e in abort () from /lib/libc.so.6
#2  0x00002b66b37dfaf4 in __assert_fail () from /lib/libc.so.6
#3  0x0000000000414484 in olsr_malloc_hello_neighbor (id=0x43d156  
"HELLO deserialization")
     at src/lq_plugin.c:426
#4  0x0000000000422da1 in deserialize_hello (hello=0x7ffff7621820,  
ser=0x54bd7c)
     at src/process_package.c:359
#5  0x0000000000422ef1 in olsr_input_hello (ser=0x54bd7c,  
inif=0x566220, from=0x7ffff7621a90)
     at src/process_package.c:383
#6  0x000000000041f7aa in parse_packet (olsr=0x54bc00, size=580,  
in_if=0x566220,
     from_addr=0x7ffff7621a90) at src/parser.c:353
#7  0x000000000041fb94 in olsr_input (fd=16) at src/parser.c:454
#8  0x00000000004269aa in olsr_poll_sockets () at src/socket_parser.c: 
187
#9  0x0000000000425708 in olsr_scheduler () at src/scheduler.c:135
#10 0x0000000000416415 in main (argc=4, argv=0x7ffff7622e18) at src/ 
main.c:393







More information about the Olsr-dev mailing list