From owner-freebsd-bugs@FreeBSD.ORG Wed Mar 2 05:20:11 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86AB51065676 for ; Wed, 2 Mar 2011 05:20:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 491938FC12 for ; Wed, 2 Mar 2011 05:20:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p225KBJQ075538 for ; Wed, 2 Mar 2011 05:20:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p225KB42075537; Wed, 2 Mar 2011 05:20:11 GMT (envelope-from gnats) Resent-Date: Wed, 2 Mar 2011 05:20:11 GMT Resent-Message-Id: <201103020520.p225KB42075537@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eduardo Schoedler Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 991DB106566B for ; Wed, 2 Mar 2011 05:16:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 86EDB8FC08 for ; Wed, 2 Mar 2011 05:16:13 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p225GDmq024534 for ; Wed, 2 Mar 2011 05:16:13 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p225GDiH024533; Wed, 2 Mar 2011 05:16:13 GMT (envelope-from nobody) Message-Id: <201103020516.p225GDiH024533@red.freebsd.org> Date: Wed, 2 Mar 2011 05:16:13 GMT From: Eduardo Schoedler To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/155177: Panic when inject routes in kernel X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2011 05:20:11 -0000 >Number: 155177 >Category: kern >Synopsis: Panic when inject routes in kernel >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 02 05:20:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Eduardo Schoedler >Release: 8.2-STABLE >Organization: >Environment: FreeBSD border01.scr 8.2-STABLE FreeBSD 8.2-STABLE #5: Wed Mar 2 01:34:10 BRT 2011 root@border01.scr:/usr/obj/usr/src/sys/BORDER-RTR amd64 >Description: I'm using Quagga 0.99.17 peering with bgpsimple tool in another machine. Bgpsimple injects full-routing table in this bgp session. When the bgpsimple terminates the injection (or when I cancel by pressing CTRL+C), an kernel panic occurs in the router. Kernel debugging: # kgdb kernel.debug /var/crash/vmcore.1 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... Unread portion of the kernel message buffer: panic: rtfree 2 cpuid = 0 Uptime: 4m38s Physical memory: 8170 MB Dumping 566 MB: 551 535 519 503 487 471 455 439 423 407 391 375 359 343 327 311 295 279 263 247 231 215 199 183 167 151 135 119 103 87 71 55 39 23 7 #0 doadump () at pcpu.h:224 224 __asm("movq %%gs:0,%0" : "=r" (td)); (kgdb) quit # dmesg Copyright (c) 1992-2011 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.2-STABLE #5: Wed Mar 2 01:34:10 BRT 2011 root@border01.scr:/usr/obj/usr/src/sys/BORDER-RTR amd64 WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(R) CPU X3440 @ 2.53GHz (2527.00-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x106e5 Family = 6 Model = 1e Stepping = 5 Features=0xbfebfbff Features2=0x98e3fd AMD Features=0x28100800 AMD Features2=0x1 TSC: P-state invariant real memory = 8589934592 (8192 MB) avail memory = 8229384192 (7848 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 SMT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 cpu4 (AP): APIC ID: 4 cpu5 (AP): APIC ID: 5 cpu6 (AP): APIC ID: 6 cpu7 (AP): APIC ID: 7 ioapic0 irqs 0-23 on motherboard netisr_init: forcing maxthreads to 1 and bindthreads to 0 for device polling kbd1 at kbdmux0 ichwd module loaded smbios0: at iomem 0xfcac0-0xfcade on motherboard smbios0: Version: 2.6, BCD Revision: 2.6 cryptosoft0: on motherboard acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) unknown: I/O range not supported Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 cpu4: on acpi0 cpu5: on acpi0 cpu6: on acpi0 cpu7: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 3.0 on pci0 pci1: on pcib1 pcib2: at device 0.0 on pci1 pci2: on pcib2 pcib3: at device 2.0 on pci2 pci3: on pcib3 igb0: port 0xfcc0-0xfcdf mem 0xddfc0000-0xddfdffff,0xde000000-0xde3fffff,0xddfb8000-0xddfbbfff irq 18 at device 0.0 on pci3 igb0: Using MSIX interrupts with 9 vectors igb0: [ITHREAD] igb0: [ITHREAD] igb0: [ITHREAD] igb0: [ITHREAD] igb0: [ITHREAD] igb0: [ITHREAD] igb0: [ITHREAD] igb0: [ITHREAD] igb0: [ITHREAD] igb0: Ethernet address: 00:1b:21:42:87:e0 igb1: port 0xfce0-0xfcff mem 0xddfe0000-0xddffffff,0xde400000-0xde7fffff,0xddfbc000-0xddfbffff irq 19 at device 0.1 on pci3 igb1: Using MSIX interrupts with 9 vectors igb1: [ITHREAD] igb1: [ITHREAD] igb1: [ITHREAD] igb1: [ITHREAD] igb1: [ITHREAD] igb1: [ITHREAD] igb1: [ITHREAD] igb1: [ITHREAD] igb1: [ITHREAD] igb1: Ethernet address: 00:1b:21:42:87:e1 pcib4: at device 4.0 on pci2 pci4: on pcib4 igb2: port 0xecc0-0xecdf mem 0xdd3c0000-0xdd3dffff,0xdd400000-0xdd7fffff,0xdd3b8000-0xdd3bbfff irq 16 at device 0.0 on pci4 igb2: Using MSIX interrupts with 9 vectors igb2: [ITHREAD] igb2: [ITHREAD] igb2: [ITHREAD] igb2: [ITHREAD] igb2: [ITHREAD] igb2: [ITHREAD] igb2: [ITHREAD] igb2: [ITHREAD] igb2: [ITHREAD] igb2: Ethernet address: 00:1b:21:42:87:e4 igb3: port 0xece0-0xecff mem 0xdd3e0000-0xdd3fffff,0xdd800000-0xddbfffff,0xdd3bc000-0xdd3bffff irq 17 at device 0.1 on pci4 igb3: Using MSIX interrupts with 9 vectors igb3: [ITHREAD] igb3: [ITHREAD] igb3: [ITHREAD] igb3: [ITHREAD] igb3: [ITHREAD] igb3: [ITHREAD] igb3: [ITHREAD] igb3: [ITHREAD] igb3: [ITHREAD] igb3: Ethernet address: 00:1b:21:42:87:e5 pci0: at device 8.0 (no driver attached) pci0: at device 8.1 (no driver attached) pci0: at device 8.2 (no driver attached) pci0: at device 8.3 (no driver attached) pci0: at device 16.0 (no driver attached) pci0: at device 16.1 (no driver attached) ehci0: mem 0xde8fc000-0xde8fc3ff irq 22 at device 26.0 on pci0 ehci0: [ITHREAD] usbus0: EHCI version 1.0 usbus0: on ehci0 pcib5: at device 28.0 on pci0 pci5: on pcib5 bce0: mem 0xd8000000-0xd9ffffff irq 16 at device 0.0 on pci5 miibus0: on bce0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bce0: Ethernet address: 00:26:b9:7f:d4:26 bce0: [ITHREAD] bce1: mem 0xda000000-0xdbffffff irq 17 at device 0.1 on pci5 miibus1: on bce1 brgphy1: PHY 1 on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bce1: Ethernet address: 00:26:b9:7f:d4:27 bce1: [ITHREAD] ehci1: mem 0xde8fe000-0xde8fe3ff irq 22 at device 29.0 on pci0 ehci1: [ITHREAD] usbus1: EHCI version 1.0 usbus1: on ehci1 pcib6: at device 30.0 on pci0 pci6: on pcib6 vgapci0: mem 0xd7800000-0xd7ffffff,0xdc7fc000-0xdc7fffff,0xdc800000-0xdcffffff irq 19 at device 3.0 on pci6 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xdca0-0xdca7,0xdc90-0xdc93,0xdca8-0xdcaf,0xdc94-0xdc97,0xdcc0-0xdccf,0xdcd0-0xdcdf irq 20 at device 31.2 on pci0 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] atapci1: port 0xdcb0-0xdcb7,0xdc98-0xdc9b,0xdcb8-0xdcbf,0xdc9c-0xdc9f,0xdce0-0xdcef,0xdcf0-0xdcff irq 21 at device 31.5 on pci0 atapci1: [ITHREAD] ata4: on atapci1 ata4: [ITHREAD] ata5: on atapci1 ata5: [ITHREAD] acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 atrtc0: port 0x70-0x7f irq 8 on acpi0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: [FILTER] uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 uart1: [FILTER] orm0: at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff,0xec000-0xeffff on isa0 atkbd: unable to set the command byte. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] coretemp0: on cpu0 est0: on cpu0 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 14 device_attach: est0 attach returned 6 p4tcc0: on cpu0 coretemp1: on cpu1 est1: on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 14 device_attach: est1 attach returned 6 p4tcc1: on cpu1 coretemp2: on cpu2 est2: on cpu2 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 14 device_attach: est2 attach returned 6 p4tcc2: on cpu2 coretemp3: on cpu3 est3: on cpu3 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 14 device_attach: est3 attach returned 6 p4tcc3: on cpu3 coretemp4: on cpu4 est4: on cpu4 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 14 device_attach: est4 attach returned 6 p4tcc4: on cpu4 coretemp5: on cpu5 est5: on cpu5 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 14 device_attach: est5 attach returned 6 p4tcc5: on cpu5 coretemp6: on cpu6 est6: on cpu6 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 14 device_attach: est6 attach returned 6 p4tcc6: on cpu6 coretemp7: on cpu7 est7: on cpu7 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 14 device_attach: est7 attach returned 6 p4tcc7: on cpu7 Timecounters tick every 1.000 msec IPsec: Initialized Security Association Processing. ipfw2 (+ipv6) initialized, divert enabled, nat enabled, rule-based forwarding enabled, default to accept, logging disabled load_dn_sched dn_sched WF2Q+ loaded load_dn_sched dn_sched FIFO loaded load_dn_sched dn_sched PRIO loaded load_dn_sched dn_sched QFQ loaded load_dn_sched dn_sched RR loaded usbus0: 480Mbps High Speed USB v2.0 usbus1: 480Mbps High Speed USB v2.0 ad4: 238418MB at ata2-master UDMA100 SATA 3Gb/s ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ad6: 238418MB at ata3-master UDMA100 SATA 3Gb/s acd0: DVDROM at ata3-slave UDMA100 SATA 1.5Gb/s SMP: AP CPU #1 Launched! SMP: AP CPU #4 Launched! SMP: AP CPU #3 Launched! SMP: AP CPU #5 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #6 Launched! SMP: AP CPU #7 Launched! hwpmc: TSC/1/64/0x20 IAP/4/48/0x3ff IAF/3/48/0x61 UCP/8/48/0x3f8 UCF/1/48/0x60 WARNING: WITNESS option enabled, expect reduced performance. uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered ugen0.2: at usbus0 uhub2: on usbus0 ugen1.2: at usbus1 uhub3: on usbus1 uhub2: 6 ports with 6 removable, self powered uhub3: 8 ports with 8 removable, self powered ugen0.3: at usbus0 ukbd0: on usbus0 kbd2 at ukbd0 ums0: on usbus0 ums0: 3 buttons and [Z] coordinates ID=0 ugen1.3: at usbus1 uhub4: on usbus1 uhub4: 4 ports with 4 removable, self powered ugen1.4: at usbus1 ukbd1: on usbus1 kbd3 at ukbd1 uhid0: on usbus1 Trying to mount root from ufs:/dev/ad4s1a WARNING: / was not properly dismounted WARNING: /usr was not properly dismounted WARNING: /var was not properly dismounted bce0: link state changed to UP # cat /boot/loader.conf net.inet.tcp.syncache.hashsize=1024 net.inet.tcp.syncache.bucketlimit=512 net.inet.tcp.syncache.cachelimit=65536 net.inet.tcp.hostcache.hashsize="16384" net.inet.tcp.hostcache.bucketlimit="100" net.inet.tcp.tcbhashsize=4096 net.isr.direct=1 net.isr.bindthreads=1 net.isr.numthreads=4 net.isr.defaultqlimit=4096 kern.ipc.nmbclusters=65536 net.fibs=2 kern.hz=1000 # cat /etc/sysctl.conf kern.securelevel=1 kern.ipc.nmbjumbo9=69000 kern.timecounter.hardware=HPET security.bsd.see_other_uids=0 security.bsd.see_other_gids=0 net.inet.ip.sourceroute=0 net.inet.ip.accept_sourceroute=0 net.inet.carp.log=0 net.inet.ip.forwarding=1 net.inet6.ip6.forwarding=1 net.inet.ip.fastforwarding=1 net.inet.ip.fw.verbose_limit=0 kern.ipc.somaxconn=8192 kern.maxfilesperproc=57636 net.inet.tcp.delayed_ack=0 net.inet.tcp.sendspace=65535 net.inet.udp.recvspace=65535 net.inet.udp.maxdgram=57344 net.local.stream.recvspace=65535 net.local.stream.sendspace=65535 kern.ipc.shmmax=2147483648 kern.maxfiles=204800 kern.maxfilesperproc=200000 kern.maxvnodes=200000 net.inet.tcp.rfc1323=1 net.inet.ip.portrange.first=1024 net.inet.ip.portrange.last=65535 net.inet.ip.ttl=128 net.inet.tcp.maxtcptw=200000 net.inet.tcp.fast_finwait2_recycle=1 net.inet.tcp.msl=5000 net.inet.ip.dummynet.io_fast=1 net.inet.udp.blackhole=1 net.inet.tcp.blackhole=2 net.inet.icmp.maskrepl=0 net.inet.icmp.drop_redirect=1 net.inet.icmp.log_redirect=1 net.inet.tcp.drop_synfin=1 net.inet.tcp.log_in_vain=1 net.inet.udp.log_in_vain=1 net.inet.tcp.icmp_may_rst=0 net.inet.icmp.icmplim=50 net.inet.ip.redirect=0 net.inet6.ip6.redirect=0 net.inet.icmp.bmcastecho=0 kern.polling.burst_max=1000 kern.polling.each_burst=1000 kern.polling.reg_frac=100 kern.polling.user_frac=1 kern.polling.idle_poll=0 net.link.ether.inet.max_age=14400 net.inet6.icmp6.rediraccept=0 net.inet6.ip6.accept_rtadv=0 # ifconfig igb0: flags=8843 metric 0 mtu 1500 options=101bb ether 00:1b:21:42:87:e0 media: Ethernet 1000baseT status: active igb1: flags=8843 metric 0 mtu 1500 options=101bb ether 00:1b:21:42:87:e1 inet 172.16.x.x netmask 0xffffff00 broadcast 172.16.x.x media: Ethernet 1000baseT status: active igb2: flags=8843 metric 0 mtu 1500 options=101bb ether 00:1b:21:42:87:e4 media: Ethernet 1000baseT (autoselect) status: no carrier igb3: flags=8843 metric 0 mtu 1500 options=101bb ether 00:1b:21:42:87:e5 media: Ethernet 1000baseT (autoselect) status: no carrier bce0: flags=8843 metric 0 mtu 1500 options=c01bb ether 00:26:b9:7f:d4:26 inet 187.x.y.1 netmask 0xfffffffc broadcast 187.x.y.3 media: Ethernet 1000baseT status: active bce1: flags=8843 metric 0 mtu 1500 options=c01bb ether 00:26:b9:7f:d4:27 media: Ethernet 1000baseT (none) status: no carrier ipfw0: flags=8801 metric 0 mtu 65536 lo0: flags=8049 metric 0 mtu 16384 options=3 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 nd6 options=3 enc0: flags=0<> metric 0 mtu 1536 lo10: flags=8049 metric 0 mtu 16384 options=3 inet 187.x.x.254 netmask 0xffffffff lo20: flags=8049 metric 0 mtu 16384 options=3 inet 187.x.x.21 netmask 0xffffffff lo30: flags=8049 metric 0 mtu 16384 options=3 inet 187.x.x.1 netmask 0xffffffff disc10: flags=8049 metric 0 mtu 65532 inet 192.0.2.1 netmask 0xffffffff inet6 2001:db8:0:dead:beef::1 prefixlen 128 nd6 options=3 igb0.2000: flags=8843 metric 0 mtu 1500 options=3 ether 00:1b:21:xx:xx:xx inet 18x.x.x.x netmask 0xfffffffc broadcast 18x.x.x.x media: Ethernet 1000baseT status: active vlan: 2000 parent interface: igb0 >How-To-Repeat: Quagga on R1: router bgp 65501 no synchronization no bgp fast-external-failover bgp router-id 187.x.x.254 bgp log-neighbor-changes no bgp default ipv4-unicast bgp deterministic-med bgp graceful-restart bgp network import-check network 187.x.y.0 mask 255.255.254.0 neighbor 187.x.z.2 remote-as 65501 neighbor 187.x.z.2 activate neighbor 187.x.z.2 next-hop-self no auto-summary In the another machine: 1) http://code.google.com/p/bgpsimple/wiki/README (using data from rcc00) 2) Execute bgpsimple: # ./bgp_simple.pl -myas 65501 -myip 187.x.y.2 -peeras 65501 -peerip 187.x.y.1 -p myroutes -n -v 3) When bgpsimple terminates, this is the output: Full update sent. Error occured: type [Hold Timer Expired] Connection reset with peer 187.x.y.1, AS 65501. Error occured: type [Cease] Error occured: type [Cease] >Fix: >Release-Note: >Audit-Trail: >Unformatted: