output difference between 5.0.0-5.1.0

Benedikt Sveinsson benedikts at vodafone.is
Thu Nov 3 13:04:32 UTC 2016


Hi all

Sorry for the late delay

My main concern now is to get XR code working – having a strange core dump issue when export is called. (import works)

Our production hosts are running Ubuntu 14.04.3

gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)

note: If I compile on Centos 6.4 this does not happen.


test template:

@RtConfig set cisco_max_preference = 100

@RtConfig set cisco_aspath_acl_no = 115
@RtConfig set cisco_community_acl_no = 150
@RtConfig set cisco_prefix_acl_no = 150

! for testing – using both variables.

@RtConfig set prefix_acl_no = 10
@RtConfig set aspath_acl_no = 10
@RtConfig set community_acl_no = 10


@RtConfig set cisco_map_name = "CustX_out"
@RtConfig export AS12969 213.176.140.41 AS39472 213.176.140.42

@RtConfig set cisco_map_name = "CustX_in"
@RtConfig import AS12969 213.176.140.41 AS39472 213.176.140.42



run:
root at rtg:/usr/local/rtg/rtconfig/ccr01.c.is# /usr/local/bin/irrtoolset5.1.0/bin/rtconfig -f /var/lib/mediawiki/images/RPSL/AS12969:AS-PRIVATE-CUSTOMERS.txt -f /var/lib/mediawiki/images/RPSL/AS12969.txt -cisco_eliminate_dup_map_parts -cisco_no_default_afi -config ciscoxr <test




Segmentation fault (core dumped)

gdb /usr/local/bin/irrtoolset5.1.0/bin/rtconfig core

[New LWP 12751]
Core was generated by `/usr/local/bin/irrtoolset5.1.0/bin/rtconfig -f /var/lib/mediawiki/images/RPSL/A'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000417f76 in CiscoXRConfig::printCommunities (this=this at entry=0x6be040 <ciscoxrConfig>, cm=...) at f_ciscoxr.cc:370
370      if (done_permit[aclID]) {
(gdb)


Any idea how to get this compiled and running ?  I have looked briefly at the code, and this seems to be a buffer overflow – but I need to dig deeper to find the reason, strange this runs perfectly on CentOS !


We are going to run the two versions parallel at the moment, and are happy with the XR code that is generated.

And btw.. this is the master.zip version.




kveðja,

Benedikt Sveinsson
Burðarnet – Routing and Transmission
Sími: +354 599 9718 / +354 6699718
Email: benedikts at vodafone.is
Vodafone, Skútuvogi 2, 104 Reykjavík
www.vodafone.is







From: Daryl Collins <daryl at htb.com.au>
Date: Friday, 14 October 2016 at 22:07
To: Benedikt <benedikts at vodafone.is>
Cc: "irrtoolset at lists.isc.org" <irrtoolset at lists.isc.org>
Subject: Re: output difference between 5.0.0-5.1.0

Hi Bendedikt,

Whilst IOS XR support was introduced in version 5.1.0, there have been numerous important fixes to the XR output since then.  In the absence of an updated release, I would strongly suggest you run the latest master which is available here:

https://github.com/irrtoolset/irrtoolset/archive/master.zip

It may not fix your issue below, but we can work on that in parallel.

Cheers,
Daryl

On Fri, Oct 14, 2016 at 9:42 PM, Benedikt Sveinsson <benedikts at vodafone.is<mailto:benedikts at vodafone.is>> wrote:

We are currently running

rtconfig irrtoolset-5.0.0

I just compiled VFIS-irrtoolset-5.1.0-release for XR support


I notice one difference that I can’t put my finger on..

Generating from the same file

5.0.0
ip prefix-list pl_3600 deny 0.0.0.0/0<http://0.0.0.0/0> le 32

no ip community-list standard cl_3600
ip community-list standard cl_3600 deny 65000:20
ip community-list standard cl_3600 deny 65004:60300


5.1.0
ip prefix-list pl3600 deny 0.0.0.0/0<http://0.0.0.0/0> le 32

no ip community-list 3606
ip community-list 3606 deny 65000:20
ip community-list 3606 deny 65004:60300

This being a minor issue, It makes it hard for us to just move to the new code as we will be in a transition where we have bunch of old community lists
Tool works perfectly for us, but we need XR code generation.

So if anyone on the list knows a simple fix for this minor discrepancy I would welcome it! – then we can just diff the whole thing ;)



kveðja,

Benedikt Sveinsson
Burðarnet – Routing and Transmission
Sími: +354 599 9718<tel:%2B354%20599%209718> / +354 6699718<tel:%2B354%206699718>
Email: benedikts at vodafone.is<mailto:benedikts at vodafone.is>
Vodafone, Skútuvogi 2, 104 Reykjavík
www.vodafone.is<http://www.vodafone.is>









_______________________________________________
irrtoolset mailing list
irrtoolset at lists.isc.org<mailto:irrtoolset at lists.isc.org>
https://lists.isc.org/mailman/listinfo/irrtoolset



More information about the irrtoolset mailing list