[Olsr-dev] OLSRd SegFault

Gabriel (spam-protected)
Wed Apr 20 21:47:11 CEST 2016


On 20/04/2016 21:34, Ferry Huberts wrote:
> 
> 
> On 20/04/16 21:29, Gabriel wrote:
>> Hi, apparently this is the the segmentation fault's day.
>>
>> On the same router of the previous email (Edgerouter MIPS) I was trying
>> to update olsrd to use the netjson plugin.
>>
>> I fetched the latest version from github and compiled it, but when i try
>> to run it (without loading netjson plugin) it dies with a Segmentation
>> Fault.
>>
>> The olsrd version is pre-0.9.1-git_564e1b1
>>
>> and this is the last lines it prints:
>>
>> IP addr (2-hop)  IP addr (1-hop)  Total cost
>> Adding 172.19.189.1=>172.19.191.3 to link set
>> Received signal Segmentation fault - shutting down
>> Deleting all routes...
>> RIB: del prefix 10.150.25.1/32 from 10.150.25.1
>> Closing sockets...
>> Closing plugins...
>> Restoring network state
>> Free all memory...
>>
>>
>> The olsrd version from apt (0.6.2) is working fine.
>>
>>
>> Any hints? is this version (0.9.1) backward compatible ?
> 
> 
> Always update olsrd AND all its plugins at the same time

Yes of course. I use the absolute path.


This is what i found in /var/log/messages:

Apr 20 19:21:53 ubnt olsrd[15029]: crash
Apr 20 19:21:53 ubnt olsrd[15029]: /usr/local/sbin/olsrd() [0x42eb64]
Apr 20 19:22:30 ubnt olsrd[15032]: olsrd exit: main


This is my conf:

(spam-protected):~# cat /etc/olsrd/olsrd.conf.netjson
AllowNoInt yes
RtTable 111
RtTableDefault 112
FIBMetric "flat"
LinkQualityLevel 2
LinkQualityAlgorithm "etx_ff"
OlsrPort 698
Willingness 3
NatThreshold 1.0
MainIp 10.150.25.1
IpVersion 4

Hna4
{
		10.150.25.0 255.255.255.0
}
	
		
				
LoadPlugin "/usr/local/lib/olsrd_arprefresh.so.0.1"
{
}
				
LoadPlugin "/usr/local/lib/olsrd_nameservice.so.0.3"
{
	PlParam "name" "santaMarta"
	PlParam "suffix" ".nnx"
}
						
LoadPlugin "/usr/local/lib/olsrd_txtinfo.so.0.1"
{
	PlParam "accept" "0.0.0.0"
}
						
LoadPlugin "/usr/local/lib/olsrd_mdns.so.1.0.1"
{
	PlParam "NonOlsrIf" "br-lan"
	PlParam "TTL-Check" "1"
	PlParam "Network-ID" "1"
}
										
LoadPlugin "/usr/local/lib/olsrd_jsoninfo.so.0.0"
{
	PlParam "accept" "0.0.0.0"
 	PlParam "port" "2007"
}

#LoadPlugin "/usr/local/lib/olsrd_netjson.so.1.0"
#{
#	PlParam "accept" "0.0.0.0"
#	PlParam "port" "2005"
#}
											
InterfaceDefaults
{
	Mode "mesh"
}
												
Interface "eth1.3"
{
}
												
Interface "eth1.2"
{
}											
														
Interface "eth1.4"	
{
}

Interface "eth1.5"
{
}	


Thanks, Gabriel





More information about the Olsr-dev mailing list