[Xorp-hackers] xorpsh crash

Ben Greear greearb at candelatech.com
Thu Oct 11 09:10:40 PDT 2007

I'm getting a repeatable crash in xorpsh (I have not yet added that patch
that Pavlin sent yesterday...this is just the latest cvs).

I think it may be related to the fix for the cli busy-spin when
scripting, probably the _clock member has been deleted or
otherwise corrupted:

(gdb) bt
#0  0x470c91a8 in main_arena () from /lib/libc.so.6
#1  0x08189375 in TimerList::current_time (this=0x470c9194, now=@0xbfa7a828) at timer.cc:246
#2  0x0818a7f1 in TimerNode::schedule_after (this=0x832fe60, wait=@0xbfa7a8e4, priority=9)
     at timer.cc:140
#3  0x0818aa26 in TimerList::new_oneoff_after (this=0x470c9194, wait=@0xbfa7a8e4, cb=@0xbfa7a8d8,
     priority=9) at timer.cc:328
#4  0x080eddc3 in EventLoop::new_oneoff_after (this=0x470c9190, wait=@0xbfa7a8e4, ocb=@0xbfa7a8d8,
     priority=9) at ../libxorp/eventloop.hh:369
#5  0x080e9855 in CliClient::schedule_process_input_data (this=0x8307660) at cli_node_net.cc:901
#6  0x080eb85f in CliClient::process_input_data (this=0x8307660) at cli_node_net.cc:880
#7  0x080ed6a9 in XorpMemberCallback0B0<void, CliClient>::dispatch (this=0x82ff958)
     at ../libxorp/callback_nodebug.hh:305
#8  0x0818afa2 in OneoffTimerNode2::expire (this=0x831b8d8) at timer.cc:184
#9  0x08189e4a in TimerList::expire_one (this=0xbfa849cc, worst_priority=9) at timer.cc:481
#10 0x08189fae in TimerList::run (this=0xbfa849cc) at timer.cc:428
#11 0x0817045c in EventLoop::run (this=0xbfa849c8) at eventloop.cc:114
#12 0x080c1cdf in XorpShell::run (this=0xbfa82a88, commands=@0xbfa84bf4) at xorpsh_main.cc:388
#13 0x080c3b69 in main (argc=1, argv=0xbfa84cb4) at xorpsh_main.cc:897

(gdb) frame 1
#1  0x08189375 in TimerList::current_time (this=0x470c9194, now=@0xbfa7a828) at timer.cc:246

(gdb) print _clock
$1 = (class ClockBase *) 0x470c91a0
(gdb) print *_clock
warning: can't find linker symbol for virtual table for `ClockBase' value
$2 = {_vptr.ClockBase = 0x470c9198}

If no one beats me to it, I'll try to figure this one out later today.


Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

More information about the Xorp-hackers mailing list