[Xorp-hackers] xorpsh crash

Pavlin Radoslavov pavlin at icir.org
Thu Oct 11 14:03:49 PDT 2007

Ben Greear <greearb at candelatech.com> wrote:

> 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).

Is there a simple procedure how to repeat the crash?

> 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:

The particular warning you are seeing below is probably an artifact
of the C++ inheritance for the SystemClock class implementation, so
this might not be the real issue.

Unfortunately, your backtrace doesn't provide much information about
the crash itself. The only issue that comes to mind is that the
CliClient might have been deleted somehow before the timer that
called CliClient::process_input_data(). This is very unlike, because
the timer deletion should have canceled the callback, but is
something you could investigate by adding XLOG message in the
CliClient destructor.


> (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.
> Thanks,
> Ben
> -- 
> Ben Greear <greearb at candelatech.com>
> Candela Technologies Inc  http://www.candelatech.com
> _______________________________________________
> Xorp-hackers mailing list
> Xorp-hackers at icir.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

More information about the Xorp-hackers mailing list