From owner-freebsd-net@FreeBSD.ORG Fri Aug 31 10:35:28 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64E1216A468 for ; Fri, 31 Aug 2007 10:35:28 +0000 (UTC) (envelope-from magpasikat@yahoo.com) Received: from n8a.bullet.mail.re3.yahoo.com (n8a.bullet.mail.re3.yahoo.com [68.142.236.46]) by mx1.freebsd.org (Postfix) with SMTP id 2739D13C46B for ; Fri, 31 Aug 2007 10:35:28 +0000 (UTC) (envelope-from magpasikat@yahoo.com) Received: from [68.142.230.29] by n8.bullet.re3.yahoo.com with NNFMP; 31 Aug 2007 10:22:00 -0000 Received: from [66.196.101.133] by t2.bullet.re2.yahoo.com with NNFMP; 31 Aug 2007 10:22:00 -0000 Received: from [127.0.0.1] by rrr4.mail.re1.yahoo.com with NNFMP; 31 Aug 2007 10:22:00 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 757548.76608.bm@rrr4.mail.re1.yahoo.com Received: (qmail 8352 invoked by uid 60001); 31 Aug 2007 10:20:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=WCkYkJqpHLzAvxKqYIiINju67a7Rq6BW5aWZMW+Hh0AKAzR2h4lHinn6CtEs97PYNAKGHLqRMUFY5edJ9wGiTqvKQa3RUplJF34xE45R4OT1JST0o3/OvHZkWIiRCpV0xjoekN65KXe+TEhocQH7NwTEDnN5Mqp5iMvhkUC3fBY=; X-YMail-OSG: BKsEXiwVM1k0UsWMJ1DkTrE1BgrEK8GqBu21BSDnn01U2C4ZK3y1SLEqDQbgJSffbUsJmMbKHI09fAkVNASTdU2g3sv5yLNcn1eZ Received: from [58.71.34.138] by web44906.mail.sp1.yahoo.com via HTTP; Fri, 31 Aug 2007 03:20:55 PDT Date: Fri, 31 Aug 2007 03:20:55 -0700 (PDT) From: Martha Pasikatan To: freebsd-net@freebsd.org MIME-Version: 1.0 Message-ID: <731920.7976.qm@web44906.mail.sp1.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Panic experienced in ng_snd_item X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2007 10:35:28 -0000 Hi, The system panicked while I was running a program that uses netgraph heavily. This is the panic that showed. Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x10 fault code = supervisor read, page not present instruction pointer = 0x8:0xffffffff804fa6c4 stack pointer = 0x10:0xffffffffa5641b30 frame pointer = 0x10:0xffffffff9a6cb0a0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 12 (swi4: clock sio) trap number = 12 panic: page fault When I did list *0xffffffff804fa6c4, this is what appeared: 0xffffffff804fa6c4 is in ng_snd_item (/usr/src/sys/netgraph/ng_base.c:2172). 2167 2168 int 2169 ng_snd_item(item_p item, int flags) 2170 { 2171 hook_p hook = NGI_HOOK(item); 2172 node_p node = NGI_NODE(item); 2173 int queue, rw; 2174 struct ng_queue * ngq = &node->nd_input_queue; 2175 int error = 0; 2176 The backtrace shows #0 doadump () at pcpu.h:172 #1 0x0000000000000004 in ?? () #2 0xffffffff804326f7 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 #3 0xffffffff80432d91 in panic (fmt=0xffffff003dbbdbe0 "Xû=") at /usr/src/sys/kern/kern_shutdown.c:565 #4 0xffffffff8069726f in trap_fatal (frame=0xffffff003dbbdbe0, eva=18446742975233639256) at /usr/src/sys/amd64/amd64/trap.c:660 #5 0xffffffff8069758f in trap_pfault (frame=0xffffffffa5641a80, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:573 #6 0xffffffff80697843 in trap (frame= {tf_rdi = 0, tf_rsi = 0, tf_rdx = 582, tf_rcx = -1098475906080, tf_r8 = 1, tf_r9 = -1098475906080, tf_rax = 0, tf_rbx = 0, tf_rbp = -1704152928, tf_r10 = -2136924776, tf_r11 = 0, tf_r12 = 0, tf_r13 = 4, tf_r14 = 0, tf_r15 = -2142253296, tf_trapno = 12, tf_addr = 16, tf_flags = -1098475906080, tf_err = 0, tf_rip = -2142263612, tf_cs = 8, tf_rflags = 66178, tf_rsp = -1520166080, tf_ss = 0}) at /usr/src/sys/amd64/amd64/trap.c:352 #7 0xffffffff80682a2b in calltrap () at /usr/src/sys/amd64/amd64/exception.S:168 #8 0xffffffff804fa6c4 in ng_snd_item (item=0x0, flags=0) at /usr/src/sys/netgraph/ng_base.c:2170 #9 0xffffffff804423d5 in softclock (dummy=0x0) at /usr/src/sys/kern/kern_timeout.c:290 #10 0xffffffff80417e79 in ithread_loop (arg=0xffffff0000d0c960) at /usr/src/sys/kern/kern_intr.c:682 #11 0xffffffff80416617 in fork_exit (callout=0xffffffff80417d30 , arg=0xffffff0000d0c960, frame=0xffffffffa5641c50) at /usr/src/sys/kern/kern_fork.c:821 #12 0xffffffff80682d8e in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:394 I was surprised to find the ng_send_item having a null item passed as a parameter. I believe it can't have been a call from NG_FWD_ITEM because it checks for the validity of the parameters passed to it. It is likely that the calling function was ng_callout_trampoline. Now, I'm at a loss as to where to proceed from here. Does anyone have an idea or clue as to what is causing this? Any help, suggestion, or advice is welcome. Matt --------------------------------- Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.