bird-1.5.0-1.x86_64 crasches quite often on reconfiguration including renaming BGP protocols due to bad set of CFLAGS passed on compilation

Bartek Radwan groups at sq9mev.info
Mon Mar 21 14:22:57 CET 2016


bird-1.5.0-1.x86_64 crasches quite often on reconfiguration including 
renaming BGP protocols due to bad set of CFLAGS passed on compilation

Hi PLD Developers,

I'm running two bird instances serving mostly as BGP routers, both of 
them have several BGP sessions setablished.
Few days ago i've renamed some of the protocols to reflect comapny 
naming standards.

This massive reconfiguration caused segfault of bird.

Bird developers did not reproduced this error with fresh 1.5.0 [1], so 
i've stgarted to look for differences during build time between vanilla 
bird and PLD bird - the difference is in CFALGS passed during build.

Bird vanilla has been adding  -fno-strict-overflow and 
-fno-strict-aliasing for about three years [2], and as far as i can see 
adding them (attached patch) to CFLAGS provided by PLD fixes the problem.

Ondrej Zaicek says:

> Although -fwrapv more-or-less supersedes
> -fno-strict-overflow, so just with -fno-strict-aliasing should work too.

but attached ptach adds -fno-strict-overflow too just to be more 
consistent with bird mainstream.


1. http://trubka.network.cz/pipermail/bird-users/2016-March/010270.html
2. 
https://gitlab.labs.nic.cz/labs/bird/commit/efd6d12b975441c7e1875a59dd9e0f3db7e958cb


-- 
Regards,
Bartek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bird_cflags.patch
Type: text/x-patch
Size: 693 bytes
Desc: not available
URL: </mailman/pipermail/pld-devel-en/attachments/20160321/bc7e8b1d/attachment.bin>


More information about the pld-devel-en mailing list