From nobody@FreeBSD.org  Wed Apr  5 07:45:57 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id 35B3D37BE0D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  5 Apr 2000 07:45:57 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id HAA20663;
	Wed, 5 Apr 2000 07:45:57 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200004051445.HAA20663@freefall.freebsd.org>
Date: Wed, 5 Apr 2000 07:45:57 -0700 (PDT)
From: christor@ug.cs.sunysb.edu
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: gprof gives error: 
X-Send-Pr-Version: www-1.0

>Number:         17812
>Category:       gnu
>Synopsis:       gprof gives error:
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr  5 07:50:01 PDT 2000
>Closed-Date:    Fri Nov 16 16:49:56 PST 2001
>Last-Modified:  Fri Nov 16 16:50:27 PST 2001
>Originator:     Christopher Rued
>Release:        3.3-RELEASE
>Organization:
>Environment:
FreeBSD laptop.smurfy.net 3.3-RELEASE FreeBSD 3.3-RELEASE #5: Tue Mar 28 17:06:51 EST 2000     chris@laptop.smurfy.net:/usr/src/sys/compile/LAPTOP  i386
>Description:
The gprof program seems to want to use an enormous amount of memory, even for very simple programs.

On my system at home (uname -a output: FreeBSD laptop.smurfy.net 3.3-RELEASE FreeBSD 3.3-RELEASE #5: Tue Mar 28 17:06:51 EST 2000     chris@laptop.smurfy.net:/usr/src/sys/compile/LAPTOP  i386) I get the output:

Killed

In addition, the output "swap_pager: out of swap space" is sent to the console.
---
On a FreeBSD system at school (uname -a output: FreeBSD public.ug.cs.sunysb.edu 3.2-RELEASE FreeBSD 3.2-RELEASE #1: Fri Aug 6 15:34:52 EDT 1999     root@:/A/src/sys/compile/PUBLIC  i386) gprof gives the output:

gprof: no room for 67268600 sample pc's
>How-To-Repeat:
Create a C program (hello.c):
int main(void){
  printf("hello world!\n);
}

Then compile it with:
$ gcc -pg -o hello hello.c

Then run:
gprof hello
>Fix:


>Release-Note:
>Audit-Trail:

From: David Malone <dwmalone@maths.tcd.ie>
To: freebsd-gnats-submit@FreeBSD.org, christor@ug.cs.sunysb.edu
Cc:  
Subject: Re: gnu/17812: gprof gives error
Date: Fri, 07 Apr 2000 21:01:27 +0100

 Gprof seems to work OK for me on 3.4-STABLE. I'd guess you have a
 gmon.out file which is corrupt or for a different type of system.
 For me it produced a file called hello.gmon, so I had to give this
 on the command line.
 
 	David.
 
 182% cat hello.c
 #include <stdio.h>
 
 int main(void){
        printf("hello world!\n");
      }
 183% gcc -pg -o hello hello.c
 184% ls -l
 total 55
 -rwxr-xr-x  1 dwmalone  wheel  54638 Apr  7 20:55 hello
 -rw-r--r--  1 dwmalone  wheel     76 Apr  7 20:53 hello.c
 185% ./hello
 hello world!
 186% ls -l
 total 74
 -rwxr-xr-x  1 dwmalone  wheel  54638 Apr  7 20:55 hello
 -rw-r--r--  1 dwmalone  wheel     76 Apr  7 20:53 hello.c
 -rw-r--r--  1 dwmalone  wheel  18482 Apr  7 20:55 hello.gmon
 187% gprof hello hello.gmon
 <gmon output follows>
 
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Fri Nov 16 16:20:11 PST 2001 
State-Changed-Why:  

Does this problem still exist on more recent releases? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=17812 
State-Changed-From-To: feedback->closed 
State-Changed-By: iedowse 
State-Changed-When: Fri Nov 16 16:49:56 PST 2001 
State-Changed-Why:  

Mail to submitter bounces, and I can't reproduce the problem. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=17812 
>Unformatted:
