harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Wilson <jessewil...@google.com>
Subject Problems running Harmony+J9 on x86_64/Linux
Date Fri, 04 Sep 2009 01:46:04 GMT
Guys,
I recently updated the OS on my AMD64 box from 32-bit Ubuntu to 64-bit
Ubuntu. After updating and rebuilding Harmony (from clean), the J9 java
process just hangs forever. And I was careful to put the J9 files in their
proper place before I compiled anything.

Here's the output from file:

./working_classlib/deploy/jdk/jre/bin/java: ELF 64-bit LSB executable,
x86-64, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses
shared libs), not stripped

...and here's the output from strace:

execve("./working_classlib/deploy/jdk/jre/bin/java",
["./working_classlib/deploy/jdk/jr"...], [/* 64 vars */]) = 0
brk(0)                                  = 0x607000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f0a2c2d7000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f0a2c2d5000
readlink("/proc/self/exe",
"/usr/local/google/jesse/clients/jessewilson_h2/trunk/working_classlib/deploy/jdk/jre/bin/java",
4096) = 93
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
open("/usr/local/google/jesse/clients/jessewilson_h2/trunk/working_classlib/deploy/jdk/jre/bin/tls/x86_64/libhythr.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/google/jesse/clients/jessewilson_h2/trunk/working_classlib/deploy/jdk/jre/bin/tls/x86_64",
0x7fff342d5a30) = -1 ENOENT (No such file or directory)
open("/usr/local/google/jesse/clients/jessewilson_h2/trunk/working_classlib/deploy/jdk/jre/bin/tls/libhythr.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/google/jesse/clients/jessewilson_h2/trunk/working_classlib/deploy/jdk/jre/bin/tls",
0x7fff342d5a30) = -1 ENOENT (No such file or directory)
open("/usr/local/google/jesse/clients/jessewilson_h2/trunk/working_classlib/deploy/jdk/jre/bin/x86_64/libhythr.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/google/jesse/clients/jessewilson_h2/trunk/working_classlib/deploy/jdk/jre/bin/x86_64",
0x7fff342d5a30) = -1 ENOENT (No such file or directory)
open("/usr/local/google/jesse/clients/jessewilson_h2/trunk/working_classlib/deploy/jdk/jre/bin/libhythr.so",
O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200*\0\0"..., 832) =
832
fstat(3, {st_mode=S_IFREG|0640, st_size=139144, ...}) = 0
mmap(NULL, 2140584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f0a2beb0000
mprotect(0x7f0a2beba000, 2097152, PROT_NONE) = 0
mmap(0x7f0a2c0ba000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7f0a2c0ba000
mprotect(0x7fff342d6000, 4096,
PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
close(3)                                = 0
open("/usr/local/google/jesse/clients/jessewilson_h2/trunk/working_classlib/deploy/jdk/jre/bin/libhyprt.so",
O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360J\1\0"..., 832) =
832
fstat(3, {st_mode=S_IFREG|0640, st_size=780683, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f0a2c2d4000
mmap(NULL, 2293504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f0a2bc80000
mprotect(0x7f0a2bca9000, 2097152, PROT_NONE) = 0
mmap(0x7f0a2bea9000, 28672, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x29000) = 0x7f0a2bea9000
close(3)                                = 0
open("/usr/local/google/jesse/clients/jessewilson_h2/trunk/working_classlib/deploy/jdk/jre/bin/libc.so.6",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/firefox2/tls/x86_64/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat("/usr/lib/firefox2/tls/x86_64", 0x7fff342d59d0) = -1 ENOENT (No such
file or directory)
open("/usr/lib/firefox2/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat("/usr/lib/firefox2/tls", 0x7fff342d59d0) = -1 ENOENT (No such file or
directory)
open("/usr/lib/firefox2/x86_64/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat("/usr/lib/firefox2/x86_64", 0x7fff342d59d0) = -1 ENOENT (No such file
or directory)
open("/usr/lib/firefox2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat("/usr/lib/firefox2", 0x7fff342d59d0) = -1 ENOENT (No such file or
directory)
open("tls/x86_64/libc.so.6", O_RDONLY)  = -1 ENOENT (No such file or
directory)
open("tls/libc.so.6", O_RDONLY)         = -1 ENOENT (No such file or
directory)
open("x86_64/libc.so.6", O_RDONLY)      = -1 ENOENT (No such file or
directory)
open("libc.so.6", O_RDONLY)             = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=116786, ...}) = 0
mmap(NULL, 116786, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0a2c2b7000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\342"..., 832) =
832
fstat(3, {st_mode=S_IFREG|0755, st_size=1436976, ...}) = 0
mmap(NULL, 3543672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f0a2b91e000
mprotect(0x7f0a2ba76000, 2097152, PROT_NONE) = 0
mmap(0x7f0a2bc76000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x158000) = 0x7f0a2bc76000
mmap(0x7f0a2bc7b000, 17016, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0a2bc7b000
close(3)                                = 0
open("/usr/local/google/jesse/clients/jessewilson_h2/trunk/working_classlib/deploy/jdk/jre/bin/libm.so.6",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/x86_64/libm.so.6", O_RDONLY)  = -1 ENOENT (No such file or
directory)
open("tls/libm.so.6", O_RDONLY)         = -1 ENOENT (No such file or
directory)
open("x86_64/libm.so.6", O_RDONLY)      = -1 ENOENT (No such file or
directory)
open("libm.so.6", O_RDONLY)             = -1 ENOENT (No such file or
directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/libm.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260>\0\0"..., 832) =
832
fstat(3, {st_mode=S_IFREG|0644, st_size=526560, ...}) = 0
mmap(NULL, 2621672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f0a2b69d000
mprotect(0x7f0a2b71d000, 2093056, PROT_NONE) = 0
mmap(0x7f0a2b91c000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7f000) = 0x7f0a2b91c000
close(3)                                = 0
open("/usr/local/google/jesse/clients/jessewilson_h2/trunk/working_classlib/deploy/jdk/jre/bin/libdl.so.2",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/x86_64/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("tls/libdl.so.2", O_RDONLY)        = -1 ENOENT (No such file or
directory)
open("x86_64/libdl.so.2", O_RDONLY)     = -1 ENOENT (No such file or
directory)
open("libdl.so.2", O_RDONLY)            = -1 ENOENT (No such file or
directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \16\0\0"..., 832) =
832
fstat(3, {st_mode=S_IFREG|0644, st_size=14624, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f0a2c2b6000
mmap(NULL, 2109728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f0a2b499000
mprotect(0x7f0a2b49b000, 2097152, PROT_NONE) = 0
mmap(0x7f0a2b69b000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f0a2b69b000
close(3)                                = 0
open("/usr/local/google/jesse/clients/jessewilson_h2/trunk/working_classlib/deploy/jdk/jre/bin/libpthread.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/x86_64/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("tls/libpthread.so.0", O_RDONLY)   = -1 ENOENT (No such file or
directory)
open("x86_64/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("libpthread.so.0", O_RDONLY)       = -1 ENOENT (No such file or
directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260W\0\0"..., 832) =
832
fstat(3, {st_mode=S_IFREG|0755, st_size=130224, ...}) = 0
mmap(NULL, 2208624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f0a2b27d000
mprotect(0x7f0a2b293000, 2097152, PROT_NONE) = 0
mmap(0x7f0a2b493000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f0a2b493000
mmap(0x7f0a2b495000, 13168, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0a2b495000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f0a2c2b5000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f0a2c2b4000
arch_prctl(ARCH_SET_FS, 0x7f0a2c2b46e0) = 0
mprotect(0x7f0a2bc76000, 12288, PROT_READ) = 0
munmap(0x7f0a2c2b7000, 116786)          = 0
set_tid_address(0x7f0a2c2b4770)         = 2315
set_robust_list(0x7f0a2c2b4780, 0x18)   = 0
futex(0x7fff342d656c, 0x81 /* FUTEX_??? */, 1) = 0
rt_sigaction(SIGRTMIN, {0x7f0a2b2822d0, [], SA_RESTORER|SA_SIGINFO,
0x7f0a2b28b7d0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f0a2b282350, [],
SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f0a2b28b7d0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
brk(0)                                  = 0x607000
brk(0x62a000)                           = 0x62a000
futex(0x7f0a2c0ba4b0, 0x81 /* FUTEX_??? */, 2147483647) = 0
stat("/proc/meminfo", {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
open("/proc/meminfo", O_RDONLY)         = 3
fcntl(3, F_GETFD)                       = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
read(3, "MemTotal:      8235508 kB\nMemFre"..., 1023) = 630
close(3)                                = 0
open("/usr/lib/locale/locale-archive", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2586, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f0a2c2d3000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2586
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f0a2c2d3000, 4096)            = 0
open("/usr/lib/locale/en_US/LC_IDENTIFICATION", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=378, ...}) = 0
mmap(NULL, 378, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0a2c2d3000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_MEASUREMENT", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=28, ...}) = 0
mmap(NULL, 28, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0a2c2d2000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_TELEPHONE", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=64, ...}) = 0
mmap(NULL, 64, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0a2c2d1000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_ADDRESS", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=160, ...}) = 0
mmap(NULL, 160, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0a2c2d0000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_NAME", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=82, ...}) = 0
mmap(NULL, 82, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0a2c2cf000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_PAPER", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=39, ...}) = 0
mmap(NULL, 39, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0a2c2ce000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_MESSAGES", O_RDONLY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0
mmap(NULL, 57, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0a2c2cd000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_CTYPE", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=220516, ...}) = 0
mmap(NULL, 220516, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0a2c27e000
close(3)                                = 0
readlink("/proc/self/exe",
"/usr/local/google/jesse/clients/jessewilson_h2/trunk/working_classlib/deploy/jdk/jre/bin/java",
4096) = 93

I attempted in vain to compile old-school x86 binaries using
-Dharmony.arch=x86, but the make files that ant calls-through use the host
architecture instead of those properties.

Is there an obvious mistake I might be making? Or some configuration I might
be missing?

Thanks!
Jesse

PS - If nobody has any suggestions I'll open a bug to track this.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message