From nobody  Thu Apr 24 10:25:27 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.5/8.8.5) id KAA19025;
          Thu, 24 Apr 1997 10:25:27 -0700 (PDT)
Message-Id: <199704241725.KAA19025@hub.freebsd.org>
Date: Thu, 24 Apr 1997 10:25:27 -0700 (PDT)
From: hafner@forwiss.tu-muenchen.de
To: freebsd-gnats-submit@freebsd.org
Subject: mprof dumps core on FreeBSD 2.2.1
X-Send-Pr-Version: www-1.0

>Number:         3379
>Category:       ports
>Synopsis:       mprof dumps core on FreeBSD 2.2.1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 24 10:30:01 PDT 1997
>Closed-Date:    Sun Nov 16 07:51:14 PST 1997
>Last-Modified:  Sun Nov 16 07:53:55 PST 1997
>Originator:     Walter Hafner
>Release:        2.2.1
>Organization:
FORWISS
>Environment:
FreeBSD pccog4 2.2.1-RELEASE FreeBSD 2.2.1-RELEASE #0
>Description:
tcsh > mprof a.out 
Segmentation fault (core dumped)

'nuff said
>How-To-Repeat:
tcsh > cat hello.c 
#include <stdio.h>
int main()
{
  printf("Hello!\n");
  return 0;
}

tcsh > gcc hello.c -lc_mp

tcsh > mprof a.out 
Segmentation fault (core dumped)

>Fix:
No fix! (I installed over FTP ... slow connection, so
I didn't get the sources ...)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports 
Responsible-Changed-By: joerg 
Responsible-Changed-When: Sun Aug 24 20:31:15 MEST 1997 
Responsible-Changed-Why:  
mprof is a ports item, it doesn't belong to the base system. 
State-Changed-From-To: open->closed 
State-Changed-By: jraynard 
State-Changed-When: Sun Nov 16 07:51:14 PST 1997 
State-Changed-Why:  
Pilot error.  For mprof to work: 

1. Program must call malloc (hint: what does mprof stand for :-) 
2. Program must be compiled with -g. 
3. Program must actually be run before calling mprof. 
>Unformatted:
