From owner-freebsd-current@FreeBSD.ORG Thu May 29 14:37:25 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A1D337B401 for ; Thu, 29 May 2003 14:37:25 -0700 (PDT) Received: from gravy.homeunix.net (pool-151-197-48-53.phil.east.verizon.net [151.197.48.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5206C43F93 for ; Thu, 29 May 2003 14:37:24 -0700 (PDT) (envelope-from bleez@verizon.net) Received: from gravy.homeunix.net (gravy.homeunix.net [192.168.1.2]) by gravy.homeunix.net (8.12.9/8.12.9) with ESMTP id h4TLbJ2Q000890; Thu, 29 May 2003 17:37:19 -0400 (EDT) (envelope-from bleez@verizon.net) Date: Thu, 29 May 2003 17:37:19 -0400 (EDT) From: Bryan Liesner To: Julian Elischer In-Reply-To: Message-ID: <20030529173249.K880@gravy.homeunix.net> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: panic: kern/52718 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2003 21:37:25 -0000 On Thu, 29 May 2003, Julian Elischer wrote: > without the correct keywords in your mail, it's unlikely either > the CAM or Mutex people would see it before then.... > Here's a copy of my original mail, which was pretty much ignored, with the exception of Terry Lambert. I feel that the subject was pretty clear. If it wasn't clear enough, then I stand corrected. Date: Mon, 26 May 2003 12:11:35 -0400 (EDT) From: Bryan Liesner To: freebsd-current@freebsd.org Subject: panic since changes to kern_umtx.c The change from kern_umtx.c rev 1.2 to 1.3 brought out the following panic on my system. The panic does not occur if I revert back to 1.2 or if I turn off my USB hard drive (uses EHCI) and run with rev 1.3 Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x8:0xc0135b0a7 stack pointer = 0x10:0xd68f2c48 frame pointer = 0x10:0xd68f2c64 code segment = base 0x0 limit 0xffff, type 0x1b processor eflags = interrupt enabled, resume, IOPL=0 current process = 12 (swi7: tty:sio clock) trap number = 12 panic page fault DDB says it was in heap_up+0x27 ... (kgdb) l *heap_up+0x27 0xc0136be7 is in heap_up (../../../cam/cam_queue.c:345). 340 * equal too, or greater than j respectively. 341 */ 342 static __inline int 343 queue_cmp(cam_pinfo **queue_array, int i, int j) 344 { 345 if (queue_array[i]->priority == queue_array[j]->priority) 346 return ( queue_array[i]->generation 347 - queue_array[j]->generation ); 348 else 349 return ( queue_array[i]->priority (kgdb) 350 - queue_array[j]->priority ); 351 } 352 353 /* 354 * swap: Given an array of cam_pinfo* elements and indexes i and j, 355 * exchange elements i and j. 356 */ 357 static __inline void 358 swap(cam_pinfo **queue_array, int i, int j) 359 {