JDK-4344299 : Segmentation fault with Hotspot VM, Classic VM works
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2000-06-08
  • Updated: 2000-07-20
  • Resolved: 2000-07-20
Related Reports
Duplicate :  
Relates :  
Description

Name: stC104175			Date: 06/08/2000


Using the Hotspot VM, the segmentation fault occurs before getting here.

Running "java", "javac" or any other tool immediately leads to a segmentation
fault. Using "java -classic" works fine. I am working with Suse Linux 6.4.

The last few lines of "strace -fi -s 256 java -hotspot" output read as follows:

[400d1d8d] stat("/opt/local/jdk1.3/jre/lib/i386/hotspot/libjvm.so",
{st_mode=S_IFREG|0644, st_size=4705628, ...}) = 0
[4000e894] open("/opt/local/jdk1.3/jre/lib/i386/hotspot/libjvm.so", O_RDONLY) =
3
[4000e77d] fstat(3, {st_mode=S_IFREG|0644, st_size=4705628, ...}) = 0
[4000e914] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\34\r\0004
\0\0\0\4\244?\0\0\0\0\0004\0 \0\3\0(\0#\0 \0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
G$\0 G$\0\5\0\0\0\0\20\0\0\1\0\0\0 G$\0 W$\0 W$\0\340\302\32\0l \34\0\6\0\0\0\0
\20\0\0\2\0\0\0000\t?\0000\31?\0000\31?\0\320\0\0\0\320\0\0\0\6\0\0\0\4\0\0\0\3
\20\0\0\263\37\0\0\203\37\0\0\"\35\0\0^\6\0\0j\1\0\0\372\30\0\0\246\24\0\0\212
\16\0\0_\t\0\0\201\26\0\0\323\7\0\0\23\25\0\0\334\r\0\0Q\31\0\0\32\30\0\0<\22\0
\0\262\33\0\0f\36\0\0\365\36\0\0\0\0\0\0\2\32\0\0y"..., 4096) = 4096
[4000f2bd] mmap(NULL, 4224908, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40200000
[4000f344] mprotect(0x40445000, 1845132, PROT_NONE) = 0
[4000f2bd] mmap(0x40445000, 1757184, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x244000) = 0x40445000
[4000f2bd] mmap(0x405f2000, 87948, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x405f2000
[4000e8cd] close(3)                     = 0
[4000e894] open("/opt/local/jdk1.3/jre/lib/i386/libstdc++-libc6.1-1.so.2",
O_RDONLY) = -1 ENOENT (No such file or directory)
[4000e894] open("/opt/local/jdk1.3/jre/lib/i386/native_threads/libstdc++-
libc6.1-1.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
[4000e894] open("/opt/local/jdk1.3/jre/lib/i386/hotspot/libstdc++-libc6.1-
1.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
[4000e894] open("/opt/local/jdk1.3/jre/../lib/i386/libstdc++-libc6.1-1.so.2",
O_RDONLY) = -1 ENOENT (No such file or directory)
[4000e894] open("/opt/local/pgsql-6.5.2/lib/libstdc++-libc6.1-1.so.2",
O_RDONLY) = -1 ENOENT (No such file or directory)
[4000e894] open("/opt/local/X11R6/lib/libstdc++-libc6.1-1.so.2", O_RDONLY) = -1
ENOENT (No such file or directory)
[4000e894] open("/opt/local/tcl/lib/libstdc++-libc6.1-1.so.2", O_RDONLY) = -1
ENOENT (No such file or directory)
[4000e894] open("/etc/ld.so.cache", O_RDONLY) = 3
[4000e77d] fstat(3, {st_mode=S_IFREG|0644, st_size=36286, ...}) = 0
[4000f2bd] mmap(NULL, 36286, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40015000
[4000e8cd] close(3)                     = 0
[4000e894] open("/usr/lib/libstdc++-libc6.1-1.so.2", O_RDONLY) = 3
[4000e77d] fstat(3, {st_mode=S_IFREG|0755, st_size=1225930, ...}) = 0
[4000e914] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\230\1
\0004\0\0\0(\360\20\0\0\0\0\0004\0 \0\3\0(\0!\0\36\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0
\0\0\310\212\3\0\310\212\3\0\5\0\0\0\0\20\0\0\1\0\0\0\340\212\3\0\340\232\3\0
\340\232\3\0\34\262\0\0\360\325\0\0\6\0\0\0\0\20\0\0\2\0\0\0D<\4\0DL\4\0DL\4\0
\270\0\0\0\270\0\0\0\6\0\0\0\4\0\0\0\7\4\0\0y\5\0\0\315\2\0\0*\4\0\0\0\0\0\0\0\0
\0\0[\5\0\0\320\4\0\0\271\1\0\0o\0\0\0\0\0\0\0\233\3\0\0\0\0\0\0\222\2\0\0\\\2\0
\0\27\5\0\0K\5\0\0\0\0\0\0F\5\0\0\0\0\0\0\354\4\0\0"..., 4096) = 4096
[4000f2bd] mmap(NULL, 291024, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40608000
[4000f344] mprotect(0x40641000, 57552, PROT_NONE) = 0
[4000f2bd] mmap(0x40641000, 49152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x38000) = 0x40641000
[4000f2bd] mmap(0x4064d000, 8400, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4064d000
[4000e8cd] close(3)                     = 0
[4000f301] munmap(0x40015000, 36286)    = 0
[400b6de1] gettimeofday({960476040, 665149}, NULL) = 0
[400d3094] open("/etc/fstab", O_RDONLY) = 3
[400d2328] fstat(3, {st_mode=S_IFREG|0644, st_size=420, ...}) = 0
[400dc1dd] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -
1, 0) = 0x40015000
[400d3154] read(3, "/dev/hda3       swap                      swap
defaults   0   0\n/dev/hda2       /                         ext2
defaults   1   1\n\n/dev/hdc        /cdrom                    iso9660
ro,noauto,user 0   0\n\n/dev/fd0        /floppy  "..., 4096) = 420
[400d310d] close(3)                     = 0
[400dc221] munmap(0x40015000, 4096)     = 0
[400d3094] open("/proc/cpuinfo", O_RDONLY) = 3
[400d2328] fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
[400dc1dd] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -
1, 0) = 0x40015000
[400d3154] read(3, "processor\t: 0\nvendor_id\t: GenuineIntel\ncpu family\t: 6
\nmodel\t\t: 5\nmodel name\t: Pentium II (Deschutes)\nstepping\t: 0\ncpu
MHz\t\t: 265.267990\ncache size\t: 512 KB\nfdiv_bug\t: no\nhlt_bug\t\t:
no\nsep_bug\t\t: no\nf00f_bug\t: no\ncoma_bug\t: no\nfpu\t\t:
yes\nfpu_exception\t: yes"..., 1024) = 387
[400d3154] read(3, "", 1024)            = 0
[400d310d] close(3)                     = 0
[400dc221] munmap(0x40015000, 4096)     = 0
[400b6de1] gettimeofday({960476040, 668411}, NULL) = 0
[400d204d] lstat("/opt", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
[400d204d] lstat("/opt/local", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
[400d204d] lstat("/opt/local/jdk1.3", {st_mode=S_IFDIR|0755,
st_size=1024, ...}) = 0
[400d204d] lstat("/opt/local/jdk1.3/jre", {st_mode=S_IFDIR|0755,
st_size=1024, ...}) = 0
[400d204d] lstat("/opt/local/jdk1.3/jre/lib", {st_mode=S_IFDIR|0755,
st_size=1024, ...}) = 0
[400d204d] lstat("/opt/local/jdk1.3/jre/lib/i386", {st_mode=S_IFDIR|0755,
st_size=1024, ...}) = 0
[400d204d] lstat("/opt/local/jdk1.3/jre/lib/i386/hotspot",
{st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
[400d204d] lstat("/opt/local/jdk1.3/jre/lib/i386/hotspot/libjvm.so",
{st_mode=S_IFREG|0644, st_size=4705628, ...}) = 0
[400d9114] brk(0x804e000)               = 0x804e000
[400d3094] open(".hotspotrc", O_RDONLY) = -1 ENOENT (No such file or directory)
[4005d85a] rt_sigaction(SIGSEGV, NULL, {SIG_DFL}, 8) = 0
[4005d85a] rt_sigaction(SIGSEGV, {0x40393690, ~[],
SA_STACK|SA_RESTART|SA_SIGINFO|0x4000000}, {SIG_DFL}, 8) = 0
[4005d85a] rt_sigaction(SIGPIPE, NULL, {SIG_DFL}, 8) = 0
[4005d85a] rt_sigaction(SIGPIPE, {0x40393690, ~[],
SA_RESTART|SA_SIGINFO|0x4000000}, {SIG_DFL}, 8) = 0
[4005d85a] rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
[4005d85a] rt_sigaction(SIGCHLD, {0x40393690, ~[],
SA_RESTART|SA_SIGINFO|SA_NOCLDSTOP|0x4000000}, {SIG_DFL}, 8) = 0
[4005d85a] rt_sigaction(SIGBUS, NULL, {SIG_DFL}, 8) = 0
[4005d85a] rt_sigaction(SIGBUS, {0x40393690, ~[],
SA_RESTART|SA_SIGINFO|0x4000000}, {SIG_DFL}, 8) = 0
[4005d85a] rt_sigaction(SIGILL, NULL, {SIG_DFL}, 8) = 0
[4005d85a] rt_sigaction(SIGILL, {0x40393690, ~[],
SA_RESTART|SA_SIGINFO|0x4000000}, {SIG_DFL}, 8) = 0
[4005d85a] rt_sigaction(SIGFPE, NULL, {SIG_DFL}, 8) = 0
[4005d85a] rt_sigaction(SIGFPE, {0x40393690, ~[],
SA_RESTART|SA_SIGINFO|0x4000000}, {SIG_DFL}, 8) = 0
[400dc1dd] mmap(0xbff7e000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xbff7e000
[400dc264] mprotect(0xbff7e000, 8192, PROT_NONE) = 0
[400dc1dd] mmap(0xbff7c000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xbff7c000
[4005e211] sigaltstack({ss_sp=0xbff7c000, ss_flags=0, ss_size=8192}, NULL) = 0
[4005d85a] rt_sigaction(SIGUSR1, {0x40393874, [],
SA_RESTART|SA_SIGINFO|0x4000000}, NULL, 8) = 0
[400d8c11] getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
[400d8c51] setrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
[400d9114] brk(0x804f000)               = 0x804f000
[400d9114] brk(0x8050000)               = 0x8050000
[4005d9e5] rt_sigprocmask(SIG_UNBLOCK, [INT QUIT USR1 TERM CHLD], NULL, 8) = 0
[40391db9] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
[403941d2] --- SIGSEGV (Segmentation fault) ---
upeek: ptrace(PTRACE_PEEKUSER, ... ): No such process
[????????] +++ killed by SIGSEGV +++
(Review ID: 105895) 
======================================================================

Comments
WORK AROUND Name: stC104175 Date: 06/08/2000 I made the Classic VM the default by fiddling around with jre/lib/jvm.cfg. ======================================================================
11-06-2004