Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Oct 2004 17:25:29 -0500 (EST)
From:      Sam <sah@softcardsystems.com>
To:        freebsd-current@freebsd.org
Subject:   6.0 gprof bug?
Message-ID:  <Pine.LNX.4.60.0410281647200.12122@athena>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.60.0410281647200.12122>