[Xorp-users] OpenBSD-3.6 segfaults

Troy Benjegerdes hozer@hozed.org
Tue, 7 Dec 2004 20:19:06 -0600


This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_kalmia.hozed.org-4945-1102472346-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Mon, Dec 06, 2004 at 07:39:41PM -0800, Pavlin Radoslavov wrote:
> > I applied the patches to the latest OPENBSD_3_6 cvs (stable branch), and
> > after fixing up a few things, got a kernel out. Some of the things
> > have already been applied to the 3.6 stable branch.
> > 
> > If you are interested, I have a patch against 3.6 at
> > http://scl.ameslab.gov/~troy/obsd-3.6-pim.patch
> 
> Thanks!
> 
> > Any ideas on the segfault? I'm waiting for a complete rebuild at the
> > moment on the off chance the PIM headers changing caused something
> > goofy. What should I start looking at?
> > 
> > (FYI, I used the stock openbsd gcc-2.95 compiler)
> 
> You may want to look into file xorp/BUILD_NOTES which contains some
> notes about OpenBSD as well. E.g., on OpenBSD-3.5 you may have to
> use the egcc/eg++ compiler.
> I doubt you will see any PIM header related problems, but let me
> know if you run into such problem.
> 
> BTW, what XORP version are you using? XORP-1.0 or XORP-CVS?
> The reason I ask you is because I just tried few days old XORP from
> CVS and I am getting the following errors on startup:

I am running XORP-1.0.
OpenBSD-3.6 also has the compiler bug. I build gcc-3.3.2 from ports, and
it is much happier now. Some fo the bgp/harness tests seem to fail, but 
a lot more works than with gcc-2.95.

Can you take a look at the included config file and tell me if this
looks right? The vlan127 interface is statically configured, and
connected to a Cisco router running PIM-SM. I want multicast traffic on
em1 to get propagated back up to the multicast RP.



--=_kalmia.hozed.org-4945-1102472346-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="config.boot"

/* $XORP: xorp/rtrmgr/config.boot.sample,v 1.16 2004/06/21 18:06:05 hodson Exp $ */


interfaces {
    interface vlan127 {
	description: "Router 127 interface"
	enabled: true
	default-system-config 
    }
    interface em1 {
	description: "Subnet 137 interface"
	enabled: true
	default-system-config 
    }
}

fea {
    /* enable-unicast-forwarding4: true */
    /* enable-unicast-forwarding6: true */
}

protocols {
    static {
	route4 147.155.128.0/19 {
	    nexthop: 147.155.127.1
	    metric: 1
	}
	mrib-route4 147.155.128.0/19 {
	    nexthop: 147.155.127.1
	    metric: 1
	}
    }
}

plumbing {
    mfea4 {
	enabled: true
	interface vlan127 {
	    vif vlan127 {
		enabled: true
	    }
	}
	interface register_vif {
	    vif register_vif {
		/* Note: this vif should be always enabled */
		enabled: true
	    }
	}
	traceoptions {
	    flag all {
		enabled: true
	    }
	}
    }

/*
    mfea6 {
	enabled: true
	interface dc0 {
	    vif dc0 {
		enabled: true
	    }
	}
	interface register_vif {
	    vif register_vif {
		enabled: true
	    }
	}
	traceoptions {
	    flag all {
		enabled: true
	    }
	}
    }
*/
}

protocols {
    igmp {
	enabled: true
	interface vlan127 {
	    vif vlan127 {
		enabled: true
	    }
	}
	traceoptions {
	    flag all {
		enabled: true
	    }
	}
    }
/*
    mld {
	enabled: true
	interface dc0 {
	    vif dc0 {
		enabled: true
	    }
	}
	traceoptions {
	    flag all {
		enabled: true
	    }
	}
    }
*/
}

protocols {
    pimsm4 {
	enabled: true
	interface vlan127 {
	    vif vlan127 {
		enabled: true
		/* dr-priority: 1 */
		/* alternative-subnet 10.40.0.0/16 */
	    }
	}
	interface register_vif {
	    vif register_vif {
		/* Note: this vif should be always enabled */
		enabled: true
	    }
	}

	bootstrap {
	    enabled: true
	    cand-bsr {
		scope-zone 224.0.0.0/4 {
		    /* is-scope-zone: false */
		    cand-bsr-by-vif-name: "vlan127"
		    /* bsr-priority: 1 */
		    /* hash-mask-len: 30 */
		}
	    }

	    cand-rp {
		group-prefix 224.0.0.0/4 {
		    /* is-scope-zone: false */
		    cand-rp-by-vif-name: "vlan127"
		    /* rp-priority: 192 */
		    /* rp-holdtime: 150 */
		}
	    }
	}

	switch-to-spt-threshold {
	    /* approx. 1K bytes/s (10Kbps) threshold */
	    enabled: true
	    interval-sec: 100
	    bytes: 102400
	}

	traceoptions {
	    flag all {
		enabled: true
	    }
	}
    }

/*
    pimsm6 {
	enabled: true
	interface dc0 {
	    vif dc0 {
		enabled: true
		dr-priority: 1
		alternative-subnet 40:40:40:40::/64
	    }
	}
	interface register_vif {
	    vif register_vif {
		enabled: true
	    }
	}

	static-rps {
	    rp 50:50:50:50:50:50:50:50 {
		group-prefix ff00::/8 {
		    rp-priority: 192
		    hash-mask-len: 126
		}
	    }
	}

	bootstrap {
	    enabled: true
	    cand-bsr {
		scope-zone ff00::/8 {
		    is-scope-zone: false
		    cand-bsr-by-vif-name: "dc0"
		    bsr-priority: 1
		    hash-mask-len: 30
		}
	    }

	    cand-rp {
		group-prefix ff00::/8 {
		    is-scope-zone: false
		    cand-rp-by-vif-name: "dc0"
		    rp-priority: 192
		    rp-holdtime: 150
		}
	    }
	}

	switch-to-spt-threshold {
	    enabled: true
	    interval-sec: 100
	    bytes: 102400
	}

	traceoptions {
	    flag all {
		enabled: true
	    }
	}
    }
*/
}

/*
 * Note: fib2mrib is needed for multicast only if the unicast protocols
 * don't populate the MRIB with multicast-specific routes.
 */
protocols {
    fib2mrib {
	enabled: true
    }
}



/*
 * See xorp/mibs/snmpdscripts/README on how to configure Net-SNMP in your host
 * before uncommenting the snmp section below.
 * Also check that the "bgp4_mib_1657.so" exists in the correct location.
 */

/*
protocols {
    snmp {
	mib-module bgp4_mib_1657 {
	    abs-path: "/usr/local/xorp/mibs/bgp4_mib_1657.so"
	}
    }
}
*/

--=_kalmia.hozed.org-4945-1102472346-0001-2--