[Xorp-users] OpenBSD-3.6 segfaults

Pavlin Radoslavov pavlin@icir.org
Fri, 03 Dec 2004 17:34:03 -0800


> I am attempting to build xorp-1.0 on openbsd-3.6. I had some build
> failures in bgp/harness, but I'm failing some 'make test' tests with
> segfaults, and xorp_rtrmgr is segfaulting on startup.
> 
> Any ideas? I just want to run PIM-SM.. can I do that without
> xorp_rtrmgr?

Troy,

If you want to run PIM-SM on OpenBSD-3.6, currently you cannot do
it, because the vanilla 3.6 kernel doesn't have the PIM-SM support.
You can try some of the patches available from
http://www.icir.org/pavlin/.private/openbsd/
or
http://www.icir.org/pavlin/.private/openbsd/patches/

but those are against OpenBSD-current, so there is no guarantee they
will even apply cleanly for 3.6.

FYI, most of stuff in the incremental patches from the second URL
has been applied to the OpenBSD-current source tree. The last (most
important) patch is pending review from the OpenBSD folks.
Hopefully, sometime soon it will be applied to the source tree, and
will be part of the next OpenBSD release.

Nevertheless, we will look into the coredump trace below.

Thanks,
Pavlin

> bash-3.00# gdb bin/xorp_rtrmgr xorp_rtrmgr.core
> GNU gdb 6.1
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
> details.
> This GDB was configured as "i386-unknown-openbsd3.6"...
> Core was generated by `xorp_rtrmgr'.
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from /usr/lib/libcrypto.so.11.0...done.
> Loaded symbols for /usr/lib/libcrypto.so.11.0
> Reading symbols from /usr/lib/libstdc++.so.33.0...done.
> Loaded symbols for /usr/lib/libstdc++.so.33.0
> Reading symbols from /usr/lib/libm.so.2.0...done.
> Loaded symbols for /usr/lib/libm.so.2.0
> Reading symbols from /usr/lib/libc.so.34.1...done.
> Loaded symbols for /usr/lib/libc.so.34.1
> Reading symbols from /usr/libexec/ld.so...done.
> Loaded symbols for /usr/libexec/ld.so
> #0  0x1c10a1d9 in XrlError::error_code (this=0x4d) at xrl_error.cc:107
> 107         return _errlet->error_code();
> (gdb) bt
> #0  0x1c10a1d9 in XrlError::error_code (this=0x4d) at xrl_error.cc:107
> #1  0x1c0395ad in operator!= (e1=@0x4d, e2=@0x3c037648)
>     at ../libxipc/xrl_error.hh:239
> #2  0x1c13ddba in XrlFinderV0p2Client::unmarshall_register_finder_client
> (
>     this=0xcfbe2820, e=@0x4d, a=0x3c1566d0, cb=
>       {_M_ptr = 0x3c1566c0, _M_counter = 77}) at finder_xif.cc:41
> #3  0x1c14463f in XorpMemberCallback2B1<void, XrlFinderV0p2Client,
> XrlError const &, XrlArgs *, ref_ptr<XorpCallback2<void, XrlError const
> &, basic_string<char, string_char_traits<char>,
> __default_alloc_template<false, 0> > const *> > >::dispatch
> (this=0x3c15e3e0, a1=@0xcfbe2654, a2=0x3c1566d0)
>     at ../libxorp/callback_nodebug.hh:4930
> #4  0x1c0cf248 in FinderMessengerBase::dispatch_xrl_response
> (this=0x3c144e00,
>     seqno=1001, xe=@0xcfbe2654, args=0x3c1566d0) at
> finder_messenger.cc:51
> #5  0x1c0d5caf in FinderTcpMessenger::read_event (this=0x3c144e00,
> errval=0,
>     data=0x3c152f10 "Finder 0.2\nMsgType r\nSeqNo 1001\nMsgData 100 /
> \nout_cookie:txt=3b1ef21747f8a238", data_bytes=78) at
> finder_tcp_messenger.cc:69
> #6  0x1c0d20d1 in FinderTcpBase::read_callback (this=0x3c144e1c,
> ev=DATA,
>     buffer=0x3c152f10 "Finder 0.2\nMsgType r\nSeqNo 1001\nMsgData 100 /
> \nout_cookie:txt=3b1ef21747f8a238", buffer_bytes=78, offset=78) at
> finder_tcp.cc:168
> #7  0x1c0d3f2c in XorpMemberCallback4B0<void, FinderTcpBase,
> AsyncFileOperator::Event, unsigned char const *, unsigned int, unsigned
> int>::dispatch (
>     this=0x3c1566b0, a1=DATA,
>     a2=0x3c152f10 "Finder 0.2\nMsgType r\nSeqNo 1001\nMsgData 100 /
> \nout_cookie:txt=3b1ef21747f8a238", a3=78, a4=78) at
> ../libxorp/callback_nodebug.hh:8968
> ---Type <return> to continue, or q <return> to quit---
> #8  0x1c14d30e in AsyncFileReader::BufferInfo::dispatch_callback (
>     this=0xcfbe66fc, e=DATA) at asyncio.hh:183
> #9  0x1c14b9a6 in AsyncFileReader::complete_transfer (this=0x3c144e2c,
> err=0,
>     done=78) at asyncio.cc:107
> #10 0x1c14b88c in AsyncFileReader::read (this=0x3c144e2c, fd=6,
> m=SEL_RD)
>     at asyncio.cc:88
> #11 0x1c14ca40 in XorpMemberCallback2B0<void, AsyncFileReader, int,
> SelectorMask>::dispatch (this=0x3c1566d0, a1=6, a2=SEL_RD)
>     at ../libxorp/callback_nodebug.hh:4638
> #12 0x1c162582 in SelectorList::Node::run_hooks (this=0x3c09d0d8,
> m=SEL_RD,
>     fd=6) at selector.cc:98
> #13 0x1c160ed2 in SelectorList::select (this=0xcfbde4b0,
> timeout=0xcfbe899c)
>     at selector.cc:254
> #14 0x1c14f225 in EventLoop::run (this=0xcfbde4b0) at eventloop.cc:66
> #15 0x1c1069df in wait_until_xrl_router_is_ready (eventloop=@0xcfbecb58,
>     xrl_router=@0xcfbeec50) at xrl_router.cc:547
> #16 0x1c025e0e in Rtrmgr::run (this=0xcfbf0bf4) at main_rtrmgr.cc:264
> #17 0x1c0278d0 in main (argc=2, argv=0xcfbf0cf4) at main_rtrmgr.cc:490
> (gdb)
> (gdb)
> _______________________________________________
> Xorp-users mailing list
> Xorp-users@xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users