From owner-freebsd-current@FreeBSD.ORG Thu Oct 28 21:28:01 2004 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 9D1CD16A4CE for ; Thu, 28 Oct 2004 21:28:01 +0000 (GMT) Received: from athena.softcardsystems.com (mail.softcardsystems.com [12.34.136.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DFE943D41 for ; Thu, 28 Oct 2004 21:28:01 +0000 (GMT) (envelope-from sah@softcardsystems.com) Received: from athena (athena [12.34.136.114])i9SMPTIH022803 for ; Thu, 28 Oct 2004 17:25:29 -0500 Date: Thu, 28 Oct 2004 17:25:29 -0500 (EST) From: Sam X-X-Sender: sah@athena To: freebsd-current@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: 6.0 gprof bug? 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, 28 Oct 2004 21:28:01 -0000 Hello - I'm trying to do some kernel profiling and have hit a snag in gprof, running on -current: (gdb) run /boot/kernel/kernel /root/kernel.gmon Starting program: /mnt/usr/6src/src2/usr.bin/gprof/gprof /boot/kernel/kernel /root/kernel.gmon Program received signal SIGFPE, Arithmetic exception. 0x080493f0 in openpfile (filename=0xbfbfee5b "/root/kernel.gmon") at gprof.c:311 311 nsamples = sampbytes / histcounter_size; (gdb) where #0 0x080493f0 in openpfile (filename=0xbfbfee5b "/root/kernel.gmon") at gprof.c:311 #1 0x080491e1 in getpfile (filename=0xbfbfee5b "/root/kernel.gmon") at gprof.c:247 #2 0x08049125 in main (argc=2, argv=0xbfbfed68) at gprof.c:188 histcounter_type == 1 and at line 304 we: histcounter_size = abs(histcounter_type) / CHAR_BIT; Anyone familiar with this code that can toss me a clue? Sam