From owner-freebsd-stable@FreeBSD.ORG Mon May 24 10:35:07 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32E90106566B for ; Mon, 24 May 2010 10:35:07 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id A48578FC15 for ; Mon, 24 May 2010 10:35:06 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 22so863759fge.13 for ; Mon, 24 May 2010 03:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=6rsRSrEscIR96EQQyh+MfWiWkCtdvBUrAHh93wj2c+E=; b=Z1nn9rcKS/lR8FwKn9NWfw4PonVBoWFFX5WaOJeSuT3+D8xEbda5GuAu+SY2CZwTZA tJ/QFjkxonPacEipENU+vyjh4Px4YKZX8nr62qJC0qh+cpWVIrH8mdFvRE73p9yTOLAx H40RN2DVzaP04bF1P1YktvRPFt8VyWsFSKA7Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=pPO2CKSTAhK0Yx9SFcL2VlzdasTx/frznWCx/l4pkOjRFWQ1DzN1qgihdHggc/JRS0 p/DQUNBUbGQYRVdIWhDCzsh37HGltk1zClnxVtUnc2Mh193boK6MpVGq2r4uv6PSUqEO W6x1kDgtdyYZ1c4WUpWVdzyrO0qI43Vwb0FKA= Received: by 10.87.35.20 with SMTP id n20mr8062491fgj.0.1274697305476; Mon, 24 May 2010 03:35:05 -0700 (PDT) Received: from ndenev.totalterror.net (93-152-151-19.ddns.onlinedirect.bg [93.152.151.19]) by mx.google.com with ESMTPS id d8sm8886315fga.21.2010.05.24.03.35.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 24 May 2010 03:35:04 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Nikolay Denev In-Reply-To: Date: Mon, 24 May 2010 13:35:01 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <77DFF2E5-7A1E-4063-A852-2C7AD9BC3DD4@gmail.com> References: To: Nikolay Denev X-Mailer: Apple Mail (2.1078) Cc: Pyun YongHyeon , freebsd-stable@freebsd.org Subject: Re: if_sge related panics X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2010 10:35:07 -0000 On May 24, 2010, at 8:57 AM, Nikolay Denev wrote: > Hi, >=20 > Recently I started to experience a if_sge(4) related panic. > It happens almost every time I try to download a torrent file for = example. > Copying of large files over NFS seem not to trigger it, but I haven't = tested extensively. >=20 > Here is the panic message : >=20 > Fatal trap 12: page fault while in kernel mode > cpuid =3D 0; apic id =3D 00 > fault virtual address =3D 0x8 > fault code =3D supervisor write data, page = not present > instruction pointer =3D 0x20:0xffffffff80230413 > stack pointer =3D 0x28:0xffffff80001e9280 > frame pointer =3D 0x28:0xffffff80001e9510 > code segment =3D base 0x0, limit 0xfffff, type 0x1b > =3D DPL 0, pres 1, long = 1, def32 0, gran 1 > processor eflags =3D interrupt enabled, resume, = IOPL =3D 0 > current process =3D 12 (irq19: sge0) > trap number =3D 12 > panic: page fault > cpuid =3D 0 > Uptime: 1d20h56m20s > Cannot dump. Device not defined or unavailable > Automatic reboot in 15 seconds - press a key on the console to abort > Sleeping thread (tid 100039, pid 12) owns a non-sleepable lock >=20 > My swap is on a zvol, so I don't have dump. I'll try to attach a disk = on the eSATA port and dump there if needed. Here is some info from the crashdump : (kgdb) #0 doadump () at pcpu.h:223 #1 0xffffffff802fb149 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:416 #2 0xffffffff802fb57c in panic (fmt=3D0xffffffff8055d564 "%s") at /usr/src/sys/kern/kern_shutdown.c:590 #3 0xffffffff805055b8 in trap_fatal (frame=3D0xffffff000288a3e0, = eva=3DVariable "eva" is not available. ) at /usr/src/sys/amd64/amd64/trap.c:777 #4 0xffffffff805059dc in trap_pfault (frame=3D0xffffff80001e91d0, = usermode=3D0) at /usr/src/sys/amd64/amd64/trap.c:693 #5 0xffffffff805061c5 in trap (frame=3D0xffffff80001e91d0) at /usr/src/sys/amd64/amd64/trap.c:451 #6 0xffffffff804eb977 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:223 #7 0xffffffff80230413 in sge_start_locked (ifp=3D0xffffff000270d800) at /usr/src/sys/dev/sge/if_sge.c:1591 #8 0xffffffff80231044 in sge_start (ifp=3D0xffffff000270d800) at /usr/src/sys/dev/sge/if_sge.c:1562 #9 0xffffffff803a8b1a in if_transmit (ifp=3D0xffffff000270d800, = m=3DVariable "m" is not available. ) at /usr/src/sys/net/if.c:3355 #10 0xffffffff803adbbb in ether_output_frame (ifp=3D0xffffff000270d800,=20= m=3D0xffffff0007fdd600) at /usr/src/sys/net/if_ethersubr.c:452 #11 0xffffffff803ae206 in ether_output (ifp=3D0xffffff000270d800,=20 m=3D0xffffff0007fdd600, dst=3DVariable "dst" is not available. ) at /usr/src/sys/net/if_ethersubr.c:423 #12 0xffffffff803e1798 in ip_output (m=3D0xffffff0007fdd600, = opt=3DVariable "opt" is not available. ) at /usr/src/sys/netinet/ip_output.c:634 #13 0xffffffff803ec6d0 in tcp_output (tp=3D0xffffff0007ea56e0) at /usr/src/sys/netinet/tcp_output.c:1190 #14 0xffffffff803e7243 in tcp_do_segment (m=3D0xffffff00cd095900,=20 th=3D0xffffff0007743834, so=3D0xffffff0007e9e550, = tp=3D0xffffff0007ea56e0,=20 drop_hdrlen=3D52, tlen=3D0, iptos=3D0 '\0', ti_locked=3D2) at /usr/src/sys/netinet/tcp_input.c:1484 #15 0xffffffff803ea565 in tcp_input (m=3D0xffffff00cd095900, = off0=3DVariable "off0" is not available. ) at /usr/src/sys/netinet/tcp_input.c:1029 #16 0xffffffff803de6c1 in ip_input (m=3D0xffffff00cd095900) at /usr/src/sys/netinet/ip_input.c:793 #17 0xffffffff803b637e in netisr_dispatch_src (proto=3D1, = source=3DVariable "source" is not available. ) at /usr/src/sys/net/netisr.c:917 #18 0xffffffff803ada6d in ether_demux (ifp=3D0xffffff000270d800,=20 m=3D0xffffff00cd095900) at /usr/src/sys/net/if_ethersubr.c:901 #19 0xffffffff803ae3f0 in ether_input (ifp=3D0xffffff000270d800,=20 m=3D0xffffff00cd095900) at /usr/src/sys/net/if_ethersubr.c:760 #20 0xffffffff802317db in sge_intr (arg=3DVariable "arg" is not = available. ) at /usr/src/sys/dev/sge/if_sge.c:1220 #21 0xffffffff802d202d in intr_event_execute_handlers (p=3DVariable "p" = is not available. ) at /usr/src/sys/kern/kern_intr.c:1220 #22 0xffffffff802d36de in ithread_loop (arg=3D0xffffff000286f4c0) at /usr/src/sys/kern/kern_intr.c:1233 #23 0xffffffff802cf978 in fork_exit ( callout=3D0xffffffff802d3650 , arg=3D0xffffff000286f4c0,= =20 frame=3D0xffffff80001e9c80) at /usr/src/sys/kern/kern_fork.c:844 #24 0xffffffff804ebe4e in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:562 #25 0x0000000000000000 in ?? () #26 0x0000000000000000 in ?? () #27 0x0000000000000001 in ?? () #28 0x0000000000000000 in ?? () #29 0x0000000000000000 in ?? () #30 0x0000000000000000 in ?? () #31 0x0000000000000000 in ?? () #32 0x0000000000000000 in ?? () #33 0x0000000000000000 in ?? () #34 0x0000000000000000 in ?? () #35 0x0000000000000000 in ?? () #36 0x0000000000000000 in ?? () #37 0x0000000000000000 in ?? () #38 0x0000000000000000 in ?? () #39 0x0000000000000000 in ?? () #40 0x0000000000000000 in ?? () #41 0x0000000000000000 in ?? () #42 0x0000000000000000 in ?? () #43 0x0000000000000000 in ?? () #44 0x0000000000000000 in ?? () #45 0x0000000000000000 in ?? () #46 0x0000000000000000 in ?? () #47 0x0000000000000000 in ?? () #48 0x0000000000000000 in ?? () #49 0x000000000126d000 in ?? () #50 0x0000000000000000 in ?? () #51 0x0000000000000000 in ?? () #52 0xffffffff80787c40 in affinity () #53 0xffffff000288a3e0 in ?? () #54 0xffffff80001e9b80 in ?? () #55 0xffffff80001e9b38 in ?? () #56 0xffffff00027253e0 in ?? () #57 0xffffffff80320cf7 in sched_switch (td=3D0xffffffff802d3650,=20 newtd=3D0xffffff000286f4c0, flags=3DVariable "flags" is not = available. ) at /usr/src/sys/kern/sched_ule.c:1844 Previous frame inner to this frame (corrupt stack?)