bgp配置文件出错调试

(gdb) bt
#0  vty_read_file (confp=0x7fffac007b20) at vty.c:2259
#1  0x00007fffbbc78b11 in vty_read_config (config_file=0x746fc0 "/usr/local/etc/bgpd.conf",
    config_default_dir=0x7fffbbf156e0 <config_default> "/home/z/new/dce/build/etc/bgpd.conf") at vty.c:2438
#2  0x00007fffbbbfc4d7 in main (argc=5, argv=0x74ad60) at bgp_main.c:435
#3  0x00007ffff7a013bf in ns3::DceManager::DoStartProcess (context=0x78e450) at ../model/dce-manager.cc:283
#4  0x00007ffff7a8ab78 in ns3::TaskManager::Trampoline (context=0x670c30) at ../model/task-manager.cc:274
#5  0x00007ffff7a86b53 in ns3::PthreadFiberManager::Run (arg=0x78e740) at ../model/pthread-fiber-manager.cc:402
#6  0x000000318b2079d1 in start_thread () from /lib64/libpthread.so.0
#7  0x000000318a6e88fd in clone () from /lib64/libc.so.6
(gdb)



这次出错是因为vty_read_file返回结果是2,说明我拼错了命令

查出来的地方是这里

       os << "  redistribute " << it->first << " metric " << it->second << std::endl;

我少了metric字样

你可能感兴趣的:(bgp配置文件出错调试)