[Xorp-users] xorp_rtrmgr - Assertion failure

Sam Elstob samelstob@fastmail.fm
Tue, 28 Jun 2005 00:02:35 +0100


On Thu, 2005-06-23 at 16:23 +0100, Mark Handley wrote:
> >Managed to cause a failed assertion in XORP whilst starting up xorpsh.
> >Here is the output.  Any ideas?
> >
> >
> >[ 2005/06/23 01:01:23  INFO xorp_rtrmgr:5515 XRL +460 xrl_router.cc
> >send ] Resolving
> >xrl:finder://finder/finder_event_notifier/0.1/register_class_event_interest?re
> >quester_instance:txt=rtrmgr-d5b380331df952fe197fd3e85e843c92@192.168.1.32&clas
> >s_name:txt=xorpsh-5518-xen0
> >xorp_rtrmgr: ../sysdeps/generic/printf_fphex.c:163: __printf_fphex:
> >Assertion `*decimal != '\0' && decimalwc != L'\0'' failed.
> >[ 2005/06/23 01:01:23  ERROR xorp_fea:5516 CLI +115 xrl_cli_node.cc
> >finder_disconnect_event ] Finder disconnect event. Exiting
> >immediately...
> >[ 2005/06/23 01:01:23 INFO xorp_fea CLI ] CLI stopped
> >[ 2005/06/23 01:01:23  ERROR xorp_fea:5516 MFEA +192 xrl_mfea_node.cc
> >finder_disconnect_event ] Finder disconnect event. Exiting
> >immediately...
> >Aborted
> 
> If you've still got the core file, can you run gdb it, and give me a
> backtrace?
> 
>  - Mark

Mark

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