From owner-freebsd-stable Fri May 25 13: 2:46 2001 Delivered-To: freebsd-stable@freebsd.org Received: from gw2.dnepr.net (gw2.dnepr.net [217.198.131.97]) by hub.freebsd.org (Postfix) with ESMTP id 9C99D37B422 for ; Fri, 25 May 2001 13:02:15 -0700 (PDT) (envelope-from land@dnepr.net) Received: from dnepr.net (neon.dnepr.net [217.198.131.98]) by gw2.dnepr.net (8.11.3/8.6.18/01) with ESMTP id f4PK1ub81080 for ; Fri, 25 May 2001 23:01:56 +0300 (EEST) Received: (from land@localhost) by dnepr.net (8.8.8/8.8.8) id XAA04614 for stable@freebsd.org; Fri, 25 May 2001 23:01:42 +0300 (EEST) X-POP3-RCPT: stable@freebsd.org Date: Fri, 25 May 2001 23:01:42 +0300 From: Andrey Lakhno To: stable@freebsd.org Subject: rl driver - spontaneous kernel panics Message-ID: <20010525230141.A2752@dnepr.net> Mail-Followup-To: stable@freebsd.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="xHFwDpU9dbj6ez1V" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi ! I have box running 4.2-STABLE (last cvsuped 15 February 2001). It has four Realtek 8139 PCI cards. Before last night system runs ok. But now it random panics. Nothing was chaged within last two weeks. Kernel config and kernel debug whith gdb attached to this letter. If you have any ideas how to fix the problem - tell me. I suppose that one of cards became broken. But which of them ? -- LAND-RIPE --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="kernel.config" makeoptions DEBUG=-g machine i386 cpu I386_CPU cpu I486_CPU cpu I586_CPU cpu I686_CPU ident XXX maxusers 256 options INET #InterNETworking options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options SOFTUPDATES #Enable FFS soft updates support #options CD9660 #ISO 9660 Filesystem options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options UCONSOLE #Allow users to grab the console options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options P1003_1B #Posix P1003_1B real-time extensions options _KPOSIX_PRIORITY_SCHEDULING options ICMP_BANDLIM #Rate limit bad replies options KBD_INSTALL_CDEV # install a CDEV entry in /dev device isa device eisa device pci # Floppy drives #device fdc0 at isa? port IO_FD1 irq 6 drq 2 #device fd0 at fdc0 drive 0 # ATA and ATAPI devices device ata0 at isa? port IO_WD1 irq 14 device ata1 at isa? port IO_WD2 irq 15 device ata device atadisk # ATA disk drives #device atapicd # ATAPI CDROM drives options ATA_STATIC_ID #Static device numbering options ATA_ENABLE_ATAPI_DMA #Enable DMA on ATAPI devices # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 flags 0x1 #device psm0 at atkbdc? irq 12 device vga0 at isa? # splash screen/screen saver # pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? flags 0x100 # Floating point support - do not disable. device npx0 at nexus? port IO_NPX irq 13 # Power management support (see LINT for more options) # device apm0 at nexus? disable flags 0x20 # Advanced Power Management # Serial (COM) ports device sio0 at isa? port IO_COM1 flags 0x10 irq 4 device sio1 at isa? port IO_COM2 irq 3 # Parallel port #device ppc0 at isa? irq 7 #device ppbus # Parallel port bus (required) #device ppi # Parallel port interface device # PCI Ethernet NICs. device miibus device rl # Pseudo devices - the number indicates how many units to allocated. pseudo-device loop # Network loopback pseudo-device ether # Ethernet support #pseudo-device sl 1 # Kernel SLIP pseudo-device ppp 2 # Kernel PPP pseudo-device tun 4 # Packet tunnel. pseudo-device pty # Pseudo-ttys (telnet etc) #pseudo-device md # Memory "disks" #pseudo-device gif 4 # IPv6 and IPv4 tunneling #pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation) # The `bpf' pseudo-device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! pseudo-device bpf #Berkeley packet filter #pseudo-device vlan 2 options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_DEFAULT_TO_ACCEPT options IPFIREWALL_FORWARD options TCP_DROP_SYNFIN options DUMMYNET options HZ=1000 options SC_HISTORY_SIZE=1000 --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="debug.log" Content-Transfer-Encoding: quoted-printable Script started on Fri May 25 22:41:18 2001 GNU gdb 4.18=0D Copyright 1998 Free Software Foundation, Inc.=0D GDB is free software, covered by the GNU General Public License, and you ar= e=0D welcome to change it and/or distribute copies of it under certain condition= s.=0D Type "show copying" to see the conditions.=0D There is absolutely no warranty for GDB. Type "show warranty" for details.= =0D This GDB was configured as "i386-unknown-freebsd".=0D (kgdb) symbol-file kernel.debug=0D Reading symbols from kernel.debug...done.=0D (kgdb) exec-file /var/crash/kernel.0=0D (kgdb) core-file /var/crash/vmcore.0=0D IdlePTD 2695168=0D initial pcb at 21d0c0=0D panicstr: page fault=0D panic messages:=0D ---=0D Fatal trap 12: page fault while in kernel mode=0D fault virtual address =3D 0x92c07500=0D fault code =3D supervisor read, page not present=0D instruction pointer =3D 0x8:0xc0187f18=0D stack pointer =3D 0x10:0xcdd20c88=0D frame pointer =3D 0x10:0xcdd20c94=0D code segment =3D base 0x0, limit 0xfffff, type 0x1b=0D =3D DPL 0, pres 1, def32 1, gran 1=0D processor eflags =3D interrupt enabled, resume, IOPL =3D 0=0D current process =3D 438 (squid)=0D interrupt mask =3D net tty =0D trap number =3D 12=0D panic: page fault=0D =0D syncing disks... =0D =0D Fatal trap 12: page fault while in kernel mode=0D fault virtual address =3D 0x92c07500=0D fault code =3D supervisor read, page not present=0D instruction pointer =3D 0x8:0xc014b388=0D stack pointer =3D 0x10:0xcdd209a4=0D frame pointer =3D 0x10:0xcdd209c4=0D code segment =3D base 0x0, limit 0xfffff, type 0x1b=0D =3D DPL 0, pres 1, def32 1, gran 1=0D processor eflags =3D interrupt enabled, resume, IOPL =3D 0=0D current process =3D 438 (squid)=0D interrupt mask =3D net tty =0D trap number =3D 12=0D panic: page fault=0D Uptime: 3h44m20s=0D =0D dumping to dev #ad/0x20001, offset 658065=0D dump ata0: resetting devices .. done=0D 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172= 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 15= 3 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 1= 34 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 = 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96= 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71= 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46= 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21= 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 =0D ---=0D #0 dumpsys () at ../../kern/kern_shutdown.c:469=0D 469 if (dumping++) {=0D (kgdb) where=0D #0 dumpsys () at ../../kern/kern_shutdown.c:469=0D #1 0xc012faab in boot (howto=3D260) at ../../kern/kern_shutdown.c:309=0D #2 0xc012fe28 in poweroff_wait (junk=3D0xc01fbe8f, howto=3D-857143840)=0D at ../../kern/kern_shutdown.c:556=0D #3 0xc01d6269 in trap_fatal (frame=3D0xcdd20964, eva=3D2462086400)=0D at ../../i386/i386/trap.c:951=0D #4 0xc01d5f41 in trap_pfault (frame=3D0xcdd20964, usermode=3D0, eva=3D2462= 086400)=0D at ../../i386/i386/trap.c:844=0D #5 0xc01d5afb in trap (frame=3D{tf_fs =3D -985071600, tf_es =3D -104988670= 4, =0D tf_ds =3D -985071600, tf_edi =3D 6750936, tf_esi =3D 1, tf_ebp =3D -8= 41872956, =0D tf_isp =3D -841873008, tf_ebx =3D 1, tf_edx =3D -1832880896, =0D tf_ecx =3D -885497636, tf_eax =3D 6750936, tf_trapno =3D 12, tf_err = =3D 0, =0D tf_eip =3D -1072385144, tf_cs =3D 8, tf_eflags =3D 66182, tf_esp =3D = 60, =0D tf_ss =3D -1050170880}) at ../../i386/i386/trap.c:443=0D #6 0xc014b388 in m_devget (buf=3D0xcb3860da "@", totlen=3D62, off0=3D0, =0D ifp=3D0xc167aa00, copy=3D0) at ../../kern/uipc_mbuf.c:1087=0D #7 0xc0187b95 in rl_rxeof (sc=3D0xc167aa00) at ../../pci/if_rl.c:1138=0D #8 0xc0187e2a in rl_intr (arg=3D0xc167aa00) at ../../pci/if_rl.c:1271=0D #9 0xc01cbbfa in vec7 ()=0D #10 0xc01964d5 in drain_output (vp=3D0xcce8ab40, islocked=3D1)=0D at ../../ufs/ffs/ffs_softdep.c:4747=0D #11 0xc01952f6 in softdep_fsync_mountdev (vp=3D0xcce8ab40)=0D at ../../ufs/ffs/ffs_softdep.c:3906=0D #12 0xc01992ee in ffs_fsync (ap=3D0xcdd20b30) at ../../ufs/ffs/ffs_vnops.c:= 134=0D ---Type to continue, or q to quit---=0D #13 0xc0197ff6 in ffs_sync (mp=3D0xc16c8200, waitfor=3D2, cred=3D0xc08f6680= , =0D p=3D0xc022f740) at vnode_if.h:537=0D #14 0xc015d82f in sync (p=3D0xc022f740, uap=3D0x0) at ../../kern/vfs_syscal= ls.c:545=0D #15 0xc012f87e in boot (howto=3D256) at ../../kern/kern_shutdown.c:233=0D #16 0xc012fe28 in poweroff_wait (junk=3D0xc01fbe8f, howto=3D-857143840)=0D at ../../kern/kern_shutdown.c:556=0D #17 0xc01d6269 in trap_fatal (frame=3D0xcdd20c48, eva=3D2462086400)=0D at ../../i386/i386/trap.c:951=0D #18 0xc01d5f41 in trap_pfault (frame=3D0xcdd20c48, usermode=3D0, eva=3D2462= 086400)=0D at ../../i386/i386/trap.c:844=0D #19 0xc01d5afb in trap (frame=3D{tf_fs =3D -1064042480, tf_es =3D 16, =0D tf_ds =3D -1063780336, tf_edi =3D 1, tf_esi =3D 6750936, tf_ebp =3D -= 841872236, =0D tf_isp =3D -841872268, tf_ebx =3D 1, tf_edx =3D -1832880896, tf_ecx = =3D 0, =0D tf_eax =3D 6750936, tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -10721= 36424, =0D tf_cs =3D 8, tf_eflags =3D 66182, tf_esp =3D -1063747840, tf_ss =3D -= 1063747840})=0D at ../../i386/i386/trap.c:443=0D #20 0xc0187f18 in rl_encap (sc=3D0xc167aa00, m_head=3D0xc0987f00)=0D at ../../pci/if_rl.c:1314=0D #21 0xc01880e7 in rl_start (ifp=3D0xc167aa00) at ../../pci/if_rl.c:1367=0D #22 0xc0169ca4 in ether_output_frame (ifp=3D0xc167aa00, m=3D0xc0987f00)=0D at ../../net/if_ethersubr.c:400=0D #23 0xc0169c12 in ether_output (ifp=3D0xc167aa00, m=3D0xc0987f00, dst=3D0xc= 185e0b0, =0D rt0=3D0xc19ae100) at ../../net/if_ethersubr.c:354=0D #24 0xc017e8eb in ip_output (m0=3D0xc0987f00, opt=3D0x0, ro=3D0xcc8ca268, f= lags=3D0, =0D ---Type to continue, or q to quit---=0D imo=3D0x0) at ../../netinet/ip_output.c:790=0D #25 0xc01836ce in tcp_output (tp=3D0xcc8ca2e0) at ../../netinet/tcp_output.= c:859=0D #26 0xc0184f84 in tcp_usr_send (so=3D0xcc5c3180, flags=3D4, m=3D0xc0928500,= nam=3D0x0, =0D control=3D0x0, p=3D0xcce905e0) at ../../netinet/tcp_usrreq.c:557=0D #27 0xc014c923 in sosend (so=3D0xcc5c3180, addr=3D0x0, uio=3D0xcdd20ed8, =0D top=3D0xc0928500, control=3D0x0, flags=3D0, p=3D0xcce905e0)=0D at ../../kern/uipc_socket.c:620=0D #28 0xc0141008 in soo_write (fp=3D0xc1914700, uio=3D0xcdd20ed8, cred=3D0xc1= 809380, =0D flags=3D0, p=3D0xcce905e0) at ../../kern/sys_socket.c:79=0D #29 0xc013dc49 in dofilewrite (p=3D0xcce905e0, fp=3D0xc1914700, fd=3D31, =0D buf=3D0xa6e3000, nbyte=3D3004, offset=3D-1, flags=3D0) at ../../sys/fil= e.h:159=0D #30 0xc013db02 in write (p=3D0xcce905e0, uap=3D0xcdd20f80)=0D at ../../kern/sys_generic.c:328=0D #31 0xc01d6515 in syscall2 (frame=3D{tf_fs =3D -1078001617, tf_es =3D -1078= 001617, =0D tf_ds =3D -1078001617, tf_edi =3D -1077936692, tf_esi =3D -1077936704= , =0D tf_ebp =3D -1077970052, tf_isp =3D -841871404, tf_ebx =3D 134628656, = =0D tf_edx =3D 0, tf_ecx =3D 3004, tf_eax =3D 4, tf_trapno =3D 0, tf_err = =3D 2, =0D tf_eip =3D 672778512, tf_cs =3D 31, tf_eflags =3D 518, tf_esp =3D -10= 77970112, =0D tf_ss =3D 47}) at ../../i386/i386/trap.c:1150=0D #32 0xc01ca705 in Xint0x80_syscall ()=0D #33 0x80657e0 in ?? ()=0D #34 0x808811a in ?? ()=0D #35 0x804a329 in ?? ()=0D (kgdb) up 19=0D #19 0xc01d5afb in trap (frame=3D{tf_fs =3D -1064042480, tf_es =3D 16, =0D tf_ds =3D -1063780336, tf_edi =3D 1, tf_esi =3D 6750936, tf_ebp =3D -= 841872236, =0D tf_isp =3D -841872268, tf_ebx =3D 1, tf_edx =3D -1832880896, tf_ecx = =3D 0, =0D tf_eax =3D 6750936, tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -10721= 36424, =0D tf_cs =3D 8, tf_eflags =3D 66182, tf_esp =3D -1063747840, tf_ss =3D -= 1063747840})=0D at ../../i386/i386/trap.c:443=0D 443 (void) trap_pfault(&frame, FALSE, eva);=0D (kgdb) list=0D 438 kernel_trap:=0D 439 /* kernel trap */=0D 440 =0D 441 switch (type) {=0D 442 case T_PAGEFLT: /* page fault */=0D 443 (void) trap_pfault(&frame, FALSE, eva);=0D 444 return;=0D 445 =0D 446 case T_DNA:=0D 447 #if NNPX > 0=0D (kgdb) up=0D #20 0xc0187f18 in rl_encap (sc=3D0xc167aa00, m_head=3D0xc0987f00)=0D at ../../pci/if_rl.c:1314=0D 1314 return(1);=0D (kgdb) list=0D 1309 */=0D 1310 =0D 1311 MGETHDR(m_new, M_DONTWAIT, MT_DATA);=0D 1312 if (m_new =3D=3D NULL) {=0D 1313 printf("rl%d: no memory for tx list", sc->rl_unit);=0D 1314 return(1);=0D 1315 }=0D 1316 if (m_head->m_pkthdr.len > MHLEN) {=0D 1317 MCLGET(m_new, M_DONTWAIT);=0D 1318 if (!(m_new->m_flags & M_EXT)) {=0D (kgdb) up=0D #21 0xc01880e7 in rl_start (ifp=3D0xc167aa00) at ../../pci/if_rl.c:1367=0D 1367 if (rl_encap(sc, m_head)) {=0D (kgdb) list=0D 1362 while(RL_CUR_TXMBUF(sc) =3D=3D NULL) {=0D 1363 IF_DEQUEUE(&ifp->if_snd, m_head);=0D 1364 if (m_head =3D=3D NULL)=0D 1365 break;=0D 1366 =0D 1367 if (rl_encap(sc, m_head)) {=0D 1368 IF_PREPEND(&ifp->if_snd, m_head);=0D 1369 ifp->if_flags |=3D IFF_OACTIVE;=0D 1370 break;=0D 1371 }=0D (kgdb) up l=08 =08=08 =08=0D #22 0xc0169ca4 in ether_output_frame (ifp=3D0xc167aa00, m=3D0xc0987f00)=0D at ../../net/if_ethersubr.c:400=0D 400 (*ifp->if_start)(ifp);=0D (kgdb) list=0D 395 ifp->if_obytes +=3D m->m_pkthdr.len;=0D 396 if (m->m_flags & M_MCAST)=0D 397 ifp->if_omcasts++;=0D 398 IF_ENQUEUE(&ifp->if_snd, m);=0D 399 if ((ifp->if_flags & IFF_OACTIVE) =3D=3D 0)=0D 400 (*ifp->if_start)(ifp);=0D 401 splx(s);=0D 402 return (error);=0D 403 }=0D 404 =0D (kgdb) up=0D #23 0xc0169c12 in ether_output (ifp=3D0xc167aa00, m=3D0xc0987f00, dst=3D0xc= 185e0b0, =0D rt0=3D0xc19ae100) at ../../net/if_ethersubr.c:354=0D 354 return ether_output_frame(ifp, m);=0D (kgdb) list=0D 349 if (m =3D=3D NULL)=0D 350 return (0);=0D 351 }=0D 352 =0D 353 /* Continue with link-layer output */=0D 354 return ether_output_frame(ifp, m);=0D 355 }=0D 356 =0D 357 /*=0D 358 * Ethernet link layer output routine to send a raw frame to the device= .=0D (kgdb) up=0D #24 0xc017e8eb in ip_output (m0=3D0xc0987f00, opt=3D0x0, ro=3D0xcc8ca268, f= lags=3D0, =0D imo=3D0x0) at ../../netinet/ip_output.c:790=0D 790 error =3D (*ifp->if_output)(ifp, m,=0D (kgdb) list=0D 785 ip->ip_sum =3D in_cksum_hdr(ip);=0D 786 } else {=0D 787 ip->ip_sum =3D in_cksum(m, hlen);=0D 788 }=0D 789 }=0D 790 error =3D (*ifp->if_output)(ifp, m,=0D 791 (struct sockaddr *)dst, ro->ro_rt);=0D 792 goto done;=0D 793 }=0D 794 /*=0D (kgdb) up=0D #25 0xc01836ce in tcp_output (tp=3D0xcc8ca2e0) at ../../netinet/tcp_output.= c:859=0D 859 error =3D ip_output(m, tp->t_inpcb->inp_options, &tp->t_inpcb->inp_rou= te,=0D (kgdb) list=0D 854 ip->ip_off |=3D IP_DF;=0D 855 }=0D 856 #ifdef IPSEC=0D 857 ipsec_setsocket(m, so);=0D 858 #endif /*IPSEC*/=0D 859 error =3D ip_output(m, tp->t_inpcb->inp_options, &tp->t_inpcb->inp_rou= te,=0D 860 (so->so_options & SO_DONTROUTE), 0);=0D 861 }=0D 862 if (error) {=0D 863 =0D Script done on Fri May 25 22:42:58 2001 --xHFwDpU9dbj6ez1V-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message