1 Reply Latest reply on Jun 12, 2013 8:48 PM by jschellSomeoneStoleMyAlias

    mprotect failed: Resource temporarily unavailable error while starting JVM

    1013265
      Hi All,

      I am using JDK 1.6.0_21 in sunos on sparc server.

      JDK_
      java version "1.6.0_21"
      Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
      Java HotSpot(TM) Server VM (build 17.0-b17, mixed mode)

      OS and Hardware config_
      SunOS 5.10 Generic_142900-11 sun4u sparc SUNW,SPARC-Enterprise.

      while starting the JVM getting the mprotect error as shown below:

      *# V [libjvm.so+0x16af10] int frame::interpreter_frame_bci()const+0x14*
      *#*
      *# An error report file with more information is saved as:*
      *# /progs/spider/runtime/testtool/hs_err_pid11769.log*
      *#*
      *# If you would like to submit a bug report, please visit:*
      *# http://java.sun.com/webapps/bugreport/crash.jsp*
      *#*
      *11769 Abort - core dumped*
      dl failure on line 685Error: failed /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/server/libjvm.so, because ld.so.1: java: fatal: /usr/jdk/instanes/jdk1.6.0/jre/lib/sparc/server/libjvm.so: mprotect failed: Resource temporarily unavailable

      Complete error written to */progs/spider/runtime/testtool/hs_err_pid11769.log*.
      *#*
      *# A fatal error has been detected by the Java Runtime Environment:*
      *#*
      *# SIGSEGV (0xb) at pc=0xfe56af10, pid=11769, tid=5*
      *#*
      *# JRE version: 6.0_35-b10*
      *# Java VM: Java HotSpot(TM) Server VM (20.10-b01 mixed mode solaris-sparc )*
      *# Problematic frame:*
      *# V [libjvm.so+0x16af10] int frame::interpreter_frame_bci()const+0x14*
      *#*
      *# If you would like to submit a bug report, please visit:*
      *# http://java.sun.com/webapps/bugreport/crash.jsp*
      *#*

      ---------------  T H R E A D  ---------------

      *Current thread (0x000e1400):  VMThread [stack: 0xd7500000,0xd7580000] [id=5]*

      siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0xf24ff724

      Registers:
      G1=0x000504b8 G2=0xfc004fc0 G3=0xfc00d6ac G4=0xfc031fc0
      G5=0x0002d000 G6=0x00000000 G7=0xfe3c1a00 Y=0x00000000
      O0=0xd757f5f0 O1=0xf24ff720 O2=0xfee237bc O3=0x0000ffff
      O4=0x0000fc00 O5=0xfc004f88 O6=0xd757f4b8 O7=0xfe8b978c
      L0=0x00041400 L1=0xfee375e8 L2=0x04000000 L3=0x00041400
      L4=0x000415f0 L5=0x00041400 L6=0x000415e8 L7=0x01000000
      I0=0xd757f5f0 I1=0xfee2fa94 I2=0xfedf6000 I3=0x00039a94
      I4=0x0053c690 I5=0xf24ff720 I6=0xd757f518 I7=0xfe5d6b58
      PC=0xfe56af10 nPC=0xfe56af14


      Top of Stack: (sp=0xd757f4b8)
      *0xd757f4b8: 00041400 fee375e8 04000000 00041400*
      *0xd757f4c8: 000415f0 00041400 000415e8 01000000*
      *0xd757f4d8: d757f5f0 fee2fa94 fedf6000 00039a94*
      *0xd757f4e8: 0053c690 f24ff720 d757f518 fe5d6b58*
      *0xd757f4f8: 00000000 00000000 f1b78050 00000003*
      *0xd757f508: 000d0374 fffffffd 00000000 000ad1f8*
      *0xd757f518: 00000000 fc004f88 fc00d6ac f24ff720*
      *0xd757f528: 00000000 00704518 00000003 d757f830*

      Instructions: (pc=0xfe56af10)
      *0xfe56aef0: e6 26 24 50 81 c7 e0 08 81 e8 20 00 9d e3 bf a0*
      *0xfe56af00: fa 06 20 00 19 00 00 3f 90 10 00 18 96 03 23 ff*
      *0xfe56af10: f2 07 60 04 9f 3e 60 00 94 22 c0 0f b9 33 f0 3f*
      *0xfe56af20: b7 32 b0 3f b0 1f 20 01 b4 1e e0 01 ae 0e 00 1a*

      Register to memory mapping:

      G1=0x000504b8 is an unknown value
      G2=0xfc004fc0 is pointing into interpreter code (not bytecode specific)
      G3=0xfc00d6ac is an Interpreter codelet
      method entry point (kind = native)  [0xfc00d560, 0xfc00d8e0]  896 bytes
      G4=0xfc031fc0 is an unknown value
      G5=0x0002d000 is an unknown value
      G6=0x00000000 is an unknown value
      G7=0xfe3c1a00 is an unknown value

      O0=0xd757f5f0 is an unknown value
      O1=0xf24ff720 is an unallocated location in the heap
      O2=0xfee237bc: +0x2cc3c in /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/server/libjvm.so at 0xfe400000
      O3=0x0000ffff is an unknown value
      O4=0x0000fc00 is an unknown value
      *O5=0xfc004f88 [CodeBlob (0xfc004f88)]*
      Framesize: 0
      BufferBlob (0xfc004f88) used for Interpreter
      O6=0xd757f4b8 is an unknown value
      O7=0xfe8b978c: AsyncGetCallTrace+0x96fc in /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/server/libjvm.so at 0xfe400000

      L0=0x00041400 is an unknown value
      L1=0xfee375e8: +0x40a68 in /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/server/libjvm.so at 0xfe400000
      L2=0x04000000 is an unknown value
      L3=0x00041400 is an unknown value
      L4=0x000415f0 is an unknown value
      L5=0x00041400 is an unknown value
      L6=0x000415e8 is an unknown value
      L7=0x01000000 is an unknown value

      I0=0xd757f5f0 is an unknown value
      I1=0xfee2fa94: +0x38f14 in /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/server/libjvm.so at 0xfe400000
      *I2=0xfedf6000: GLOBALOFFSET_TABLE_+0 in /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/server/libjvm.so at 0xfe400000*
      I3=0x00039a94 is an unknown value
      I4=0x0053c690 is an unknown value
      I5=0xf24ff720 is an unallocated location in the heap
      I6=0xd757f518 is an unknown value
      I7=0xfe5d6b58: JVM_GetClassLoader+0x3ec0 in /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/server/libjvm.so at 0xfe400000


      Stack: [0xd7500000,0xd7580000],  sp=0xd757f4b8,  free space=509k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      *V  [libjvm.so+0x16af10] int frame::interpreter_frame_bci()const+0x14*
      *V  [libjvm.so+0x1d6b60] void frame::gc_prologue()+0x20*
      *V  [libjvm.so+0x2241e4] void Threads::gc_prologue()+0xd0*
      *V  [libjvm.so+0x7c62c8] void PSMarkSweep::invoke_no_policy(bool)+0x52c*
      *V  [libjvm.so+0x7c5d78] void PSMarkSweep::invoke(bool)+0x8c*
      *V  [libjvm.so+0x225264] void VM_ParallelGCSystemGC::doit()+0xc4*
      *V  [libjvm.so+0x1f0018] void VM_Operation::evaluate()+0x88*
      *V  [libjvm.so+0x8ce23c] void VMThread::evaluate_operation(VM_Operation*)+0xd4*
      *V  [libjvm.so+0x8ce784] void VMThread::loop()+0x414*
      *V  [libjvm.so+0x267010] void VMThread::run()+0xa0*
      *V  [libjvm.so+0x791a18] java_start+0x158*

      VM_Operation (0xf24ff5b0):
      *[error occurred during error reporting (printing VM operation), id 0xb]*


      ---------------  P R O C E S S  ---------------

      Java Threads: ( => current thread )
      *0x00704400 JavaThread "GC Daemon" daemon [_thread_blocked, id=20, stack(0xf2480000,0xf2500000)]*
      *0x00716400 JavaThread "RMI Reaper" [_thread_blocked, id=19, stack(0xf2580000,0xf2600000)]*
      *0x0070fc00 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=18, stack(0xf2680000,0xf2700000)]*
      *0x00100800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=11, stack(0xd6f00000,0xd6f80000)]*
      *0x000fe000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=10, stack(0xd7000000,0xd7080000)]*
      *0x000fb800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=9, stack(0xd7100000,0xd7180000)]*
      *0x000fa000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=8, stack(0xd7200000,0xd7280000)]*
      *0x000e6c00 JavaThread "Finalizer" daemon [_thread_blocked, id=7, stack(0xd7300000,0xd7380000)]*
      *0x000e5400 JavaThread "Reference Handler" daemon [_thread_blocked, id=6, stack(0xd7400000,0xd7480000)]*
      *0x00032000 JavaThread "main" [_thread_blocked, id=2, stack(0xfe300000,0xfe380000)]*

      Other Threads:
      *=>0x000e1400 VMThread [stack: 0xd7500000,0xd7580000] [id=5]*
      *0x00113400 WatcherThread [stack: 0xd6e00000,0xd6e80000] [id=12]*

      VM state:at safepoint (normal execution)

      *VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])*
      *[0x00031330] Threads_lock - owner thread: 0x000e1400*
      *[0x00031740] Heap_lock - owner thread: 0x00704400*

      Heap
      PSYoungGen      total 10752K, used 1008K [0xf1000000, 0xf1c00000, 0xfbc00000)
      eden space 9216K, 0% used [0xf1000000,0xf1000000,0xf1900000)
      from space 1536K, 65% used [0xf1a80000,0xf1b7c050,0xf1c00000)
      to   space 1536K, 0% used [0xf1900000,0xf1900000,0xf1a80000)
      PSOldGen        total 24576K, used 0K [0xdb800000, 0xdd000000, 0xf1000000)
      object space 24576K, 0% used [0xdb800000,0xdb800000,0xdd000000)
      PSPermGen       total 16384K, used 7578K [0xd7800000, 0xd8800000, 0xdb800000)
      object space 16384K, 46% used [0xd7800000,0xd7f669c8,0xd8800000)

      Code Cache  [0xfc000000, 0xfc400000, 0xfe000000)
      total_blobs=188 nmethods=49 adapters=95 free_code_cache=33095232 largest_free_block=26368

      Dynamic libraries:
      *0x00010000 /usr/jdk/instances/jdk1.6.0/jre/bin/java*
      *0xff3a0000 /usr/lib/lwp/libthread.so.1*
      *0xff370000 /usr/jdk/instances/jdk1.6.0/jre/bin/../lib/sparc/jli/libjli.so*
      *0xff350000 /lib/libdl.so.1*
      *0xff200000 /lib/libc.so.1*
      *0xff390000 /platform/SUNW,SPARC-Enterprise/lib/libc_psr.so.1*
      *0xfe400000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/server/libjvm.so*
      *0xff1d0000 /lib/libsocket.so.1*
      *0xff1f0000 /usr/lib/libsched.so.1*
      *0xff1b0000 /lib/libm.so.1*
      *0xff180000 /usr/lib/libCrun.so.1*
      *0xff160000 /lib/libdoor.so.1*
      *0xff120000 /usr/lib/libdemangle.so.1*
      *0xff100000 /lib/libkstat.so.1*
      *0xff000000 /lib/libnsl.so.1*
      *0xfef00000 /lib/libm.so.2*
      *0xff0c0000 /lib/libscf.so.1*
      *0xfefe0000 /lib/libuutil.so.1*
      *0xfeee0000 /lib/libgen.so.1*
      *0xfeeb0000 /lib/libmd.so.1*
      *0xfee90000 /lib/libmp.so.2*
      *0xfe390000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libverify.so*
      *0xfe2c0000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libjava.so*
      *0xfe280000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libzip.so*
      *0xfe260000 /usr/lib/locale/no_NO.ISO8859-1@bokmal/no_NO.ISO8859-1@bokmal.so.3*
      *0xfbfc0000 /progs/spider/TIBCO/tibrv/8.3/lib/libtibrvj.so*
      *0xfbe60000 /progs/spider/TIBCO/tibrv/8.3/lib/libtibrvcmq.so*
      *0xfbe30000 /progs/spider/TIBCO/tibrv/8.3/lib/libtibrvcm.so*
      *0xfbe10000 /progs/spider/TIBCO/tibrv/8.3/lib/libtibrvft.so*
      *0xd6d80000 /progs/spider/TIBCO/tibrv/8.3/lib/libtibrv.so*
      *0xfbfe0000 /lib/libpthread.so.1*
      *0xfbd40000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libmanagement.so*
      *0xfbd10000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libj2pkcs11.so*
      *0xfbc40000 /usr/lib/libpkcs11.so*
      *0xfbc20000 /usr/lib/libcryptoutil.so.1*
      *0xf27a0000 /usr/lib/security/pkcs11_softtoken.so*
      *0xf2770000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libnet.so*

      VM Arguments:
      jvm_args: -Dlog.dir=/data/flowlogs/testtool -Djava.rmi.server.codebase=file:///progs/spider/flow_home/Output/java/classes/ -Djava.security.policy=/progs/spider/flow_home/config/flow2/props/java.policy -Dproperty_file=testtool.properties -Dtestdata=/progs/spider/flow_home/test/framework/testtool
      java_command: flow.framework.componentserver.Server
      Launcher Type: SUN_STANDARD

      Environment Variables:
      JAVA_HOME=/usr/jdk/jdk1.6.0_35
      PATH=/progs/spider/flow_home/bin:/progs/spider/flow_home/ant/bin:/usr/jdk/jdk1.6.0_35/bin:/usr/jdk/jdk1.6.0_35/jre/bin:/usr/bin:/usr/local/bin:/progs/spider/TIBCO/tibrv/8.3/bin:/progs/spider/TIBCO/inconcert/server/ICFLOWNEWUTV/bin
      LD_LIBRARY_PATH=/usr/jdk/instances/jdk1.6.0/jre/lib/sparc/server:/usr/jdk/instances/jdk1.6.0/jre/lib/sparc:/usr/jdk/instances/jdk1.6.0/jre/../lib/sparc::/usr/lib/lwp:/progs/spider/TIBCO/inconcert/icapps/shared/native/lib:/progs/spider/TIBCO/tibrv/8.3/lib:/progs/spider/flow_home/lib/tibco:/progs/spider/TIBCO/inconcert/icapps/icjava/lib:/progs/spider/TIBCO/inconcert/server/ICFLOWNEWUTV/lib:/progs/spider/TIBCO/tibrv/8.3/lib
      SHELL=/bin/bash

      Signal Handlers:
      *SIGSEGV: [libjvm.so+0x8ca71c], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c*
      *SIGBUS: [libjvm.so+0x8ca71c], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c*
      *SIGFPE: [libjvm.so+0x1d0f7c], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c*
      SIGPIPE: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
      *SIGXFSZ: [libjvm.so+0x1d0f7c], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c*
      *SIGILL: [libjvm.so+0x1d0f7c], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c*
      SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
      SIGUSR2: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
      *SIGQUIT: [libjvm.so+0x794044], sa_mask[0]=0xffbffeff, sa_flags=0x00000004*
      *SIGHUP: [libjvm.so+0x794044], sa_mask[0]=0xffbffeff, sa_flags=0x00000004*
      SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
      *SIGTERM: [libjvm.so+0x794044], sa_mask[0]=0xffbffeff, sa_flags=0x00000004*
      *SIG39: [libjvm.so+0x7976b8], sa_mask[0]=0x00000000, sa_flags=0x00000008*
      *SIG40: [libjvm.so+0x1d0f7c], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c*


      ---------------  S Y S T E M  ---------------

      OS:                      Solaris 10 10/09 s10s_u8wos_08a SPARC
      Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
      Use is subject to license terms.
      Assembled 16 September 2009

      uname:SunOS 5.10 Generic_142900-11 sun4u  (T2 libthread)
      rlimit: STACK 8192k, CORE 0k, NOFILE 65536, AS infinity
      load average:0,82 0,83 0,60

      CPU:total 2 has_v8, has_v9, popc, has_vis1, has_vis2, is_ultra3, is_sparc64

      Memory: 8k page, physical 2097152k(0k free)

      vm_info: Java HotSpot(TM) Server VM (20.10-b01) for solaris-sparc JRE (1.6.0_35-b10), built on Aug 28 2012 15:42:48 by "" with Workshop 5.8

      time: Thu Jun  6 07:45:16 2013
      elapsed time: 6 seconds

      Can any one help me what is happening.

      Regards,
      Satya Krishna Y

      Edited by: 1010262 on 06.jun.2013 07:55

      Edited by: 1010262 on 06.jun.2013 07:56