This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I have a Ultra 20 running Solaris 11, download the remote pack, unzip it, tried the following commands: #java -agentpath:<remote>/lib/deployed/jdk15/solaris-amd64/libprofilerinterface -jar Java2Demo.jar #java -agentpath:<remote>/lib/deployed/jdk15/solaris-amd64/libprofilerinterface.so -jar Java2Demo.jar #java -agentpath:<remote>/lib/deployed/jdk15/solaris-amd64/profilerinterface -jar java2D.jar I couldn't launch the application. And I have an error message complaining couldn't find the library at the directory. I truss the process, it did open the library successfully while for some reason exit some later. Also, even if I tried to launch the application with the bin/profiler.sh, it didn't work either.
Can you post the exact console log? I am interested in the command you executed and the error output. Also make sure that you are running correct java version. Executing java will start 32-bit version. If you want to run 64-bit version you have to use java -d64 . ..../solaris-amd64/libprofilerinterface.so is library for 64-bit java - it cannot run with 32-bit version and vice versa.
It looks like duplicate of issue #95788. Please modify your profile.sh script to invoke 64-bit java. $JAVA_HOME/bin/java -d64 -agentpath:$INSTALL_D...... *** This issue has been marked as a duplicate of 95788 ***
I've tried the -d64 option. try to launch my Test.java with profiler.sh, got a core dump. My profiler.sh file looks like follows: ======================================================= JAVA_HOME=/usr/jdk/jdk1.5.0_11/ #JAVA_HOME=/usr/java/ export JAVA_HOME # Determine the location of the profile script as an absolute directory ORIG_DIR=`pwd` PROG_NAME=`type $0 | awk '{print $3}'` INSTALL_DIR=`dirname $PROG_NAME` cd $INSTALL_DIR INSTALL_DIR=`pwd` cd $ORIGDIR $JAVA_HOME/bin/java -d64 -agentpath:$INSTALL_DIR/../lib/deployed/jdk15/solaris-a md64/libprofilerinterface.so=$INSTALL_DIR/../lib/,5140 $@ ========================================================== Tried the following commands and the result: ========================================================== bash-3.00# ./profile.sh Test Profiler Agent: Initializing... Profiler Agent: Options: >/export/home/downloads/profiler_remote/bin/../lib/,5140< Profiler Agent: Initialized succesfully # # An unexpected error has been detected by HotSpot Virtual Machine: # # Internal Error (455843455054494F4E530E4350500112), pid=17856, tid=1 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_11-b03 mixed mode) # An error report file with more information is saved as hs_err_pid17856.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # Abort - core dumped ========================================================= Log file looks like: ========================================================= # # An unexpected error has been detected by HotSpot Virtual Machine: # # Internal Error (455843455054494F4E530E4350500112), pid=17856, tid=1 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_11-b03 mixed mode) --------------- T H R E A D --------------- Current thread (0x000000000042af80): JavaThread "main" [_thread_in_vm, id=1] Stack: [0xfffffd7fffbff000,0xfffffd7fffe00000), sp=0xfffffd7fffdfe270, free space=2044k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x88b85e] V [libjvm.so+0x646e05] V [libjvm.so+0x391960] V [libjvm.so+0x595961] V [libjvm.so+0x55e335] V [libjvm.so+0x55f12c] C [java+0x48b6] main+0x1d96 C [java+0x2da2] main+0x282 C [java+0x29cc] _PROCEDURE_LINKAGE_TABLE_+0x3e4 --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x0000000000559600 JavaThread "Finalizer" daemon [_thread_blocked, id=4] 0x0000000000559050 JavaThread "Reference Handler" daemon [_thread_blocked, id=3] =>0x000000000042af80 JavaThread "main" [_thread_in_vm, id=1] Other Threads: 0x000000000054f790 VMThread [id=2] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 2304K, used 523K [0xfffffd7fed600000, 0xfffffd7fed890000, 0xfffffd7fef200000) eden space 1984K, 26% used [0xfffffd7fed600000, 0xfffffd7fed682c60, 0xfffffd7fed7f0000) from space 320K, 0% used [0xfffffd7fed7f0000, 0xfffffd7fed7f0000, 0xfffffd7fed840000) to space 320K, 0% used [0xfffffd7fed840000, 0xfffffd7fed840000, 0xfffffd7fed890000) tenured generation total 1792K, used 0K [0xfffffd7fef200000, 0xfffffd7fef3c0000, 0xfffffd7ff2a00000) the space 1792K, 0% used [0xfffffd7fef200000, 0xfffffd7fef200000, 0xfffffd7fef200200, 0xfffffd7fef3c0000) compacting perm gen total 21248K, used 2549K [0xfffffd7ff2a00000, 0xfffffd7ff3ec0000, 0xfffffd7ff7e00000) the space 21248K, 12% used [0xfffffd7ff2a00000, 0xfffffd7ff2c7d7e0, 0xfffffd7ff2c7d800, 0xfffffd7ff3ec0000) No shared spaces configured. Dynamic libraries: 0x0000000000400000 /usr/jdk/instances/jdk1.5.0/bin/amd64/java 0xfffffd7fff370000 /lib/64/libthread.so.1 0xfffffd7fff380000 /lib/64/libdl.so.1 0xfffffd7fff190000 /lib/64/libc.so.1 0xfffffd7ffe600000 /usr/jdk/instances/jdk1.5.0/jre/lib/amd64/server/libjvm.so 0xfffffd7fff140000 /lib/64/libsocket.so.1 0xfffffd7fff170000 /usr/lib/64/libsched.so.1 0xfffffd7fff0f0000 /usr/lib/64/libCrun.so.1 0xfffffd7fff070000 /lib/64/libm.so.2 0xfffffd7ffe520000 /lib/64/libnsl.so.1 0xfffffd7ffe4f0000 /lib/64/libscf.so.1 0xfffffd7ffe4d0000 /lib/64/libuutil.so.1 0xfffffd7ffe4b0000 /lib/64/libgen.so.1 0xfffffd7ffe480000 /lib/64/libmd.so.1 0xfffffd7ffe460000 /lib/64/libmp.so.2 0xfffffd7ffe400000 /usr/jdk/instances/jdk1.5.0/jre/lib/amd64/native_threads/libhpi.so 0xfffffd7ffe3d0000 /export/home/downloads/profiler_remote/bin/../lib/deployed/jdk15/solaris-amd64/libprofilerinterface.so 0xfffffd7ffe3b0000 /lib/64/librt.so.1 0xfffffd7ffe340000 /usr/jdk/instances/jdk1.5.0/jre/lib/amd64/libverify.so 0xfffffd7ffe2f0000 /usr/jdk/instances/jdk1.5.0/jre/lib/amd64/libjava.so 0xfffffd7ffe2b0000 /usr/jdk/instances/jdk1.5.0/jre/lib/amd64/libzip.so 0xfffffd7ffb070000 /usr/lib/locale/en_US.ISO8859-1/amd64/en_US.ISO8859-1.so.3 VM Arguments: jvm_args: -agentpath:/export/home/downloads/profiler_remote/bin/../lib/deployed/jdk15/solaris-amd64/libprofilerinterface.so=/export/home/downloads/profiler_remote/bin/../lib/,5140 java_command: Test Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=/usr/jdk/jdk1.5.0_11/ PATH=/usr/sbin:/usr/bin:/usr/openwin/bin:/usr/ucb:/usr/java/bin LD_LIBRARY_PATH=/usr/jdk/instances/jdk1.5.0/jre/lib/amd64/server:/usr/jdk/instances/jdk1.5.0/jre/lib/amd64:/usr/jdk/instances/jdk1.5.0/jre/../lib/amd64 SHELL=/sbin/sh DISPLAY=:0.0 Signal Handlers: SIGSEGV: [libjvm.so+0x88bef0], sa_mask[0]=0xffbffeff, sa_flags=0x00000004 SIGBUS: [libjvm.so+0x88bef0], sa_mask[0]=0xffbffeff, sa_flags=0x00000004 SIGFPE: [libjvm.so+0x3f3260], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c SIGPIPE: [libjvm.so+0x3f3260], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c SIGILL: [libjvm.so+0x3f3260], 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+0x822580], sa_mask[0]=0xffbffeff, sa_flags=0x00000004 SIGINT: [libjvm.so+0x822580], sa_mask[0]=0xffbffeff, sa_flags=0x00000004 SIGQUIT: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGTERM: [libjvm.so+0x822580], sa_mask[0]=0xffbffeff, sa_flags=0x00000004 --------------- S Y S T E M --------------- OS: Solaris Nevada snv_64a X86 Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 18 May 2007 uname:SunOS 5.11 snv_64a i86pc (T2 libthread) rlimit: STACK 10240k, CORE infinity, NOFILE 65536, AS infinity load average:0.13 0.09 0.06 CPU:total 1 amd64 3dnow Memory: 4k page, physical 2096700k(979464k free) vm_info: Java HotSpot(TM) 64-Bit Server VM (1.5.0_11-b03) for solaris-amd64, built on Dec 15 2006 00:38:03 by unknown with unknown Workshop:0x570 ====================================================================== Use "jinfo -J-d64 /usr/jdk/jdk1.5.0_11/bin/java core" got the following: ====================================================================== Attaching to core core from executable /usr/jdk/jdk1.5.0_11/bin/java, please wait... Error attaching to core file: Attach failed : No such core file bash-3.00# /usr/jdk/jdk1.5.0_11/bin/jinfo -J-d64 /usr/jdk/jdk1.5.0_11/bin/java /core Attaching to core /core from executable /usr/jdk/jdk1.5.0_11/bin/java, please wait... Debugger attached successfully. Server compiler detected. JVM version is 1.5.0_11-b03 Java System Properties: java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition sun.boot.library.path = /usr/jdk/instances/jdk1.5.0/jre/lib/amd64 java.vm.version = 1.5.0_11-b03 java.vm.vendor = Sun Microsystems Inc. java.vendor.url = http://java.sun.com/ path.separator = : java.vm.name = Java HotSpot(TM) 64-Bit Server VM file.encoding.pkg = sun.io sun.java.launcher = SUN_STANDARD user.country = US sun.os.patch.level = unknown java.vm.specification.name = Java Virtual Machine Specification user.dir = / java.runtime.version = 1.5.0_11-b03 java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment java.endorsed.dirs = /usr/jdk/instances/jdk1.5.0/jre/lib/endorsed os.arch = amd64 java.io.tmpdir = /var/tmp/ line.separator = java.vm.specification.vendor = Sun Microsystems Inc. os.name = SunOS sun.jnu.encoding = ISO8859-1 java.library.path = /usr/jdk/instances/jdk1.5.0/jre/lib/amd64/server:/usr/jdk/instances/jdk1.5.0/jre/lib/amd64:/usr/jdk/instances/jdk1.5.0/jre/../lib/amd64:/usr/lib java.specification.name = Java Platform API Specification java.class.version = 49.0 sun.management.compiler = HotSpot 64-Bit Server Compiler os.version = 5.11 user.home = / user.timezone = java.awt.printerjob = sun.print.PSPrinterJob file.encoding = ISO8859-1 java.specification.version = 1.5 java.class.path = . user.name = root java.vm.specification.version = 1.0 java.home = /usr/jdk/instances/jdk1.5.0/jre sun.arch.data.model = 64 user.language = en java.specification.vendor = Sun Microsystems Inc. java.vm.info = mixed mode java.version = 1.5.0_11 java.ext.dirs = /usr/jdk/instances/jdk1.5.0/jre/lib/ext sun.boot.class.path = /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/i18n.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/sunrsasign.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/jsse.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/jce.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/charsets.jar:/usr/jdk/instances/jdk1.5.0/jre/classes:/export/home/downloads/profiler_remote/bin/../lib//jfluid-server.jar:/export/home/downloads/profiler_remote/bin/../lib//jfluid-server-15.jar java.vendor = Sun Microsystems Inc. file.separator = / java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi sun.io.unicode.encoding = UnicodeBig sun.cpu.endian = little sun.desktop = gnome sun.cpu.isalist = amd64 pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86 VM Flags: -agentpath:/export/home/downloads/profiler_remote/bin/../lib/deployed/jdk15/solaris-amd64/libprofilerinterface.so=/export/home/downloads/profiler_remote/bin/../lib/,5140 ================================================================
This is different bug. Next time please file new issue. Original bug (according to the description) is duplicate of issue #95788. Please do not paste JVM crash log into the description, add it as attachment instead. *** This issue has been marked as a duplicate of 95788 ***
I filed new issue #107131 for the JVM crash.
Verified duplicate