Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* profiling on redhat/alpha goes core on startup
@ 1998-03-28 11:55 Uncle George
  1998-03-28 13:35 ` Andreas Johansson
  1998-03-31 10:47 ` Stefan Schroepfer
  0 siblings, 2 replies; 7+ messages in thread
From: Uncle George @ 1998-03-28 11:55 UTC (permalink / raw)
  To: axp-list@redhat.com; +Cc: redhat-devel-list@redhat.com

does profiling on alpha work. when i include the -pg switch, the
resulting executable
will go core before it ever hits main()

isn't there a libc_p.so for profiling? the core dump seems to be comming
from somewhere
in libc.so

any one got suggestions on how to debug this boo bo.

gdb javah <<EOF
r
where
q
y
EOF
strace javah
ldd javah


+ gdb javah

(gdb) Starting program:
/usr/src/t/JavaSoft_1.1.5/build/genunix/java/javah/javah

Program received signal SIGSEGV, Segmentation fault.
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x1555555b8bc

Otherwise, you told GDB there was a function where there isn't one, or
(more likely) you have encountered a bug in GDB.
0x1555555b8bc in ?? ()
(gdb) #0  0x1555555b8bc in ?? ()
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x1555555b8a8
(gdb)

+ strace javah
execve("./javah", ["javah"], [/* 22 vars */]) = 0
brk(0)                                  = 0x120166d30
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=01, st_size=891085538, ...}) = 0
mmap(0, 4831834960, PROT_READ, 0 /* MAP_??? */, 0, 0) = 0x15555566000
close(3)                                = 0
open("/lib/libdl.so.2.1", O_RDONLY)     = 3
mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555568000
mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x1555556a000
munmap(0x15555568000, 8192)             = 0
mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555666000
mprotect(0x1555566a000, 1041472, PROT_NONE) = 0
mmap(0x15555766000, 1041472, PROT_NONE, 0 /* MAP_??? */, 0, 0) =
0x15555766000
close(3)                                = 0
open("/lib/libc.so.6.1", O_RDONLY)      = 3
mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555568000
munmap(0x15555568000, 8192)             = 0
mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x1555576a000
mprotect(0x15555836000, 1154864, PROT_NONE) = 0
mmap(0x1555592a000, 1154864, PROT_NONE, 0 /* MAP_??? */, 0, 0) =
0x1555592a000
mmap(0x15555946000, 1154864, PROT_NONE, 0 /* MAP_??? */, 0, 0) =
0x15555946000
close(3)                                = 0
mprotect(0x120000000, 393216, PROT_READ|PROT_WRITE) = 0
mprotect(0x120000000, 393216, PROT_READ|PROT_EXEC) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

+ ldd javah
 libdl.so.2.1 => /lib/libdl.so.2.1 (0x000001555555c000)
 libc.so.6.1 => /lib/libc.so.6.1 (0x0000015555660000)
 /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000000000000000)



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

end of thread, other threads:[~1998-04-02 12:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-28 11:55 profiling on redhat/alpha goes core on startup Uncle George
1998-03-28 13:35 ` Andreas Johansson
1998-03-28 14:07   ` Uncle George
1998-03-31 10:47 ` Stefan Schroepfer
1998-03-31 11:15   ` Uncle George
1998-04-01 10:46     ` Stefan Schroepfer
1998-04-02 12:36       ` Uncle George

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