From owner-freebsd-current@FreeBSD.ORG Sun Aug 3 01:24:56 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 85B1E37B401 for ; Sun, 3 Aug 2003 01:24:56 -0700 (PDT) Received: from vimes.aminor.no (vimes.aminor.no [213.187.177.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6BE843F75 for ; Sun, 3 Aug 2003 01:24:55 -0700 (PDT) (envelope-from eivind@aminor.no) Received: from [192.168.0.2] (rincewind.eivind [192.168.0.2]) by vimes.aminor.no (Postfix) with ESMTP id C880378E91 for ; Sun, 3 Aug 2003 10:25:09 +0200 (CEST) Date: Sun, 03 Aug 2003 10:26:02 +0200 From: Eivind Olsen To: current@freebsd.org Message-ID: <1249015.1059906362@[192.168.0.2]> In-Reply-To: References: X-Mailer: Mulberry/3.0.3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: Yet another crash in FreeBSD 5.1 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: Sun, 03 Aug 2003 08:24:56 -0000 --On 3. august 2003 00:31 -0400 John Baldwin wrote: > But you knew that. Also, Eivind, you need to use hex, not decimal > offsets from the functions. You might want to redo the g_dev_strategy() > line with 0x29 instead of 29. I already though about that so I tested the commands both with and without 0x in front of those numbers and I get exactly the same output, so it looks like gdb interprets them as hex anyway: (kgdb) list *(g_dev_strategy+0x29) 0xc02e8139 is in g_dev_strategy (/usr/src/sys/geom/geom_dev.c:415). 410 KASSERT(cp->acr || cp->acw, 411 ("Consumer with zero access count in g_dev_strategy")); 412 413 bp2 = g_clone_bio(bp); 414 KASSERT(bp2 != NULL, ("XXX: ENOMEM in a bad place")); 415 bp2->bio_offset = (off_t)bp->bio_blkno << DEV_BSHIFT; 416 KASSERT(bp2->bio_offset >= 0, 417 ("Negative bio_offset (%jd) on bio %p", 418 (intmax_t)bp2->bio_offset, bp)); 419 bp2->bio_length = (off_t)bp->bio_bcount; -- Regards / Hilsen Eivind Olsen