[Bug 489] New: javac crashed on low ulimit -n

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Tue May 11 06:15:38 PDT 2010


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=489

           Summary: javac crashed on low ulimit -n
           Product: IcedTea
           Version: 6-1.7.3
          Platform: all
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: IcedTea6
        AssignedTo: unassigned at icedtea.classpath.org
        ReportedBy: mvyskocil at suse.cz


I played with a ulimit -n and openjdk behavior. With a ulimit -n 15 the javac
crashed on build of my simple test program (just try to open all files from a
specified directory)



#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (exceptions.cpp:364), pid=19569, tid=139790182835984
#  Error: ExceptionMark destructor expects no pending exceptions
#
# JRE version: 6.0_17-b17
# Java VM: OpenJDK 64-Bit Server VM (14.0-b16 mixed mode linux-amd64 )
# Derivative: IcedTea6 1.7
# Distribution: Custom build (Sat Mar 27 00:37:55 UTC 2010)
# Can not save log file, dump to screen..
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (exceptions.cpp:364), pid=19569, tid=139790182835984
#  Error: ExceptionMark destructor expects no pending exceptions
#
# JRE version: 6.0_17-b17
# Java VM: OpenJDK 64-Bit Server VM (14.0-b16 mixed mode linux-amd64 )
# Derivative: IcedTea6 1.7
# Distribution: Custom build (Sat Mar 27 00:37:55 UTC 2010)
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
#

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

Current thread (0x000000000062a800):  JavaThread "main" [_thread_in_vm,
id=19570, stack(0x00007f237020e000,0x00007f237030f000)]

Stack: [0x00007f237020e000,0x00007f237030f000],  sp=0x00007f237030a770,  free
space=1009k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x68298f]
V  [libjvm.so+0x682b9b]
V  [libjvm.so+0x2d46c6]
V  [libjvm.so+0x320641]
V  [libjvm.so+0x2768a8]
V  [libjvm.so+0x277020]
V  [libjvm.so+0x2770b8]
V  [libjvm.so+0x275fc9]
V  [libjvm.so+0x61c38f]
V  [libjvm.so+0x61acdd]
V  [libjvm.so+0x61c933]
V  [libjvm.so+0x41086f]
V  [libjvm.so+0x4110e6]
V  [libjvm.so+0x411178]
C  [libjava.so+0x1224c]  Java_java_lang_Class_forName0+0x11c
j 
java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+0
j  java.lang.Class.forName(Ljava/lang/String;)Ljava/lang/Class;+5
j  sun.security.jca.Providers.getSunProvider()Ljava/security/Provider;+5
j  sun.security.util.ManifestEntryVerifier.<clinit>()V+8
v  ~StubRoutines::call_stub
V  [libjvm.so+0x3c5783]
V  [libjvm.so+0x3c4b08]
V  [libjvm.so+0x3925ab]
V  [libjvm.so+0x3927ec]
V  [libjvm.so+0x392c47]
V  [libjvm.so+0x3ba1d7]
j  java.util.jar.JarFile.initializeVerifier()V+40
j 
java.util.jar.JarFile.getInputStream(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;+25
j  sun.misc.URLClassPath$JarLoader$2.getInputStream()Ljava/io/InputStream;+11
j  sun.misc.Resource.cachedInputStream()Ljava/io/InputStream;+9
j  sun.misc.Resource.getByteBuffer()Ljava/nio/ByteBuffer;+1
j 
java.net.URLClassLoader.defineClass(Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;+179
j 
java.net.URLClassLoader.access$000(Ljava/net/URLClassLoader;Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;+3
j  java.net.URLClassLoader$1.run()Ljava/lang/Object;+43
v  ~StubRoutines::call_stub
V  [libjvm.so+0x3c5783]
V  [libjvm.so+0x3c4b08]
V  [libjvm.so+0x406b07]
j 
java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
j  java.net.URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;+13
j  java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+43
j 
sun.misc.Launcher$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+36
j  java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3
j 
java.lang.ClassLoader.loadClassInternal(Ljava/lang/String;)Ljava/lang/Class;+2
v  ~StubRoutines::call_stub
V  [libjvm.so+0x3c5783]
V  [libjvm.so+0x3c4b08]
V  [libjvm.so+0x3c4d4a]
V  [libjvm.so+0x3c4e49]
V  [libjvm.so+0x61c306]
V  [libjvm.so+0x61acdd]
V  [libjvm.so+0x61c933]
V  [libjvm.so+0x41086f]
V  [libjvm.so+0x3d8bdf]
C  [javac+0x226d]
C  [javac+0x2d1b]  JavaMain+0xa5b

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j 
java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+0
j  java.lang.Class.forName(Ljava/lang/String;)Ljava/lang/Class;+5
j  sun.security.jca.Providers.getSunProvider()Ljava/security/Provider;+5
j  sun.security.util.ManifestEntryVerifier.<clinit>()V+8
v  ~StubRoutines::call_stub
j  java.util.jar.JarFile.initializeVerifier()V+40
j 
java.util.jar.JarFile.getInputStream(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;+25
j  sun.misc.URLClassPath$JarLoader$2.getInputStream()Ljava/io/InputStream;+11
j  sun.misc.Resource.cachedInputStream()Ljava/io/InputStream;+9
j  sun.misc.Resource.getByteBuffer()Ljava/nio/ByteBuffer;+1
j 
java.net.URLClassLoader.defineClass(Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;+179
j 
java.net.URLClassLoader.access$000(Ljava/net/URLClassLoader;Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;+3
j  java.net.URLClassLoader$1.run()Ljava/lang/Object;+43
v  ~StubRoutines::call_stub
j 
java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
j  java.net.URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;+13
j  java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+43
j 
sun.misc.Launcher$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+36
j  java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3
j 
java.lang.ClassLoader.loadClassInternal(Ljava/lang/String;)Ljava/lang/Class;+2
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x00000000006c7800 JavaThread "Low Memory Detector" daemon [_thread_blocked,
id=19579, stack(0x00007f2300500000,0x00007f2300601000)]
  0x00000000006c4000 JavaThread "CompilerThread1" daemon [_thread_blocked,
id=19578, stack(0x00007f2300602000,0x00007f2300703000)]
  0x00000000006c2000 JavaThread "CompilerThread0" daemon [_thread_blocked,
id=19577, stack(0x00007f2300703000,0x00007f2300804000)]
  0x00000000006bf800 JavaThread "Signal Dispatcher" daemon [_thread_blocked,
id=19576, stack(0x00007f2300804000,0x00007f2300905000)]
  0x0000000000697800 JavaThread "Finalizer" daemon [_thread_blocked, id=19575,
stack(0x00007f2300944000,0x00007f2300a45000)]
  0x0000000000695000 JavaThread "Reference Handler" daemon [_thread_blocked,
id=19574, stack(0x00007f2300a46000,0x00007f2300b47000)]
=>0x000000000062a800 JavaThread "main" [_thread_in_vm, id=19570,
stack(0x00007f237020e000,0x00007f237030f000)]

Other Threads:
  0x0000000000690000 VMThread [stack: 0x00007f2300b47000,0x00007f2300c48000]
[id=19573]
  0x00000000006cc800 WatcherThread [stack:
0x00007f23003ff000,0x00007f2300500000] [id=19580]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 PSYoungGen      total 3584K, used 302K [0x00007f2349800000,
0x00007f2349c00000, 0x00007f2368550000)
  eden space 3072K, 9% used
[0x00007f2349800000,0x00007f234984bad8,0x00007f2349b00000)
  from space 512K, 0% used
[0x00007f2349b80000,0x00007f2349b80000,0x00007f2349c00000)
  to   space 512K, 0% used
[0x00007f2349b00000,0x00007f2349b00000,0x00007f2349b80000)
 PSOldGen        total 5504K, used 0K [0x00007f230bd50000, 0x00007f230c2b0000,
0x00007f2349800000)
  object space 5504K, 0% used
[0x00007f230bd50000,0x00007f230bd50000,0x00007f230c2b0000)
 PSPermGen       total 21248K, used 2955K [0x00007f2301550000,
0x00007f2302a10000, 0x00007f230bd50000)
  object space 21248K, 13% used
[0x00007f2301550000,0x00007f2301832d20,0x00007f2302a10000)

Dynamic libraries:
Can not get library information for pid = 19570

VM Arguments:
jvm_args: -Dapplication.home=/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0 -Xms8m 
java_command: com.sun.tools.javac.Main FileTest.java
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/usr/lib64/jvm/java
JRE_HOME=/usr/lib64/jvm/jre
PATH=/home/mvyskocil/usr/bin:/czwork/bin:/home/mvyskocil/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/home/mvyskocil/usr/maven-2.0.7/bin/:/work/src/bin:/work/src/bin/tools
LD_LIBRARY_PATH=/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/amd64/server:/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/amd64:/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/../lib/amd64::/home/mvyskocil/usr/lib/
SHELL=/bin/bash
DISPLAY=:0
HOSTTYPE=x86_64
OSTYPE=linux
MACHTYPE=x86_64-suse-linux

Signal Handlers:
SIGSEGV: [libjvm.so+0x6835b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x6835b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x556420], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x556420], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0x556420], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x556420], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x556670], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x559090], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: [libjvm.so+0x559090], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGTERM: [libjvm.so+0x559090], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: [libjvm.so+0x559090], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004


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

OS:Linux
uname:Linux 2.6.34-rc4-5-desktop #1 SMP PREEMPT 2010-04-19 21:21:36 +0200
x86_64
libc:glibc 2.11.1 NPTL 2.11.1 
rlimit: STACK 8192k, CORE 0k, NPROC 47224, NOFILE 15, AS 13238320k
load average:0.00 0.00 0.00

CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 2,
cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

Memory: 4k page, physical 6057488k(135608k free), swap 10490408k(10421124k
free)

vm_info: OpenJDK 64-Bit Server VM (14.0-b16) for linux-amd64 JRE
(1.6.0_17-b17), built on Mar 27 2010 00:59:49 by "abuild" with gcc 4.5.0
20100311 (experimental) [trunk revision 157384]

time: Tue May 11 15:10:24 2010
elapsed time: 0 seconds

#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
#
Aborted


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the distro-pkg-dev mailing list