JDK-4420076 : Sun java 1.3.1beta build 15 dies with segmentation fault
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.3.1
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_2.4
  • CPU: x86
  • Submitted: 2001-02-28
  • Updated: 2021-11-09
  • Resolved: 2001-03-01
Related Reports
Duplicate :  
Description
Using:

 bali% cat /etc/redhat-release 
 Red Hat Linux release 7.0.90 (Fisher)

See:

http://www.redhat.com/apps/download/beta/rhl.html


After installing Sun java 1.3.1beta build 15 I request a version string
 but get a segmentation fault instead...

 Reproducible: Always
 Steps to Reproduce:

 1. Download and install j2sdk-1_3_1-beta-linux-i386.bin
     from java.sun.com

 2. Type:

     java -version

         

 Actual Results:  bali% ./java -version

 Unexpected Signal : 11 occurred at PC=0x401f3f9c
 Function name=start_thread__2osP6Thread
 Library=/usr/java1.3.1/jre/lib/i386/client/libjvm.so

 Current Java thread:

 Expected Results:  kuta% ./java -version
 java version "1.3.1-beta"
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b15)
 Java HotSpot(TM) Client VM (build 1.3.1beta-b15, mixed mode)
 kuta% 


 bali% ./java -version

 Unexpected Signal : 11 occurred at PC=0x401f3f9c
 Function name=start_thread__2osP6Thread
 Library=/usr/java1.3.1/jre/lib/i386/client/libjvm.so

 Current Java thread:

 zsh: segmentation fault  ./java -version
 bali% 
 bali% ./java 
 GNU gdb 5.0
 Copyright 2000 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you
 are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for details.
 This GDB was configured as "i386-redhat-linux"...
 (gdb) run -version
 Starting program: /usr/java1.3.1/bin/i386/native_threads/java -version
 [New Thread 1024 (LWP 1567)]
 [New Thread 2049 (LWP 1577)]
 Delayed SIGSTOP caught for LWP 1577.
 [New Thread 1026 (LWP 1578)]
 Delayed SIGSTOP caught for LWP 1578.
 LWP 1578 exited.

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 1024 (LWP 1567)]
 0x401f3f9c in os::start_thread () at eval.c:41
 41      eval.c: No such file or directory.
         in eval.c
 (gdb) 
 (gdb) 
 (gdb) where
 #0  0x401f3f9c in os::start_thread () at eval.c:41
 #1  0x40224237 in Threads::create_vm () at eval.c:41
 #2  0x401971d8 in JNI_CreateJavaVM () at eval.c:41
 #3  0x08049bca in InitializeJVM () at eval.c:41
 #4  0x08048fd0 in main () at eval.c:41
 #5  0x40444f11 in __libc_start_main (main=0x8048c90 <main>, argc=2,
 ubp_av=0xbffff93c, 
     init=0x8048974 <_init>, fini=0x804aaec <_fini>, rtld_fini=0x4000e214
 <_dl_fini>, 
     stack_end=0xbffff934) at ../sysdeps/generic/libc-start.c:129
 (gdb) 
 (gdb) info threads
   3 Thread 1026 (unknown thread_db state 1)  __strtol_internal (nptr=???,
 endptr=???, 
     base=???, group=???) at eval.c:36
   2 Thread 2049 (LWP 1577)  0x40500a07 in __poll (fds=0x808d1ac, nfds=1,
 timeout=2000)
     at ../sysdeps/unix/sysv/linux/poll.c:63
 * 1 Thread 1024 (LWP 1567)  0x401f3f9c in os::start_thread () at eval.c:41
 (gdb) 

 Linux version 2.4.0-0.99.11 (###@###.###) (gcc version 2.96
 20000731 (Red Hat Linux 7.0)) #1 Wed Jan 24 16:07:17 EST 2001

 bali% ldd -v libjvm.so            
         libnsl.so.1 => /lib/libnsl.so.1 (0x403ee000)
         libdl.so.2 => /lib/libdl.so.2 (0x40404000)
         libpthread.so.0 => /lib/libpthread.so.0 (0x40408000)
         libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2 (0x4041d000)
         libm.so.6 => /lib/libm.so.6 (0x40460000)
         libc.so.6 => /lib/libc.so.6 (0x40480000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)

         Version information:
         ./libjvm.so:
                 libm.so.6 (GLIBC_2.0) => /lib/libm.so.6
                 libm.so.6 (GLIBC_2.1) => /lib/libm.so.6
                 libdl.so.2 (GLIBC_2.1) => /lib/libdl.so.2
                 libdl.so.2 (GLIBC_2.0) => /lib/libdl.so.2
                 libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
                 libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
                 libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
                 libpthread.so.0 (GLIBC_2.1) => /lib/libpthread.so.0
         /lib/libnsl.so.1:
                 libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
                 libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
                 libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
                 libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
         /lib/libdl.so.2:
                 libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
                 libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
                 libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
                 libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
         /lib/libpthread.so.0:
                 libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
                 libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
                 libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
                 libc.so.6 (GLIBC_2.1.2) => /lib/libc.so.6
                 libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
         /usr/lib/libstdc++-libc6.1-1.so.2:
                 libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
                 libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
         /lib/libm.so.6:
                 libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
                 libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
         /lib/libc.so.6:
                 ld-linux.so.2 (GLIBC_2.1.1) => /lib/ld-linux.so.2
                 ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
                 ld-linux.so.2 (GLIBC_2.2) => /lib/ld-linux.so.2
                 ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2


Comments
WORK AROUND None
11-06-2004