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.

Bug 107131 - JVM crash after attach to profiled VM
Summary: JVM crash after attach to profiled VM
Status: VERIFIED DUPLICATE of bug 92445
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: PC Solaris
: P2 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-19 08:03 UTC by Tomas Hurka
Modified: 2007-09-28 09:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JVM crash log (5.17 KB, text/plain)
2007-06-19 08:08 UTC, Tomas Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2007-06-19 08:03:13 UTC
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
=========================================================
Comment 1 Tomas Hurka 2007-06-19 08:04:52 UTC
this issue was originally added to issue #104709.
Comment 2 Tomas Hurka 2007-06-19 08:08:21 UTC
Created attachment 43935 [details]
JVM crash log
Comment 3 Tomas Hurka 2007-06-19 09:30:41 UTC
You can workaround this issue by creating symbolic link solaris-sparcv9 to solaris-amd64 in <remote>/lib/deployed/jdk15 directory. See bellow:
bash-3.00$ pwd
/tmp/profiler-55/lib/deployed/jdk15
bash-3.00$ ls -l
total 16
drwxr-xr-x   2 xxxx staff        266 Dec  7  2006 solaris-amd64
lrwxrwxrwx   1 xxxx staff         13 Jun 19 10:24 solaris-sparcv9 -> solaris-amd64
bash-3.00$ 


*** This issue has been marked as a duplicate of 92445 ***
Comment 4 Alexander Kouznetsov 2007-09-28 09:09:55 UTC
Verified duplicate