Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* gprof on Alpha
@ 2000-02-23  7:35 W Bauske
  2000-02-23 14:03 ` Harvey J. Stein
  2000-02-23 16:55 ` Rolf Neugebauer
  0 siblings, 2 replies; 3+ messages in thread
From: W Bauske @ 2000-02-23  7:35 UTC (permalink / raw)
  To: axp-list@redhat.com


Ok, I'm trying to do some tuning and I set -pg in my make
file and recompiled all my code on my UP2000. Then run a
test and it generates a gmon.out just fine. So, then I try
a 'gprof my_binary' and it SEGV's in malloc. Traceback is:

(gdb) run `which zm31mig`
Starting program: /usr/local/bin/gprof `which zm31mig`
 
Program received signal SIGSEGV, Segmentation fault.
chunk_alloc (ar_ptr=0x2000033d748, nb=289232) at malloc.c:2857
malloc.c:2857: No such file or directory.
(gdb) bt
#0  chunk_alloc (ar_ptr=0x2000033d748, nb=289232) at malloc.c:2857
#1  0x20000192674 in __libc_malloc (bytes=2199026653000) at malloc.c:2616
#2  0x1200636cc in xmalloc (size=289216) at xmalloc.c:71
#3  0x12000b9e4 in hist_read_rec (ifp=0x1201e0230,
    filename=0x120064c56 "gmon.out") at hist.c:149
#4  0x120009e40 in gmon_out_read (filename=0x120064c56 "gmon.out")
    at gmon_io.c:121
#5  0x12000b3bc in main (argc=2, argv=0x11ffff858) at gprof.c:555
#6  0x2000014ffb0 in __libc_start_main (main=0x12000aa60 <main>, argc=2,
    argv=0x11ffff858, init=0x1200019e0 <_init>, fini=0x120063aa0 <_fini>,
    rtld_fini=0x2000033d748 <main_arena>, stack_end=0x11ffff840)
    at ../sysdeps/generic/libc-start.c:78

I tried a couple versions of gprof which I happened to have
laying around and they die the same way. I recall this worked
at one point, probably with RH5.2 or so. Current setup is RH6.0
on this system. Anyone got this working with RH6.0 or maybe RH6.1?
I can upgrade if needed to RH6.1.

Any suggestions appreciated.


Wes


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-02-23 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-23  7:35 gprof on Alpha W Bauske
2000-02-23 14:03 ` Harvey J. Stein
2000-02-23 16:55 ` Rolf Neugebauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox