1 Reply Latest reply: Jul 1, 2009 6:46 PM by 843829 RSS

    Hotspot VM Crashes with SIGSEGV when running Tomcat.

      HotSpot Virtual machine crashes often when running Tomcat.

      System information :
      Java : 1.4.2_19-b04
      OS : Red Hat Linux release 6.2 (2.2.14)
      GLib: : glibc 2.1.3 stable linuxthreads (fixed stack).
      Tomcat : 4.1.31

      Description of the problem:
      Crash is arbitrary. I have checked the System logs , hs_err_pid logs and core
      dumps but couldn't find anything of importance. Upgrading to later java versions cannot
      be a option. According to hs_err_pid logs the problem seems to be somewhere between
      JVM internal code and glibc/pthread.

      I have included part of the generated hs_err_pid file below [Removed Process & Dynamic libraries section],
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #  SIGSEGV (0xb) at pc=0x4004fc7b, pid=4446, tid=0
      # Java VM: Java HotSpot(TM) Server VM (1.4.2_19-b04 mixed mode)
      # Problematic frame:
      # C  [libc.so.6+0x1ec7b]  sigprocmask+0x2b
      ---------------  T H R E A D  ---------------
      Current thread is native thread
      siginfo:si_signo=11, si_errno=0, si_code=0, si_addr=0x00000000
      Stack: [0x0900e000,0x09200000),  sp=0x09200180,  free space=1992k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C  [libc.so.6+0x1ec7b]  sigprocmask+0x2b
      V  [libjvm.so+0x3c26db]
      V  [libjvm.so+0x3c10d4]
      C  [libpthread.so.0+0x85e1]  pthread_kill+0x1f9
      ...<more frames>...
      VM state:not at safepoint (normal execution)
      VM Mutex/Monitor currently owned by a thread: None
       def new generation   total 3712K, used 2172K [0x45ac0000, 0x45ec0000, 0x49240000)
        eden space 3328K,  53% used [0x45ac0000, 0x45c7f3e8, 0x45e00000)
        from space 384K,  99% used [0x45e00000, 0x45e5fff8, 0x45e60000)
        to   space 384K,   0% used [0x45e60000, 0x45e60000, 0x45ec0000)
       tenured generation   total 32608K, used 29285K [0x49240000, 0x4b218000, 0x64ec0000)
         the space 32608K,  89% used [0x49240000, 0x4aed9630, 0x4aed9800, 0x4b218000)
       compacting perm gen  total 16384K, used 11459K [0x64ec0000, 0x65ec0000, 0x68ec0000)
         the space 16384K,  69% used [0x64ec0000, 0x659f0f38, 0x659f1000, 0x65ec0000)
      VM Arguments:
      jvm_args: -Xmx500m -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Djava.awt.headless=true -Djava.endorsed.dirs=/usr/local/jakarta-tomcat-4.1.31/common/endorsed -Dcatalina.base=/usr/local/jakarta-tomcat-4.1.31 -Dcatalina.home=/usr/local/jakarta-tomcat-4.1.31 -Djava.io.tmpdir=/usr/local/jakarta-tomcat-4.1.31/temp
      java_command: org.apache.catalina.startup.Bootstrap start
      Launcher Type: SUN_STANDARD
      ---------------  S Y S T E M  ---------------
      OS:Red Hat Linux release 6.2 (Zoot)
      uname:Linux 2.2.14 #1 SMP Mon Feb 13 13:09:53 JST 2006 i686
      libc:glibc 2.1.3 stable linuxthreads (fixed stack)
      rlimit: STACK 2040k, CORE 1000000k, NPROC 256, NOFILE 1024, AS infinity
      load average:0.00 4701099795014399489389371966364966604103084524931260758624169931369341508829845165398119923901913548704374568764363022330506064087116971168727978016953887481258844521567076680204288.00 0.00
      CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse
      Memory: 4k page, physical 2074568k(219444k free), swap 2096440k(2094732k free)
      vm_info: Java HotSpot(TM) Server VM (1.4.2_19-b04) for linux-x86, built on Nov  9 2008 21:49:09 by unknown with unknown compiler
      Core dump back trace obtained during a similar crash .
      #0  0x402cbd75 in AbstractInterpreter::ignore_safepoints () from /usr/java/j2sdk1.4.2_19/jre/lib/i386/client/libjvm.so
      (gdb) backtrace
      #0  0x402cbd75 in AbstractInterpreter::ignore_safepoints () from /usr/java/j2sdk1.4.2_19/jre/lib/i386/client/libjvm.so
      #1  0x403ac66c in SafepointSynchronize::end () from /usr/java/j2sdk1.4.2_19/jre/lib/i386/client/libjvm.so
      #2  0x403fa519 in VMThread::loop () from /usr/java/j2sdk1.4.2_19/jre/lib/i386/client/libjvm.so
      #3  0x403fa11a in VMThread::run () from /usr/java/j2sdk1.4.2_19/jre/lib/i386/client/libjvm.so
      #4  0x4038eea3 in java_start () from /usr/java/j2sdk1.4.2_19/jre/lib/i386/client/libjvm.so
      #5  0x4001fb85 in pthread_start_thread (arg=0xbf7ffe40) at manager.c:241
      If any one has experienced a similar problem and knows a workaround or any advice on this issue would be helpful.

      Thank you.