[Xorp-users] xorp_rtrmgr - Assertion failure

Pavlin Radoslavov pavlin@icir.org
Mon, 27 Jun 2005 17:48:11 -0700


This particular bug was probably fixed already in CVS. Either get
the lastest code from CVS, or apply the following simple change to
libxipc/xrl_router.cc :

 #define trace_xrl(p, x) 						      \
 do {									      \
-    if (xrl_trace.on()) XLOG_INFO(string((p) + (x).str()).c_str());	      \
+    if (xrl_trace.on()) XLOG_INFO("%s", string((p) + (x).str()).c_str());     \
 } while (0)


Pavlin


> here is the backtrace
> 
> Looks like some non-printing characters got into the log at step #8,
> which caused the library to assert.
> 
> 
> #0  0xb7cf27c1 in kill () from /lib/libc.so.6
> #1  0xb7cf2545 in raise () from /lib/libc.so.6
> #2  0xb7cf3a88 in abort () from /lib/libc.so.6
> #3  0xb7cebbbf in __assert_fail () from /lib/libc.so.6
> #4  0xb7d18062 in parse_printf_format () from /lib/libc.so.6
> #5  0xb7d10aa7 in vfprintf () from /lib/libc.so.6
> #6  0xb7d30390 in vsnprintf () from /lib/libc.so.6
> #7  0x081395f0 in x_vasprintf (ret=0xbfff755c,
>     format=0x830aed4 "Resolving xrl:finder://xorpsh-11422-xen0/rtrmgr_client/0.2/config_changed?userid:u32=0&deltas:txt=++++interfaces+%7B%0A++++++++interface+eth0+%7B%0A", '+' <repeats 12 times>, "description:+\"data+interface\"%0A++++++++"...,
>     ap=0xbfff759c "\036n\026\b\nq\026\bd®í·øuÿ¿Ð¬.\bpÑ/\b\037N") at xlog.c:1119
> #8  0x08138e31 in xlog_record_va (log_level=XLOG_LEVEL_INFO, module_name=0x8166eaf "XRL",
>     where=0xbfff7600 "+460 xrl_router.cc send",
>     format=0x830aed4 "Resolving xrl:finder://xorpsh-11422-xen0/rtrmgr_client/0.2/config_changed?userid:u32=0&deltas:txt=++++interfaces+%7B%0A++++++++interface+eth0+%7B%0A", '+' <repeats 12 times>, "description:+\"data+interface\"%0A++++++++"...,
>     ap=0xbfff759c "\036n\026\b\nq\026\bd®í·øuÿ¿Ð¬.\bpÑ/\b\037N") at xlog.c:630
> #9  0x08138bf8 in xlog_info (module_name=0x8166eaf "XRL",
>     where=0xbfff7600 "+460 xrl_router.cc send",
>     fmt=0x830aed4 "Resolving xrl:finder://xorpsh-11422-xen0/rtrmgr_client/0.2/config_changed?userid:u32=0&deltas:txt=++++interfaces+%7B%0A++++++++interface+eth0+%7B%0A", '+' <repeats 12 times>, "description:+\"data+interface\"%0A++++++++"...) at xlog.c:441
> #10 0x08102931 in XrlRouter::send (this=0xbfffd720, xrl=@0xbfff95d0, user_cb=@0xbfff9590)
>     at xrl_router.cc:460
> #11 0x080bb700 in XrlRtrmgrClientV0p2Client::send_config_changed (this=0x82f3a44,
>     the_tgt=0x82eac74 "xorpsh-11422-xen0", userid=@0xbfff965c, deltas=@0xbfff96a0,
>     deletions=@0xbfff9670, cb=@0xbfff9680) at rtrmgr_client_xif.cc:93
> #12 0x080a4950 in XrlRtrmgrInterface::send_client_state (this=0x82f3a38, user_id=0,
>     user=0x82f5220) at xrl_rtrmgr_interface.cc:295
> #13 0x080aa7d0 in XorpMemberCallback0B2<void, XrlRtrmgrInterface, unsigned int, UserInstance*>::dispatch (this=0x8309830) at callback_nodebug.hh:898
> #14 0x0814c85c in OneoffTimerNode2::expire (this=0x82f6768) at timer.cc:177
> #15 0x0814bc57 in TimerList::run (this=0xbffff664) at timer.cc:372
> #16 0x0813e791 in EventLoop::run (this=0xbffff660) at eventloop.cc:71
> #17 0x0805f452 in Rtrmgr::run (this=0xbffff890) at main_rtrmgr.cc:339