(Forwarding to the mailing list too) Hi Asaf,
I have attached the Test file (it's a trivial bit of code) and the corresponding Hotspot dump file. Sorry I can't be of more help! Neil On 3/6/07, Yaffe, Asaf <[EMAIL PROTECTED]> wrote:
Hi Neil, In addition I've been getting some HotSpot errors when I trying running JVMTI based profiling sessions via Eclipse but I can't provide any specific diagnosis. Sometimes it just crashes running both the Execution Time or Memory Analysis profilers. This is interesting. I would really like to know more about it, so if you can find a Java application that is causing this, please open a Bugzilla for the TPTP Profiler/JVMTI Runtime component and include this application as an attachment. Thanks, Asaf -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Dunn Sent: Monday, March 05, 2007 4:31 PM To: TPTP Tracing and Profiling Tools Project developer discussions Subject: Re: [tptp-tracing-profiling-tools-dev] JVMTI Runtime throwing errors Hi Asaf, Thanks for that. I'd missed exporting JAVA_PROFILER_HOME (which I didn't realise was required) so no point posting the log file for that problem. Sometimes users are just completely useless :-) I can't check everything is working when doing stuff via Agent Controller and Eclipse right now because I've just checked that over ssh (as it's 00:38 here in London) but I'll assume for now that it's going to work. If it doesn't I'll post again tomorrow morning. In addition I've been getting some HotSpot errors when I trying running JVMTI based profiling sessions via Eclipse but I can't provide any specific diagnosis. Sometimes it just crashes running both the Execution Time or Memory Analysis profilers. Cheers, Neil On 3/5/07, Yaffe, Asaf <[EMAIL PROTECTED]> wrote: > Hi Neil, > > You can enable the "runtime side" logging by defining the following > environment variables: > > export MARTINI_LOGGER_DIRECTORY=<existing directory> > export MARTINI_LOGGER_LOG_LEVEL=5 > > After defining these variables, run the profiler again and post the > generated MLogxxxxx.log file to this mailing list. I hope it will help > us identify the problem. > > Thanks, > Asaf > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Neil Dunn > Sent: Monday, March 05, 2007 9:36 AM > To: TPTP Tracing and Profiling Tools Project developer discussions > Subject: [tptp-tracing-profiling-tools-dev] JVMTI Runtime throwing > errors > > Hi guys, > > I have sucessfully got the JVMTI runtime working on my home machine > but at work (a Mandrake 10.2 machine) I'm having trouble getting it to > run. > > Trying to profile an application in standalone mode with the command: > > $ java '-agentlib:JPIBootLoader=JPIAgent:server=standalone;CGProf' > > Generates a partial trace.trcxml file then pritns the following error > the screen: > > [Error: EC JPIAgent received message (FATAL ERROR): Internal error > (see log file).] > > I cannot find any log file in the current directory or agent > controller directory and so cannot really diagnose the problem. > > I have tried this with the latest development builds that are working at > home. > > I have setup the TPTP_AC_HOME and LD_LIBRARY_PATHS as previously > discussed: > > export > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TPTP_AC_HOME/lib:$TPTP_AC_HOME/plugins > /org.eclipse.tptp.javaprofiler > > but I don't think that's the root cause of the problem. > > Is there anything I can do to try and diagnose the problem further? > > Thanks, > Neil > _______________________________________________ > tptp-tracing-profiling-tools-dev mailing list > tptp-tracing-profiling-tools-dev@eclipse.org > https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-de > v > _______________________________________________ > tptp-tracing-profiling-tools-dev mailing list > tptp-tracing-profiling-tools-dev@eclipse.org > https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev > _______________________________________________ tptp-tracing-profiling-tools-dev mailing list tptp-tracing-profiling-tools-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev
# # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xb68d08d8, pid=528, tid=3057859504 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_03-b07 mixed mode, sharing) # Problematic frame: # [error occurred during error reporting, step 60, id 0xb] --------------- T H R E A D --------------- Current thread is native thread siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000 Registers: EAX=0x00000000, EBX=0xb68e1bf0, ECX=0x00000000, EDX=0x00000000 ESP=0xb642b254, EBP=0xb642d318, ESI=0x0809a19c, EDI=0x0809a3f0 EIP=0xb68d08d8, CR2=0x00000000, EFLAGS=0x00010246 Top of Stack: (sp=0xb642b254) 0xb642b254: 00000000 0000028f b68d06d1 00000000 0xb642b264: 00000000 00000000 0806f180 0806af48 0xb642b274: 08071130 00000060 08071130 00000002 0xb642b284: 00000002 0809af34 0809af70 00000006 0xb642b294: 00000006 0809a3e4 0806f1d0 00000003 0xb642b2a4: 00000003 0809a1d8 0806f190 00000001 0xb642b2b4: 00000001 0809a430 00000000 00000000 0xb642b2c4: 00000001 b68ddc21 0809a3f0 0806f200 Instructions: (pc=0xb68d08d8) 0xb68d08c8: 59 8b 10 6a 00 50 ff 52 0c 89 85 a4 df ff ff 5e 0xb68d08d8: 8b 00 ff b5 a4 df ff ff ff 50 14 83 c4 10 66 83 Stack: [0xb2433000,0xb6434000), sp=0xb642b254, free space=65504k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) [error occurred during error reporting, step 120, id 0xb] --------------- P R O C E S S --------------- Java Threads: ( => current thread ) Other Threads: VM state:not at safepoint (not fully initilizated) VM Mutex/Monitor currently owned by a thread: None Heap [error occurred during error reporting, step 190, id 0xb] Dynamic libraries: 08048000-08056000 r-xp 00000000 03:05 1000009 /usr/lib/jvm/java-1.5.0-sun-1.5.0.03/jre/bin/java 08056000-08058000 rwxp 0000e000 03:05 1000009 /usr/lib/jvm/java-1.5.0-sun-1.5.0.03/jre/bin/java 08058000-080ba000 rwxp 08058000 00:00 0 [heap] ae1ec000-ae2ee000 rwxs 00000000 00:07 234717203 /SYSV6d05c0f5 (deleted) ae2ee000-ae2ef000 ---p ae2ee000 00:00 0 ae2ef000-b22ef000 rwxp ae2ef000 00:00 0 b22ef000-b2310000 rwxs 00000000 00:07 234684434 /SYSV6d05c0f4 (deleted) b2310000-b2331000 rwxs 00000000 00:07 234684434 /SYSV6d05c0f4 (deleted) b2331000-b2433000 rwxs 00000000 00:07 233897992 /SYSV6d05c0e2 (deleted) b2433000-b2434000 ---p b2433000 00:00 0 b2434000-b6434000 rwxp b2434000 00:00 0 b6434000-b646b000 r-xp 00000000 03:05 425686 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so b646b000-b647c000 rwxp 00037000 03:05 425686 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so b647c000-b647e000 rwxp b647c000 00:00 0 b647e000-b6488000 r-xp 00000000 00:18 3759187772 /vol/bitbucket/nd03/eclipse-install/ac/lib/libhcclsm.so.4.4.0 b6488000-b648a000 rwxp 00009000 00:18 3759187772 /vol/bitbucket/nd03/eclipse-install/ac/lib/libhcclsm.so.4.4.0 b648a000-b6493000 r-xp 00000000 00:18 3759187770 /vol/bitbucket/nd03/eclipse-install/ac/lib/libhcclco.so.4.4.0 b6493000-b6494000 rwxp 00008000 00:18 3759187770 /vol/bitbucket/nd03/eclipse-install/ac/lib/libhcclco.so.4.4.0 b6494000-b67e3000 r-xp 00000000 00:18 3759187747 /vol/bitbucket/nd03/eclipse-install/ac/lib/libxerces-c.so.26 b67e3000-b6899000 rwxp 0034e000 00:18 3759187747 /vol/bitbucket/nd03/eclipse-install/ac/lib/libxerces-c.so.26 b6899000-b689b000 rwxp b6899000 00:00 0 b689b000-b68af000 r-xp 00000000 00:18 3759107758 /vol/bitbucket/nd03/eclipse-install/ac/lib/libtptpConfig.so.4.3.0 b68af000-b68b2000 rwxp 00013000 00:18 3759107758 /vol/bitbucket/nd03/eclipse-install/ac/lib/libtptpConfig.so.4.3.0 b68b2000-b68b5000 rwxp b68b2000 00:00 0 b68b5000-b68c0000 r-xp 00000000 00:18 3759107761 /vol/bitbucket/nd03/eclipse-install/ac/lib/libtptpLogUtils.so.4.3.0 b68c0000-b68c2000 rwxp 0000a000 00:18 3759107761 /vol/bitbucket/nd03/eclipse-install/ac/lib/libtptpLogUtils.so.4.3.0 b68c2000-b68df000 r-xp 00000000 00:18 3759180212 /vol/bitbucket/nd03/eclipse-install/ac/lib/libtptpUtils.so.4.3.0 b68df000-b68e3000 rwxp 0001c000 00:18 3759180212 /vol/bitbucket/nd03/eclipse-install/ac/lib/libtptpUtils.so.4.3.0 b68e3000-b68e7000 r-xp 00000000 00:18 3759187745 /vol/bitbucket/nd03/eclipse-install/ac/lib/libtransportSupport.so.4.3.0 b68e7000-b68e8000 rwxp 00003000 00:18 3759187745 /vol/bitbucket/nd03/eclipse-install/ac/lib/libtransportSupport.so.4.3.0 b68e8000-b68ec000 r-xp 00000000 00:18 3759107734 /vol/bitbucket/nd03/eclipse-install/ac/lib/libprocessControlUtil.so.4.3.0 b68ec000-b68ed000 rwxp 00003000 00:18 3759107734 /vol/bitbucket/nd03/eclipse-install/ac/lib/libprocessControlUtil.so.4.3.0 b68ed000-b68fc000 r-xp 00000000 00:18 3759107746 /vol/bitbucket/nd03/eclipse-install/ac/lib/libtptpAgentBase.so.4.3.0 b68fc000-b68fe000 rwxp 0000e000 00:18 3759107746 /vol/bitbucket/nd03/eclipse-install/ac/lib/libtptpAgentBase.so.4.3.0 b68fe000-b6916000 r-xp 00000000 00:18 2552469735 /vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler/libJPIAgent.so b6916000-b691b000 rwxp 00018000 00:18 2552469735 /vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler/libJPIAgent.so b691b000-b75c3000 rwxp b691b000 00:00 0 b75c3000-b75f5000 r-xp 00000000 00:18 2552469734 /vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler/libJPI.so b75f5000-b7602000 rwxp 00031000 00:18 2552469734 /vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler/libJPI.so b7602000-b7612000 r-xp 00000000 03:05 2392204 /lib/libnsl-2.3.4.so b7612000-b7614000 rwxp 0000f000 03:05 2392204 /lib/libnsl-2.3.4.so b7614000-b7616000 rwxp b7614000 00:00 0 b7616000-b7619000 r-xp 00000000 00:18 3759187774 /vol/bitbucket/nd03/eclipse-install/ac/lib/libhccls.so.4.4.0 b7619000-b761a000 rwxp 00002000 00:18 3759187774 /vol/bitbucket/nd03/eclipse-install/ac/lib/libhccls.so.4.4.0 b761a000-b7630000 r-xp 00000000 00:18 2552469730 /vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler/libCGProf.so b7630000-b7634000 rwxp 00016000 00:18 2552469730 /vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler/libCGProf.so b7634000-b763b000 r-xp 00000000 00:18 2552469901 /vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler/libJPIBootLoader.so b763b000-b763d000 rwxp 00006000 00:18 2552469901 /vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler/libJPIBootLoader.so b763d000-b765e000 r-xp 00000000 03:05 2392280 /lib/tls/libm-2.3.4.so b765e000-b7660000 rwxp 00020000 03:05 2392280 /lib/tls/libm-2.3.4.so b7660000-b7981000 r-xp 00000000 03:05 1000075 /usr/lib/jvm/java-1.5.0-sun-1.5.0.03/jre/lib/i386/client/libjvm.so b7981000-b799f000 rwxp 00320000 03:05 1000075 /usr/lib/jvm/java-1.5.0-sun-1.5.0.03/jre/lib/i386/client/libjvm.so b799f000-b7db5000 rwxp b799f000 00:00 0 b7db5000-b7ed8000 r-xp 00000000 03:05 2392279 /lib/tls/libc-2.3.4.so b7ed8000-b7ed9000 ---p 00123000 03:05 2392279 /lib/tls/libc-2.3.4.so b7ed9000-b7eda000 r-xp 00123000 03:05 2392279 /lib/tls/libc-2.3.4.so b7eda000-b7edd000 rwxp 00124000 03:05 2392279 /lib/tls/libc-2.3.4.so b7edd000-b7edf000 rwxp b7edd000 00:00 0 b7edf000-b7ee1000 r-xp 00000000 03:05 2392194 /lib/libdl-2.3.4.so b7ee1000-b7ee3000 rwxp 00001000 03:05 2392194 /lib/libdl-2.3.4.so b7ee3000-b7ef1000 r-xp 00000000 03:05 2392281 /lib/tls/libpthread-0.10.so b7ef1000-b7ef3000 rwxp 0000d000 03:05 2392281 /lib/tls/libpthread-0.10.so b7ef3000-b7ef5000 rwxp b7ef3000 00:00 0 b7ef8000-b7f03000 r-xp 00000000 00:18 2552469728 /vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler/libACCollector.so b7f03000-b7f05000 rwxp 0000b000 00:18 2552469728 /vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler/libACCollector.so b7f05000-b7f07000 r-xp 00000000 03:05 2392231 /lib/libuuid.so.1.2 b7f07000-b7f08000 rwxp 00001000 03:05 2392231 /lib/libuuid.so.1.2 b7f08000-b7f11000 r-xp 00000000 00:18 2552469902 /vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler/libMartiniOSA.so b7f11000-b7f13000 rwxp 00009000 00:18 2552469902 /vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler/libMartiniOSA.so b7f13000-b7f19000 r-xp 00000000 03:05 1015812 /usr/lib/jvm/java-1.5.0-sun-1.5.0.03/jre/lib/i386/native_threads/libhpi.so b7f19000-b7f1a000 rwxp 00006000 03:05 1015812 /usr/lib/jvm/java-1.5.0-sun-1.5.0.03/jre/lib/i386/native_threads/libhpi.so b7f1a000-b7f1b000 rwxp b7f1a000 00:00 0 b7f1b000-b7f1c000 r-xp b7f1b000 00:00 0 b7f1c000-b7f1e000 rwxp b7f1c000 00:00 0 b7f1e000-b7f32000 r-xp 00000000 03:05 2392180 /lib/ld-2.3.4.so b7f32000-b7f33000 r-xp 00013000 03:05 2392180 /lib/ld-2.3.4.so b7f33000-b7f34000 rwxp 00014000 03:05 2392180 /lib/ld-2.3.4.so bfedd000-bfef5000 rwxp bfedd000 00:00 0 [stack] ffffe000-fffff000 ---p 00000000 00:00 0 [vdso] VM Arguments: jvm_args: -agentlib:JPIBootLoader=JPIAgent:server=controlled;CGProf java_command: test.Test Environment Variables: JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun CLASSPATH=/homes/nd03/runtime-EclipseApplication/Test/bin:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.platform.collection.framework_4.2.0.v200702070100/hcframe.jar:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.hyades.execution_4.3.0.v200702211436/hexr.jar:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.hyades.execution_4.3.0.v200702211436/hexl.jar:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.hyades.execution_4.3.0.v200702211436/hexcore.jar:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.core.runtime_3.3.100.v20061204.jar:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.equinox.common_3.3.0.v20070122.jar:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.osgi_3.3.0.v20070208.jar:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.core.runtime_3.3.100.v20061204.jar:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.equinox.common_3.3.0.v20070122.jar:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.osgi_3.3.0.v20070208.jar:/vol/bitbucket/nd03/eclipse-install/ac/plugins/com.ibm.icu_3.6.0.20061215.jar:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.equinox.common_3.3.0.v20070122.jar:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.equinox.common_3.3.0.v20070122.jar PATH=/usr/lib/jvm/java-1.5.0-sun-1.5.0.03/jre/bin/java:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler:/vol/bitbucket/nd03/eclipse-install/ac/bin:/vol/bitbucket/nd03/eclipse-install/ac/bin:/vol/lab/mac/cadence/smv/bin:/vol/lab/qp7.4/bin:/opt/icm/bin:/vol/lab/cs4/bin:/vol/lab/cs4/bin/i386:/vol/lab/bin:/vol/lab/bin/Linux/i386:/usr/X11R6/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/maple/bin:/usr/lib/jvm/java-1.5.0-sun/bin:/usr/local/bin/:/usr/games:/usr/lib/jre-1.4.2_07/bin:/usr/lib/ssh:~/bin/:/usr/local/bin:/usr/local/bin:/homes/nd03/bin:/vol/bitbucket/nd03/partial-eclipse/downloads/agent-controller/bin:/vol/bitbucket/nd03/eclipse-install/ac/bin USERNAME=nd03 LD_LIBRARY_PATH=/usr/lib/jvm/java-1.5.0-sun-1.5.0.03/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0.03/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0.03/jre/../lib/i386:/vol/bitbucket/nd03/eclipse-install/ac/lib:/vol/bitbucket/nd03/eclipse-install/ac/lib:/vol/bitbucket/nd03/eclipse-install/ac/lib:/vol/bitbucket/nd03/eclipse-install/ac/lib:/usr/lib/jvm/java-1.5.0-sun-1.5.0.03/jre/lib/i386/server:/usr/lib/jvm/java-1.5.0-sun-1.5.0.03/jre/lib/i386:/usr/lib:/vol/lab/mac/cadence/smv/lib:/opt/icm/lib:/vol/bitbucket/nd03/partial-eclipse/downloads/agent-controller/lib:/vol/bitbucket/nd03/eclipse-install/ac/lib:/vol/bitbucket/nd03/eclipse-install/ac/plugins/org.eclipse.tptp.javaprofiler SHELL=/bin/tcsh DISPLAY=:0.0 HOSTTYPE=i586-linux OSTYPE=linux ARCH=i386 MACHTYPE=i586 OS=Linux --------------- S Y S T E M --------------- OS:Mandrakelinux release 10.2 (Limited Edition 2005) for i586 uname:Linux 2.6.17.11-x86_01doc #1 SMP Wed Sep 6 12:10:14 BST 2006 i686 libc:glibc 2.3.4 NPTL 2.3.4 rlimit: STACK 65536k, CORE 0k, NPROC 1000, NOFILE 5000, AS 4000000k load average:0.77 0.62 0.64 CPU:total 1 Memory: 4k page, physical 1032580k(76776k free), swap 2096440k(2070028k free) vm_info: Java HotSpot(TM) Client VM (1.5.0_03-b07) for linux-x86, built on Apr 13 2005 03:17:07 by java_re with gcc 3.2.1-7a (J2SE release)
package test; public class Test { void go() { for (int i = 0; i < 5000; i++) { dot(); } } void dot() { System.out.print("."); } public static void main(String[] args) { new Test().go(); } }
_______________________________________________ tptp-tracing-profiling-tools-dev mailing list tptp-tracing-profiling-tools-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev