Dear colleagues,
trying to set up new router I had stumbled with zebra (port built with standard
options except CPUTYPE=athlon64) strange crashes:
zebra.conf:
-----
hostname gwhx-zebra
password password
enable password password
log syslog
service password-encryption
-----
after statring zebra, telnetting to its port, enabling and trying to show
currect config zebra crashes:
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x0000000000000021 in ?? ()
#2 0x00000000004191f3 in config_write_terminal (self=0x535bb0, vty=0x546c00,
argc=-6848, argv=0x800b88c38) at command.c:2434
#3 0x00000000004186b6 in cmd_execute_command (vline=0x561ca0, vty=0x546c00,
cmd=0x0) at command.c:1915
#4 0x00000000004122af in vty_command (vty=0x546c00, buf=0x535bb0
"\004") at
vty.c:377
#5 0x0000000000413781 in vty_execute (vty=0x546c00) at vty.c:1216
#6 0x0000000000413bb1 in vty_read (thread=0x535bb0) at vty.c:1434
#7 0x000000000041cc6f in thread_call (thread=0x7fffffffe9d0) at thread.c:627
#8 0x00000000004055f4 in main (argc=1, argv=0x7fffffffeb18) at main.c:312
(gdb) up 2
#2 0x00000000004191f3 in config_write_terminal (self=0x535bb0, vty=0x546c00,
argc=-6848, argv=0x800b88c38) at command.c:2434
2434 if ((*node->func) (vty))
(gdb) l
2429 vty_out (vty, "!%s", VTY_NEWLINE);
2430
2431 for (i = 0; i < vector_max (cmdvec); i++)
2432 if ((node = vector_slot (cmdvec, i)) && node->func)
2433 {
2434 if ((*node->func) (vty))
2435 vty_out (vty, "!%s", VTY_NEWLINE);
2436 }
2437 vty_out (vty, "end%s",VTY_NEWLINE);
2438 }
(gdb) p node
$1 = (struct cmd_node *) 0x1
(gdb) p node->func
Cannot access memory at address 0x19
(gdb) p i
$2 = 5532672
(gdb) p cmdvec
$3 = 0x543040
(gdb) p *cmdvec
$4 = {max = 35, alloced = 64, index = 0x546200}
I had tried to dig through the sources, but was a bit frightened ;-)
Any hints?
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------