JDK-6197569 : VM crash if java application tries to use system proxy (Solaris10 build 71 CDE only)
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 6
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2004-11-19
  • Updated: 2011-03-23
  • Resolved: 2004-12-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other JDK 6
5.0u1 b07Fixed 5.0u2Resolved 6Fixed
Description
PIT: VM crash after invoking javaws on Solaris10 build 71 CDE only.
It is happens only on CDE, GNOME is fine. I tried on Solaris 10 build 54 working fine.
Linux also working fine.
This is the log:(core dump also attached)
j2dsqe-lab2# jre1.6.0/bin/javaws
j2dsqe-lab2# 
(process:23042): GLib-GObject-CRITICAL **: gtype.c:2253: initialization assertion failed, use g_type_init() prior to this function

(process:23042): GLib-GObject-CRITICAL **: file gobject.c: line 819: assertion `G_TYPE_IS_OBJECT (object_type)' failed

(process:23042): GLib-GObject-CRITICAL **: file gobject.c: line 1561: assertion `G_IS_OBJECT (object)' failed
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xfaed5ee8, pid=23042, tid=17
#
# Java VM: Java HotSpot(TM) Server VM (20041113174411.et151817.baseline mixed mode)
# Problematic frame:
# C  [libgconf-2.so.4.1.0+0x25ee8]
#
# An error report file with more information is saved as hs_err_pid23042.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

###@###.### 2004-11-19 00:40:26 GMT

Comments
EVALUATION OK - I see the problem now. It's caused by the system proxy support code, calling into native gconf library. Can you tell me the login of the s10_64 build which doesn't fail ? It might be our problem; or maybe a problem in the gconf code too, I am not sure. You can avoid the crash by setting the proxy to direct or specify it explicitly in java control panel. Just don't select "Use browser proxy settings" in java control panel, then it should run fine. I will probably ask Cheng to investigate further. -Thomas ###@###.### 2004-11-19 00:40:27 GMT the problem exists in standalone java application too: ./java -Djava.net.useSystemProxies=true URLReader http://www.google.com (You can get URLReader.class from /net/capoon/scratch/URLReader.class ) It will fail the same way. It crashed in our case too because basically we copied the code from the networking team for system proxy support. here is the vm crash log for standalone java case: # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xfaed5ee8, pid=17192, tid=1 # # Java VM: Java HotSpot(TM) Server VM (20041113174411.et151817.baseline mixed mode) # Problematic frame: # C [libgconf-2.so.4.1.0+0x25ee8] # --------------- T H R E A D --------------- Current thread (0x00038db0): JavaThread "main" [_thread_in_native, id=1] siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x0000000c Registers: O0=0xf88d992c O1=0x00000008 O2=0xf88d993c O3=0xf88d99f0 O4=0x00000619 O5=0xf88d9d14 O6=0xffbfcee0 O7=0xf88b3e9c G1=0x00000001 G2=0x00000000 G3=0x00288d20 G4=0x00000001 G5=0xfefe3b74 G6=0x00000000 G7=0xff388000 Y=0x00000000 PC=0xfaed5ee8 nPC=0xfaed5eec Top of Stack: (sp=0xffbfcee0) 0xffbfcee0: 00000000 faef71a8 0000085c 00000800 0xffbfcef0: 00000860 f88d9c00 f88d9800 f88d9800 0xffbfcf00: 00000000 001f3ca0 00000000 f88d9c00 0xffbfcf10: f88d9800 f88d9800 ffbfcf40 faed6434 0xffbfcf20: 00000000 00000000 00000000 00000000 0xffbfcf30: f88d99f0 00000619 f88d9d14 faed632c 0xffbfcf40: 001f3ca0 00000000 00000000 00000000 0xffbfcf50: 00000000 00000000 00000000 00000000 Instructions: (pc=0xfaed5ee8) 0xfaed5ed8: 90 10 00 18 81 c7 e0 08 91 e8 20 01 9d e3 bf a0 0xfaed5ee8: d0 06 20 0c 80 a6 40 08 02 80 00 12 80 a6 60 00 Stack: [0xffb80000,0xffc00000), sp=0xffbfcee0, free space=499k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libgconf-2.so.4.1.0+0x25ee8] C [libgconf-2.so.4.1.0+0x2643c] gconf_client_get_default+0x12c C [libnet.so+0xe00c] Java_sun_net_spi_DefaultProxySelector_init+0x2e0 j sun.net.spi.DefaultProxySelector.init()Z+34516 j sun.net.spi.DefaultProxySelector.init()Z+0 j sun.net.spi.DefaultProxySelector.<clinit>()V+184 v ~StubRoutines::call_stub V [libjvm.so+0x18dcfc] V [libjvm.so+0x1e2740] V [libjvm.so+0x16e248] V [libjvm.so+0x15bff8] V [libjvm.so+0x26b3e8] C [libjava.so+0xd3c0] Java_java_lang_Class_forName0+0x128 j java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+0 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 java.net.ProxySelector.<clinit>()V+2 v ~StubRoutines::call_stub V [libjvm.so+0x18dcfc] V [libjvm.so+0x1e2740] V [libjvm.so+0x16e248] V [libjvm.so+0x15bff8] V [libjvm.so+0x18a028] V [libjvm.so+0x160010] V [libjvm.so+0x164714] j sun.net.www.protocol.http.HttpURLConnection$5.run()Ljava/lang/Object;+0 v ~StubRoutines::call_stub V [libjvm.so+0x18dcfc] V [libjvm.so+0x21afc0] C [libjava.so+0x9c2c] Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x1c j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+8 j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0 j sun.net.www.protocol.http.HttpURLConnection.plainConnect()V+164 j sun.net.www.protocol.http.HttpURLConnection.connect()V+1 j sun.net.www.protocol.http.HttpURLConnection.getInputStream()Ljava/io/InputStream;+139 j java.net.URL.openStream()Ljava/io/InputStream;+4 j URLReader.connect_output(Ljava/lang/String;)V+18 j URLReader.main([Ljava/lang/String;)V+37 v ~StubRoutines::call_stub V [libjvm.so+0x18dcfc] V [libjvm.so+0x2d3334] C [java+0x23bc] main+0x131c Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j sun.net.spi.DefaultProxySelector.init()Z+0 j sun.net.spi.DefaultProxySelector.<clinit>()V+184 v ~StubRoutines::call_stub 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 java.net.ProxySelector.<clinit>()V+2 v ~StubRoutines::call_stub j sun.net.www.protocol.http.HttpURLConnection$5.run()Ljava/lang/Object;+0 v ~StubRoutines::call_stub j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0 j sun.net.www.protocol.http.HttpURLConnection.plainConnect()V+164 j sun.net.www.protocol.http.HttpURLConnection.connect()V+1 j sun.net.www.protocol.http.HttpURLConnection.getInputStream()Ljava/io/InputStream;+139 j java.net.URL.openStream()Ljava/io/InputStream;+4 j URLReader.connect_output(Ljava/lang/String;)V+18 j URLReader.main([Ljava/lang/String;)V+37 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x00233de8 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=17] 0x001f0628 JavaThread "AWT-Motif" daemon [_thread_in_native, id=15] 0x001f0180 JavaThread "AWT-Shutdown" [_thread_blocked, id=14] 0x001c4e90 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=13] 0x0014ae10 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=11] 0x00149db0 JavaThread "CompilerThread1" daemon [_thread_blocked, id=10] 0x00148f90 JavaThread "CompilerThread0" daemon [_thread_blocked, id=9] 0x00147b68 JavaThread "AdapterThread" daemon [_thread_blocked, id=8] 0x00146de0 JavaThread "Signal Dis here is the vm crash log for java web start case: # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xfadb5ee8, pid=17140, tid=17 # # Java VM: Java HotSpot(TM) Server VM (20041113174411.et151817.baseline mixed mode) # Problematic frame: # C [libgconf-2.so.4.1.0+0x25ee8] # --------------- T H R E A D --------------- Current thread (0x00236650): JavaThread "Java Web Start Main Thread" [_thread_in_native, id=17] siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x0000000c Registers: O0=0xd2fd992c O1=0x00000008 O2=0xd2fd993c O3=0xd2fd99f0 O4=0x00000619 O5=0xd2fd9d14 O6=0xd327efa0 O7=0xd2fb3e9c G1=0x00000001 G2=0x00000000 G3=0x00230bc0 G4=0x00000001 G5=0xfefe3b74 G6=0x00000000 G7=0xfe442000 Y=0x00000000 PC=0xfadb5ee8 nPC=0xfadb5eec Top of Stack: (sp=0xd327efa0) 0xd327efa0: 00000000 fadd71a8 0000085c 00000800 0xd327efb0: 00000860 d2fd9c00 d2fd9800 d2fd9800 0xd327efc0: 00000000 002c6128 00000000 d2fd9c00 0xd327efd0: d2fd9800 d2fd9800 d327f000 fadb6434 0xd327efe0: 00000000 00000000 00000000 00000800 0xd327eff0: d2fd99f0 00000619 d2fd9d14 fadb6414 0xd327f000: 002c6128 00000000 00000000 00000000 0xd327f010: 00000000 00000000 00000000 00000000 Instructions: (pc=0xfadb5ee8) 0xfadb5ed8: 90 10 00 18 81 c7 e0 08 91 e8 20 01 9d e3 bf a0 0xfadb5ee8: d0 06 20 0c 80 a6 40 08 02 80 00 12 80 a6 60 00 Stack: [0xd3200000,0xd3280000), sp=0xd327efa0, free space=507k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libgconf-2.so.4.1.0+0x25ee8] C [libgconf-2.so.4.1.0+0x2643c] gconf_client_get_default+0x12c C [libdeploy.so+0x232c] Java_com_sun_deploy_net_proxy_MSystemProxyHandler_init+0x29c j com.sun.deploy.net.proxy.MSystemProxyHandler.init()Z+34516 j com.sun.deploy.net.proxy.MSystemProxyHandler.init()Z+0 j com.sun.deploy.net.proxy.MSystemProxyHandler.<clinit>()V+4 v ~StubRoutines::call_stub V [libjvm.so+0x18dcfc] V [libjvm.so+0x1e2740] V [libjvm.so+0x16e248] V [libjvm.so+0x15bff8] V [libjvm.so+0x1b5f30] j com.sun.deploy.services.MPlatformService.getSystemProxyHandler()Lcom/sun/deploy/net/proxy/ProxyHandler;+0 j com.sun.deploy.net.proxy.DynamicProxyManager.reset()V+85 j com.sun.deploy.net.proxy.DeployProxySelector.reset()V+0 j com.sun.javaws.Main.initializeExecutionEnvironment()V+157 j com.sun.javaws.Main.continueInSecureThread([Ljava/lang/String;)V+126 j com.sun.javaws.Main$1.run()V+4 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub V [libjvm.so+0x18dcfc] V [libjvm.so+0x2b788c] V [libjvm.so+0x2d6fb8] V [libjvm.so+0x2d2bbc] V [libjvm.so+0x652c18] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j com.sun.deploy.net.proxy.MSystemProxyHandler.init()Z+0 j com.sun.deploy.net.proxy.MSystemProxyHandler.<clinit>()V+4 v ~StubRoutines::call_stub j com.sun.deploy.services.MPlatformService.getSystemProxyHandler()Lcom/sun/deploy/net/proxy/ProxyHandler;+0 j com.sun.deploy.net.proxy.DynamicProxyManager.reset()V+85 j com.sun.deploy.net.proxy.DeployProxySelector.reset()V+0 j com.sun.javaws.Main.initializeExecutionEnvironment()V+157 j com.sun.javaws.Main.continueInSecureThread([Ljava/lang/String;)V+126 j com.sun.javaws.Main$1.run()V+4 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x002646f8 JavaThread "ConsoleWriterThread" daemon [_thread_blocked, id=25] 0x002642f0 JavaThread "AWT-EventQueue-1" [_thread_in_native, id=24] 0x00219788 JavaThread "AWT-Shutdown" [_thread_blocked, id=23] 0x00242760 JavaThread "traceMsgQueueThread" [_thread_blocked, id=19] 0x000395b8 JavaThread "DestroyJavaVM" [_thread_blocked, id=1] =>0x00236650 JavaThread "Java Web Start Main Thread" [_thread_in_native, id=17] 0x00234280 JavaThread "AWT-Motif" daemon [_thread_in_native, id=15] 0x0016ef20 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=13] 0x00152888 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=11] 0x00151020 JavaThread "CompilerThread1" daemon [_thread_blocked, id=10] 0x00150200 JavaThread "CompilerThread0" daemon [_thread_blocked, id=9] 0x0014f3e0 JavaThread "AdapterThread" daemon [_thread_blocked, id=8] 0x0014e658 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=7] 0x00141f20 JavaThread "Finalizer" daemon [_thread_blocked, id=6] 0x00141240 JavaThread "Reference Handler" daemon [_thread_blocked, id=5] Other Threads: 0x0013d620 VMThread [id=4] 0x00153ac0 WatcherThread [id=12] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap PSYoungGen total 10752K, used 3881K [0xedc00000, 0xee800000, 0xf8800000) eden space 9216K, 42% used [0xedc00000,0xedfca6c8,0xee500000) from space 1536K, 0% used [0xee680000,0xee680000,0xee800000) to space 1536K, 0% used [0xee500000,0xee500000,0xee680000) PSOldGen total 24576K, used 0K [0xd8400000, 0xd9c00000, 0xedc00000) object space 24576K, 0% used [0xd8400000,0xd8400000,0xd9c00000) PSPermGen total 16384K, used 6182K [0xd4400000, 0xd5400000, 0xd8400000) object space 16384K, 37% used [0xd4400000,0xd4a09ae0,0xd5400000) Dynamic libraries: 0x00010000 /net/capoon/scratch/java/jre/jre1.6.0/bin/java 0xff3f8000 /lib/libthread.so.1 0xff3a0000 /lib/libdl.so.1 0xff280000 /lib/libc.so.1 0xff260000 /platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1 0xfe800000 /net/capoon/scratch/java/jre/jre1.6.0/lib/sparc/server/libjvm.so 0xff220000 /lib/libsocket.so.1 0xff250000 /usr/lib/libsched.so.1 0xff1e0000 /usr/lib/libCrun.so.1 0xff1c0000 /lib/libm.so.1 0xff100000 /lib/libnsl.so.1 0xfe700000 /lib/libm.so.2 0xff0d0000 /lib/libscf.so.1 0xff0b0000 /lib/libdoor.so.1 0xff090000 /lib/libuutil.so.1 0xff070000 /lib/libmd5.so.1 0xff050000 /platform/SUNW,Sun-Blade-1000/lib/libmd5_psr.so.1 0xff030000 /lib/libmp.so.2 0xfe7d0000 /net/capoon/scratch/java/jre/jre1.6.0/lib/sparc/native_threads/libhpi.so 0xfe6b0000 /net/capoon/scratch/java/jre/jre1.6.0/lib/sparc/libverify.so 0xfe670000 /net/capoon/scratch/java/jre/jre1.6.0/lib/sparc/libjava.so 0xfe650000 /net/capoon/scratch/java/jre/jre1.6.0/lib/sparc/libzip.so 0xd3c80000 /net/capoon/scratch/java/jre/jre1.6.0/lib/sparc/libawt.so 0xd3b00000 /net/capoon/scratch/java/jre/jre1.6.0/lib/sparc/libmlib_image.so 0xfac80000 /net/capoon/scratch/java/jre/jre1.6.0/lib/sparc/motif21/libmawt.so 0xd3880000 /usr/dt/lib/libXm.so.4 0xfdf90000 /usr/openwin/lib/libXp.so.1 0xf8880000 /usr/openwin/lib/libXt.so.4 0xfdec0000 /usr/openwin/lib/libXext.so.0 0xfbbd0000 /usr/openwin/lib/libXtst.so.1 0xd3780000 /usr/openwin/lib/libX11.so.4 0xd3700000 /net/capoon/scratch/java/jre/jre1.6.0/lib/sparc/libfontmanager.so 0xfb9d0000 /usr/openwin/lib/libSM.so.6 0xfb840000 /usr/openwin/lib/libICE.so.6 0xfb9b0000 /net/capoon/scratch/java/jre/jre1.6.0/lib/sparc/libdeploy.so 0xfafd0000 /net/capoon/scratch/java/jre/jre1.6.0/lib/sparc/libnet.so 0xfaee0000 /net/capoon/scratch/java/jre/jre1.6.0/lib/sparc/libnio.so 0xfaec0000 /lib/librt.so.1 0xfae90000 /lib/libaio.so.1 0xfade0000 /usr/lib/libsendfile.so.1 0xfad90000 /usr/lib/libgconf-2.so 0xfac10000 /usr/lib/libORBit-2.so.0 0xd2f80000 /usr/lib/libgobject-2.0.so.0 0xf8ba0000 /lib/libresolv.so.2 0xf8ae0000 /usr/lib/libgmodule-2.0.so.0 0xf8ac0000 /usr/lib/libgthread-2.0.so.0 0xd2e80000 /usr/lib/libglib-2.0.so.0 0xf8aa0000 /usr/lib/libpopt.so.0 0xf89e0000 /usr/lib/iconv/UTF-8%646.so VM Arguments: jvm_args: -Xbootclasspath/a:/net/capoon/scratch/java/jre/jre1.6.0/lib/javaws.jar:/net/capoon/scratch/java/jre/jre1.6.0/lib/deploy.jar -Djnlpx.home=/net/capoon/scratch/java/jre/jre1.6.0/bin -Djnlpx.splashport=38986 -Djnlpx.jvm=/net/capoon/scratch/java/jre/jre1.6.0/bin/java -Djnlpx.remove=false -Djava.security.policy=file:/net/capoon/scratch/java/jre/jre1.6.0/lib/security/javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.heapsize=NULL,NULL java_command: com.sun.javaws.Main Environment Variables: PATH=/usr/dt/bin:/java/devtools/sparc/bin:/net/capoon.sfbay/scratch/mozilla16/mozilla:/net/jano.sfbay/export/disk13/deployment/tools/tdf:/java/devtools/sparc/SUNWspro/SOS8/bin:/scratch/java/jdk/jre1.5.0/bin:/scratch/java/jdk/jdk1.5.0/bin:/usr/local/bin:/home/ngthomas/bin:/usr/ccs/bin:/usr/dist/pkgs/devpro/5.x-sparc/bin:/usr/openwin/bin:/usr/dist/svr4/bin:/usr/dist/local/bos/exe:/usr/dist/local/exe:/usr/dt/bin:/usr/dist/exe:/usr/bin:/usr/etc:/usr/sbin:/usr/ucb:. LD_LIBRARY_PATH=/net/capoon/scratch/java/jre/jre1.6.0/lib/sparc/server:/net/capoon/scratch/java/jre/jre1.6.0/lib/sparc:/net/capoon/scratch/java/jre/jre1.6.0/../lib/sparc:/usr/openwin/lib SHELL=/bin/tcsh DISPLAY=capoon.sfbay.sun.com:1.0 HOSTTYPE=sun4 OSTYPE=solaris MACHTYPE=sparc Signal Handlers: SIGSEGV: [libjvm.so+0x6cf374], sa_mask[0]=0xffbffeff, sa_flags=0x00000004 SIGBUS: [libjvm.so+0x6cf374], sa_mask[0]=0xffbffeff, sa_flags=0x00000004 SIGFPE: [libjvm.so+0x26b758], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c SIGPIPE: [libjvm.so+0x26b758], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c SIGILL: [libjvm.so+0x26b758], 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 SIGHUP: [libjvm.so+0x653bdc], sa_mask[0]=0xffbffeff, sa_flags=0x00000004 SIGINT: [libjvm.so+0x653bdc], sa_mask[0]=0xffbffeff, sa_flags=0x00000004 SIGQUIT: [libjvm.so+0x653bdc], sa_mask[0]=0xffbffeff, sa_flags=0x00000004 SIGTERM: [libjvm.so+0x653bdc], sa_mask[0]=0xffbffeff, sa_flags=0x00000004 --------------- S Y S T E M --------------- OS: Solaris 10 s10_71 SPARC Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 03 November 2004 uname:SunOS 5.10 s10_71 sun4u (T2 libthread) rlimit: STACK 8192k, CORE 0k, NOFILE 65536, AS infinity load average:0.17 0.24 0.12 CPU:total 2 has_v8, has_v9, has_vis1, has_vis2, is_ultra3 Memory: 8k page, physical 2097152k(1658920k free) vm_info: Java HotSpot(TM) Server VM (20041113174411.et151817.baseline) for solaris-sparc, built on Nov 13 2004 18:02:13 by PRT with unknown Workshop:0x550
19-11-2004