tcServer JVM crash - EXCEPTION_ACCESS_VIOLATION (0xc0000005) - grails
We are attempting to deploy a Grails(v2.1.0) application onto our tcServer(v2.0.2), which we have done without issue in lower environments and are unable to start it up.
Stacktrace:
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006da0309a, pid=5944, tid=4276
#
# JRE version: 6.0_45-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.45-b01 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V [jvm.dll+0x12309a]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x0000000005409800): JavaThread "WrapperSimpleAppMain" [_thread_in_vm, id=4276, stack(0x00000000069b0000,0x00000000069e0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x000000036d7c8e70
Registers:
RAX=0x0000000000000000, RBX=0x0000000005409800, RCX=0x0000000000000003, RDX=0x000000036d7c8e00
RSP=0x00000000069dab40, RBP=0x00000000069dac90, RSI=0x00000000054099d0, RDI=0x0000000005409800
R8 =0x000000000000002f, R9 =0x0000000074bd1607, R10=0x000000000000002f, R11=0x00000007e88646a8
R12=0x0000000000000000, R13=0x00000000069daea8, R14=0x00000000069daed8, R15=0x00000000069daee0
RIP=0x000000006da0309a, EFLAGS=0x0000000000010206
Top of Stack: (sp=0x00000000069dab40)
0x00000000069dab40: 0000000005409800 00000000069dac90
0x00000000069dab50: 0000000074bd15d8 00000000054099d0
0x00000000069dab60: 0000000005409800 0000000000000000
0x00000000069dab70: 00000000053e9950 0000000b0000005f
0x00000000069dab80: 000000000000004a 0000000074bd3634
0x00000000069dab90: 00000000054099d0 00000000069dac90
0x00000000069daba0: 000000000541f010 0000000005409800
0x00000000069dabb0: 000000006de96cc8 0000000000000000
0x00000000069dabc0: 0000000000000000 0000000000000000
0x00000000069dabd0: 0000000000000000 0000000000000000
0x00000000069dabe0: 0000000000000000 0000000000000000
0x00000000069dabf0: 0000000000000000 0000000000000000
0x00000000069dac00: 0000000000000000 00000000011707e0
0x00000000069dac10: 0000000000000000 0000000000000000
0x00000000069dac20: 0000000000000000 00000000069daea8
0x00000000069dac30: 00000000069daec0 0000000000000000
Instructions: (pc=0x000000006da0309a)
0x000000006da0307a: 00 48 8b 17 74 16 8b 52 08 0f b6 0d b6 61 5e 00
0x000000006da0308a: 48 d3 e2 48 03 15 a4 61 5e 00 eb 04 48 8b 52 08
0x000000006da0309a: 48 8b 52 70 48 8b ce e8 4a 98 0c 00 48 83 7c 24
0x000000006da030aa: 28 00 48 8b f0 74 0a 48 8d 4c 24 20 e8 55 72 12
Register to memory mapping:
RAX=0x0000000000000000 is an unknown value
RBX=0x0000000005409800 is a thread
RCX=0x0000000000000003 is an unknown value
RDX=0x000000036d7c8e00 is an unknown value
RSP=0x00000000069dab40 is pointing into the stack for thread: 0x0000000005409800
RBP=0x00000000069dac90 is pointing into the stack for thread: 0x0000000005409800
RSI=0x00000000054099d0 is an unknown value
RDI=0x0000000005409800 is a thread
R8 =0x000000000000002f is an unknown value
R9 =0x0000000074bd1607 is an unknown value
R10=0x000000000000002f is an unknown value
R11=0x00000007e88646a8 is an unknown value
R12=0x0000000000000000 is an unknown value
R13=0x00000000069daea8 is pointing into the stack for thread: 0x0000000005409800
R14=0x00000000069daed8 is pointing into the stack for thread: 0x0000000005409800
R15=0x00000000069daee0 is pointing into the stack for thread: 0x0000000005409800
Stack: [0x00000000069b0000,0x00000000069e0000], sp=0x00000000069dab40, free space=170k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x12309a]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.microsoft.sqlserver.jdbc.AuthenticationJNI.SNISecGenClientContext([B[I[BI[B[I[ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/logging/Logger;)I+0
j com.microsoft.sqlserver.jdbc.AuthenticationJNI.GenerateClientContext([BI[B[I[Z)I+24
j com.microsoft.sqlserver.jdbc.SQLServerConnection.SSPIData([B[B[I[ZLcom/microsoft/sqlserver/jdbc/AuthenticationJNI;)V+13
j com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(Lcom/microsoft/sqlserver/jdbc/SQLServerConnection$LogonCommand;Lcom/microsoft/sqlserver/jdbc/AuthenticationJNI;)V+155
j com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(Lcom/microsoft/sqlserver/jdbc/SQLServerConnection$LogonCommand;)V+20
j com.microsoft.sqlserver.jdbc.SQLServerConnection.access$000(Lcom/microsoft/sqlserver/jdbc/SQLServerConnection;Lcom/microsoft/sqlserver/jdbc/SQLServerConnection$LogonCommand;)V+2
j com.microsoft.sqlserver.jdbc.SQLServerConnection$LogonCommand.doExecute()Z+5
j com.microsoft.sqlserver.jdbc.TDSCommand.execute(Lcom/microsoft/sqlserver/jdbc/TDSWriter;Lcom/microsoft/sqlserver/jdbc/TDSReader;)Z+30
j com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(Lcom/microsoft/sqlserver/jdbc/TDSCommand;)Z+45
j com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Lcom/microsoft/sqlserver/jdbc/ServerPortPlaceHolder;II)V+284
j com.microsoft.sqlserver.jdbc.SQLServerConnection.login(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Lcom/microsoft/sqlserver/jdbc/FailoverInfo;IJ)V+399
j com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Ljava/util/Properties;Lcom/microsoft/sqlserver/jdbc/SQLServerPooledConnection;)Ljava/sql/Connection;+1929
j com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+45
j org.apache.commons.dbcp.DriverConnectionFactory.createConnection()Ljava/sql/Connection;+12
j org.apache.commons.dbcp.PoolableConnectionFactory.makeObject()Ljava/lang/Object;+4
j org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Lorg/apache/commons/dbcp/PoolableConnectionFactory;)V+3
j org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(Lorg/apache/commons/dbcp/ConnectionFactory;Lorg/apache/commons/pool/KeyedObjectPoolFactory;Lorg/apache/commons/dbcp/AbandonedConfig;)V+49
j org.apache.commons.dbcp.BasicDataSource.createDataSource()Ljavax/sql/DataSource;+71
j org.apache.commons.dbcp.BasicDataSource.getConnection()Ljava/sql/Connection;+1
j org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(Ljavax/sql/DataSource;)Ljava/sql/Connection;+79
j org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+281
j com.sun.proxy.$Proxy26.getMetaData()Ljava/sql/DatabaseMetaData;+9
j org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(Ljavax/sql/DataSource;Lorg/springframework/jdbc/support/DatabaseMetaDataCallback;)Ljava/lang/Object;+43
j org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(Ljavax/sql/DataSource;Ljava/lang/String;)Ljava/lang/Object;+9
j org.codehaus.groovy.grails.orm.hibernate.support.HibernateDialectDetectorFactoryBean.afterPropertiesSet()V+26
j org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(Ljava/lang/String;Ljava/lang/Object;Lorg/springframework/beans/factory/support/RootBeanDefinition;)V+107
j org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(Ljava/lang/String;Ljava/lang/Object;Lorg/springframework/beans/factory/support/RootBeanDefinition;)Ljava/lang/Object;+61
j org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(Ljava/lang/String;Lorg/springframework/beans/factory/support/RootBeanDefinition;[Ljava/lang/Object;)Ljava/lang/Object;+230
j org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableBeanFactory.doCreateBean(Ljava/lang/String;Lorg/springframework/beans/factory/support/RootBeanDefinition;[Ljava/lang/Object;)Ljava/lang/Object;+11
j org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(Ljava/lang/String;Lorg/springframework/beans/factory/support/RootBeanDefinition;[Ljava/lang/Object;)Ljava/lang/Object;+122
j org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject()Ljava/lang/Object;+16
j org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(Ljava/lang/String;Lorg/springframework/beans/factory/ObjectFactory;)Ljava/lang/Object;+126
j org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Object;Z)Ljava/lang/Object;+307
j org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ljava/lang/String;)Ljava/lang/Object;+5
j org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(Ljava/lang/Object;Lorg/springframework/beans/factory/config/RuntimeBeanReference;)Ljava/lang/Object;+94
j org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+15
j org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(Ljava/lang/Object;Ljava/util/Map;)Ljava/util/Map;+79
j org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+300
j org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(Ljava/lang/String;Lorg/springframework/beans/factory/config/BeanDefinition;Lorg/springframework/beans/BeanWrapper;Lorg/springframework/beans/PropertyValues;)V+231
j org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(Ljava/lang/String;Lorg/springframework/beans/factory/support/AbstractBeanDefinition;Lorg/springframework/beans/BeanWrapper;)V+339
j org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(Ljava/lang/String;Lorg/springframework/beans/factory/support/RootBeanDefinition;[Ljava/lang/Object;)Ljava/lang/Object;+217
j org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableBeanFactory.doCreateBean(Ljava/lang/String;Lorg/springframework/beans/factory/support/RootBeanDefinition;[Ljava/lang/Object;)Ljava/lang/Object;+11
j org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(Ljava/lang/String;Lorg/springframework/beans/factory/support/RootBeanDefinition;[Ljava/lang/Object;)Ljava/lang/Object;+122
j org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Object;Z)Ljava/lang/Object;+351
j org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ljava/lang/String;)Ljava/lang/Object;+5
j org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(Ljava/lang/Object;Lorg/springframework/beans/factory/config/RuntimeBeanReference;)Ljava/lang/Object;+94
j org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+15
j org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(Ljava/lang/String;Lorg/springframework/beans/factory/config/BeanDefinition;Lorg/springframework/beans/BeanWrapper;Lorg/springframework/beans/PropertyValues;)V+231
j org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(Ljava/lang/String;Lorg/springframework/beans/factory/support/AbstractBeanDefinition;Lorg/springframework/beans/BeanWrapper;)V+339
j org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(Ljava/lang/String;Lorg/springframework/beans/factory/support/RootBeanDefinition;[Ljava/lang/Object;)Ljava/lang/Object;+217
j org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableBeanFactory.doCreateBean(Ljava/lang/String;Lorg/springframework/beans/factory/support/RootBeanDefinition;[Ljava/lang/Object;)Ljava/lang/Object;+11
...spring framework...
j org.apache.catalina.core.ContainerBase.addChild(Lorg/apache/catalina/Container;)V+26
j org.apache.catalina.core.StandardHost.addChild(Lorg/apache/catalina/Container;)V+50
j org.apache.catalina.startup.HostConfig.deployWAR(Ljava/lang/String;Ljava/io/File;Ljava/lang/String;)V+617
j org.apache.catalina.startup.HostConfig.deployWARs(Ljava/io/File;[Ljava/lang/String;)V+223
j org.apache.catalina.startup.HostConfig.deployApps()V+25
j org.apache.catalina.startup.HostConfig.start()V+229
j org.apache.catalina.startup.HostConfig.lifecycleEvent(Lorg/apache/catalina/LifecycleEvent;)V+132
j org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Ljava/lang/String;Ljava/lang/Object;)V+37
j org.apache.catalina.core.ContainerBase.start()V+306
j org.apache.catalina.core.StandardHost.start()V+315
j org.apache.catalina.core.ContainerBase.start()V+266
j org.apache.catalina.core.StandardEngine.start()V+221
j org.apache.catalina.core.StandardService.start()V+133
j org.apache.catalina.core.StandardServer.start()V+88
j org.apache.catalina.startup.Catalina.start()V+50
v ~StubRoutines::call_stub
j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
j org.apache.catalina.startup.Bootstrap.start()V+37
j org.apache.catalina.startup.Bootstrap.main([Ljava/lang/String;)V+131
j net.covalent.tomcat.wrapper.ThreadDumpWrapper.main([Ljava/lang/String;)V+248
v ~StubRoutines::call_stub
j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
j org.tanukisoftware.wrapper.WrapperSimpleApp.run()V+55
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x000000000710b000 JavaThread "Timer-0" daemon [_thread_blocked, id=4992, stack(0x00000000067f0000,0x0000000006820000)]
0x0000000007109000 JavaThread "RMI TCP Connection(idle)" daemon [_thread_blocked, id=5216, stack(0x0000000007670000,0x00000000076a0000)]
0x0000000007108000 JavaThread "RMI RenewClean-[127.0.0.1:6969]" daemon [_thread_blocked, id=4860, stack(0x00000000075b0000,0x00000000075e0000)]
0x00000000070dc000 JavaThread "RMI Scheduler(0)" daemon [_thread_blocked, id=9024, stack(0x0000000007580000,0x00000000075b0000)]
0x00000000070db800 JavaThread "RMI TCP Connection(idle)" daemon [_thread_blocked, id=3940, stack(0x0000000007550000,0x0000000007580000)]
0x0000000007445800 JavaThread "RMI Reaper" [_thread_blocked, id=10896, stack(0x0000000006c80000,0x0000000006cb0000)]
0x0000000006f36000 JavaThread "RMI TCP Accept-6969" daemon [_thread_in_native, id=2576, stack(0x0000000006c50000,0x0000000006c80000)]
0x0000000007240000 JavaThread "GC Daemon" daemon [_thread_blocked, id=8700, stack(0x0000000006a10000,0x0000000006a40000)]
=>0x0000000005409800 JavaThread "WrapperSimpleAppMain" [_thread_in_vm, id=4276, stack(0x00000000069b0000,0x00000000069e0000)]
0x00000000005ad000 JavaThread "DestroyJavaVM" [_thread_blocked, id=5804, stack(0x0000000000230000,0x0000000000260000)]
0x000000000553f800 JavaThread "Wrapper-Connection" daemon [_thread_in_native, id=10720, stack(0x0000000006950000,0x0000000006980000)]
0x0000000005496000 JavaThread "Wrapper-Control-Event-Monitor" daemon [_thread_blocked, id=9340, stack(0x00000000067c0000,0x00000000067f0000)]
0x00000000053f7000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3268, stack(0x0000000005310000,0x0000000005340000)]
0x00000000053e6000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=6492, stack(0x00000000061c0000,0x00000000062c0000)]
0x00000000053d1800 JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=5236, stack(0x00000000060c0000,0x00000000061c0000)]
0x00000000053d0800 JavaThread "Attach Listener" daemon [_thread_blocked, id=2428, stack(0x00000000052e0000,0x0000000005310000)]
0x00000000053cf800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10964, stack(0x00000000052b0000,0x00000000052e0000)]
0x000000000537e000 JavaThread "Finalizer" daemon [_thread_blocked, id=11248, stack(0x00000000003c0000,0x00000000003f0000)]
0x0000000005378000 JavaThread "Reference Handler" daemon [_thread_blocked, id=6624, stack(0x0000000000390000,0x00000000003c0000)]
Other Threads:
0x000000000536c800 VMThread [stack: 0x0000000005dc0000,0x0000000005ec0000] [id=10816]
0x0000000005407800 WatcherThread [stack: 0x00000000062c0000,0x00000000063c0000] [id=7144]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 611648K, used 373857K [0x00000007d5560000, 0x0000000800000000, 0x0000000800000000)
eden space 524288K, 60% used [0x00000007d5560000,0x00000007e8ad3898,0x00000007f5560000)
from space 87360K, 65% used [0x00000007faab0000,0x00000007fe254c60,0x0000000800000000)
to space 87360K, 0% used [0x00000007f5560000,0x00000007f5560000,0x00000007faab0000)
PSOldGen total 1398144K, used 2010K [0x0000000780000000, 0x00000007d5560000, 0x00000007d5560000)
object space 1398144K, 0% used [0x0000000780000000,0x00000007801f6a98,0x00000007d5560000)
PSPermGen total 262144K, used 77670K [0x0000000770000000, 0x0000000780000000, 0x0000000780000000)
object space 262144K, 29% used [0x0000000770000000,0x0000000774bd9a18,0x0000000780000000)
Code Cache [0x0000000001120000, 0x00000000016b0000, 0x0000000004120000)
total_blobs=1661 nmethods=1065 adapters=547 free_code_cache=44626816 largest_free_block=15424
Dynamic libraries:
0x0000000000400000 - 0x000000000042f000 D:\Java\jdk1.6.0_45\bin\java.exe
0x0000000077be0000 - 0x0000000077d89000 C:\Windows\SYSTEM32\ntdll.dll
0x0000000077500000 - 0x000000007761f000 C:\Windows\system32\kernel32.dll
0x000007fefe130000 - 0x000007fefe19b000 C:\Windows\system32\KERNELBASE.dll
0x000007fefe540000 - 0x000007fefe61b000 C:\Windows\system32\ADVAPI32.dll
0x000007feffbf0000 - 0x000007feffc8f000 C:\Windows\system32\msvcrt.dll
0x000007fefe520000 - 0x000007fefe53f000 C:\Windows\SYSTEM32\sechost.dll
0x000007fefe680000 - 0x000007fefe7ad000 C:\Windows\system32\RPCRT4.dll
0x000000006d8e0000 - 0x000000006e09c000 D:\Java\jdk1.6.0_45\jre\bin\server\jvm.dll
0x0000000077ae0000 - 0x0000000077bda000 C:\Windows\system32\USER32.dll
0x000007fefe860000 - 0x000007fefe8c7000 C:\Windows\system32\GDI32.dll
0x000007fefe9d0000 - 0x000007fefe9de000 C:\Windows\system32\LPK.dll
0x000007fefe9e0000 - 0x000007fefeaa9000 C:\Windows\system32\USP10.dll
0x000007fef6320000 - 0x000007fef635b000 C:\Windows\system32\WINMM.dll
0x000007feff8c0000 - 0x000007feff8ee000 C:\Windows\system32\IMM32.DLL
0x000007fefe410000 - 0x000007fefe519000 C:\Windows\system32\MSCTF.dll
0x000000006d850000 - 0x000000006d85e000 D:\Java\jdk1.6.0_45\jre\bin\verify.dll
0x000000006d460000 - 0x000000006d487000 D:\Java\jdk1.6.0_45\jre\bin\java.dll
0x000000006d8a0000 - 0x000000006d8b2000 D:\Java\jdk1.6.0_45\jre\bin\zip.dll
0x000007fefeb30000 - 0x000007feff8b8000 C:\Windows\system32\SHELL32.DLL
0x000007fefeab0000 - 0x000007fefeb21000 C:\Windows\system32\SHLWAPI.dll
0x000007feff9e0000 - 0x000007feffbe3000 C:\Windows\system32\ole32.dll
0x000007fefdf30000 - 0x000007fefdf3f000 C:\Windows\system32\CRYPTBASE.dll
0x000007fefca90000 - 0x000007fefcc84000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\comctl32.dll
0x000007fefe8f0000 - 0x000007fefe9c7000 C:\Windows\system32\OLEAUT32.dll
0x000007feffd10000 - 0x000007feffee7000 C:\Windows\system32\SETUPAPI.dll
0x000007fefe0f0000 - 0x000007fefe126000 C:\Windows\system32\CFGMGR32.dll
0x000007fefe1a0000 - 0x000007fefe1ba000 C:\Windows\system32\DEVOBJ.dll
0x000007feff940000 - 0x000007feff9d9000 C:\Windows\system32\CLBCatQ.DLL
0x000007fefc020000 - 0x000007fefc14c000 C:\Windows\system32\propsys.dll
0x000007fef8f00000 - 0x000007fef8f1a000 D:\tcServer\2.0.2\preview\tomcat-6.0.26.B-SR01\bin\winx86_64\wrapper.dll
0x000000006d6c0000 - 0x000000006d6d7000 D:\Java\jdk1.6.0_45\jre\bin\net.dll
0x000007feff8f0000 - 0x000007feff93d000 C:\Windows\system32\WS2_32.dll
0x000007fefe850000 - 0x000007fefe858000 C:\Windows\system32\NSI.dll
0x000007fefd870000 - 0x000007fefd8c5000 C:\Windows\system32\mswsock.dll
0x000007fefd860000 - 0x000007fefd867000 C:\Windows\System32\wship6.dll
0x000007fefd250000 - 0x000007fefd257000 C:\Windows\System32\wshtcpip.dll
0x000000006d600000 - 0x000000006d60a000 D:\Java\jdk1.6.0_45\jre\bin\management.dll
0x000007fefcca0000 - 0x000007fefccb5000 C:\Windows\system32\NLAapi.dll
0x000007fefa900000 - 0x000007fefa915000 C:\Windows\system32\napinsp.dll
0x000007fefd6f0000 - 0x000007fefd74b000 C:\Windows\system32\DNSAPI.dll
0x000007fefa8f0000 - 0x000007fefa8fb000 C:\Windows\System32\winrnr.dll
0x000007fefb8e0000 - 0x000007fefb907000 C:\Windows\system32\IPHLPAPI.DLL
0x000007fefb8c0000 - 0x000007fefb8cb000 C:\Windows\system32\WINNSI.DLL
0x000007fefa850000 - 0x000007fefa858000 C:\Windows\system32\rasadhlp.dll
0x000007fefb740000 - 0x000007fefb793000 C:\Windows\System32\fwpuclnt.dll
0x000007fefd8d0000 - 0x000007fefd8e7000 C:\Windows\system32\CRYPTSP.dll
0x000007fefd5d0000 - 0x000007fefd617000 C:\Windows\system32\rsaenh.dll
0x000007fefd370000 - 0x000007fefd38e000 C:\Windows\system32\USERENV.dll
0x000007fefe040000 - 0x000007fefe04f000 C:\Windows\system32\profapi.dll
0x000000006d760000 - 0x000000006d766000 D:\Java\jdk1.6.0_45\jre\bin\rmi.dll
0x000000006d820000 - 0x000000006d82b000 D:\Java\jdk1.6.0_45\jre\bin\sunmscapi.dll
0x000007fefe2a0000 - 0x000007fefe40a000 C:\Windows\system32\CRYPT32.dll
0x000007fefe0e0000 - 0x000007fefe0ef000 C:\Windows\system32\MSASN1.dll
0x0000000074bd0000 - 0x0000000074be7000 C:\Program Files\Microsoft JDBC Driver 4.0 for SQL Server\sqljdbc_4.0\enu\auth\x64\sqljdbc_auth.dll
0x000007fefdc10000 - 0x000007fefdc1b000 C:\Windows\system32\secur32.dll
0x000007fefde90000 - 0x000007fefdeb5000 C:\Windows\system32\SSPICLI.DLL
0x000007fefd4c0000 - 0x000007fefd4ca000 C:\Windows\system32\credssp.dll
0x000007fefd8f0000 - 0x000007fefd9a4000 C:\Windows\system32\kerberos.DLL
0x000007fefdb80000 - 0x000007fefdb94000 C:\Windows\system32\cryptdll.dll
0x000007fefd800000 - 0x000007fefd851000 C:\Windows\system32\msv1_0.DLL
0x000007fefae10000 - 0x000007fefae37000 C:\Windows\system32\ntdsapi.dll
0x0000000077db0000 - 0x0000000077db7000 C:\Windows\system32\PSAPI.DLL
VM Arguments:
jvm_args: -Djava.endorsed.dirs=D:\tcServer\2.0.2\preview\\tomcat-6.0.26.B-SR01\common\endorsed -Dcatalina.base=D:\tcServer\2.0.2\preview\Patient1 -Dcatalina.home=D:\tcServer\2.0.2\preview\\tomcat-6.0.26.B-SR01 -Djava.io.tmpdir=D:\tcServer\2.0.2\preview\Patient1\temp -Djava.util.logging.manager=com.springsource.tcserver.serviceability.logging.TcServerLogManager -Djava.util.logging.config.file=D:\tcServer\2.0.2\preview\Patient1\conf\logging.properties -Dwrapper.dump.port=-1 -Xss192k -Xms2048m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=256m -Dgrails.env=preview -Djava.library.path=D:\tcServer\2.0.2\preview\\tomcat-6.0.26.B-SR01\bin\winx86_64;C:\Program Files\Microsoft JDBC Driver 4.0 for SQL Server\sqljdbc_4.0\enu\auth\x64 -Dwrapper.key=CBRUo14WlAHwrv6B -Dwrapper.port=32003 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=6448 -Dwrapper.version=3.2.3 -Dwrapper.native_library=wrapper -Dwrapper.service=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=5
java_command: org.tanukisoftware.wrapper.WrapperSimpleApp net.covalent.tomcat.wrapper.ThreadDumpWrapper start
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=D:\Java\jdk1.6.0_45
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Dell\SysMgt\shared\bin;C:\Program Files (x86)\Dell\SysMgt\oma\bin;C:\Program Files (x86)\Dell\SysMgt\idrac;D:\Java\jdk1.6.0_20\bin
USERNAME=SYSTEM
ARCH=winx86_64
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 44 Stepping 2, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows NT 6.1 , 64 bit Build 7601 Service Pack 1
CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 44 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht
Memory: 4k page, physical 16763992k(4410876k free), swap 33526124k(16701584k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (20.45-b01) for windows-amd64 JRE (1.6.0_45-b06), built on Apr 1 2013 12:31:37 by "java_re" with MS VC++ 8.0 (VS2005)
time: Mon Jun 24 16:57:32 2013
elapsed time: 22 seconds
We have tried JDK versions 1.6.0_20 and 1.6.0_45, rebuilt/redeployed through Jenkins, uninstalled and reinstalled the app through tcServer.
Thanks in advance for any ideas, feel free to request information I may have missed.
I believe your crash is caused by some issue with the SQL Server driver when trying to use Integrated Authentication (also referred as Integrated Security)
from MS website (emphasis mine)
The JDBC driver supports the use of Type 2 integrated authentication on Windows operating systems through the integratedSecurity connection string property. To use integrated authentication, copy the sqljdbc_auth.dll file to a directory on the Windows system path on the computer where the JDBC driver is installed.
The sqljdbc_auth.dll files are installed in the following location:
\sqljdbc_\\auth\
Note
If you are running a 32-bit Java Virtual Machine (JVM), use the sqljdbc_auth.dll file in the x86 folder, even if the operating system is the x64 version. If you are running a 64-bit JVM on a x64 processor, use the sqljdbc_auth.dll file in the x64 folder. If you are running a 64-bit JVM on a IA-64 processor, use the sqljdbc_auth.dll file in the IA64 folder.
Alternatively you can set the java.libary.path system property to specify the directory of the sqljdbc_auth.dll.
For example, if the JDBC driver is installed in the default directory, you can specify the location of the DLL by using the following virtual machine (VM) argument when the Java application is started:
-Djava.library.path=C:\Microsoft SQL Server 2005 JDBC Driver\sqljdbc_\enu\auth\x86
{end of quote from MS website}
PS: To turn off integrated authentication / security change the integratedSecurity flag on the JDBC Connection String to false (ie: integratedSecurity=false)
More info at:
http://msdn.microsoft.com/en-us/library/ms378428(v=sql.90).aspx
Check the sql driver (sqljdbc4.jar) is up to date and (in sync) i.e from the same release as your sqljdbc_auth.dll.
For example: if your using the auth dll sourced from a download such as this:
C:\Microsoft SQL Server 2005 JDBC Driver\sqljdbc_4.0\enu\auth\x64\sqljdbc_auth.dll
Then you should be using the matching driver from the same release:
C:\Microsoft SQL Server 2005 JDBC Driver\sqljdbc_4.0\enu\sqljdbc4.jar
I suspect your fix worked because you started with a jdbc 3 auth dll mixed with a jdbc 4 driver. Reverting the driver to 3.0 fixed the issue. Try promoting both to 4.
The assembly code does the following:
6da0307b: 48 8b 17 mov rdx,QWORD PTR [rdi]
6da0307e: 74 16 je 0x6da03096
6da03080: 8b 52 08 mov edx,DWORD PTR [rdx+8]
6da03083: 0f b6 0d b6 61 5e 00 movzx ecx,BYTE PTR ds:0x5e61b6
6da0308a: 48 d3 e2 shl rdx,cl
6da0308d: 48 03 15 a4 61 5e 00 add rdx,QWORD PTR ds:0x5e61a4
6da03094: eb 04 jmp 0x6da0309a
6da03096: 48 8b 52 08 mov rdx,QWORD PTR [rdx+8]
6da0309a: 48 8b 52 70 mov rdx,QWORD PTR [rdx+112]
6da0309e: 48 8b ce mov rcx,rsi
6da030a1: e8 4a 98 0c 00 call 0x6dacc8f0
6da030a6: 48 83 7c 24 28 00 cmp QWORD PTR [rsp+40],0x0
6da030ac: 48 8b f0 mov rsi,rax
6da030af: 74 0a je 0x6da030bb
6da030b1: 48 8d 4c 24 20 lea rcx,[rsp+32]
6da030b6: e8 55 72 12 ?? call 0x????
at 0x6da0309a it fails cause it can't read memory. The address in rdx (0x000000036d7c8e70) is referencing incorrect memory address according to the memory map.
From the dissassembly, the code does not seem to do the right thing. I suggest you do the following:
Run a memory test (memtest86 or similar)
Try to increase stack size (192k is too low for a 64bit platform), try -Xss512k
Try not to use compressed oops (-XX:-UseCompressedOops)
Try verifying that the code above actually matches jvm.dll+0x12309a
Try running it on Intel instead of AMD
Related
A null pointer bug in linux
Recently, we met a kernel panic issue due to NULL pointer dereference in the function ixgbevf_alloc_rx_buffers when up or down the VF into docker container. We can reproduce the issue when up down vf in container. Driver and kernel information: driver: ixgbe version: 4.4.0-k-rh7.3 driver: ixgbevf version: 2.12.1-k-rh7.3 host kernel: centos Linux 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux BUG: [15332.577915] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008 [15332.578277] IP: [<ffffffffa05dc610>] ixgbevf_alloc_rx_buffers+0x60/0x180 [ixgbevf] [15332.578569] PGD 3ed27a0067 PUD 3ed27a3067 PMD 0 [15332.579034] Oops: 0000 [#1] SMP [15332.579512] Modules linked in: ixgbevf xt_set ip_set_hash_ipportnet ip_set_bitmap_port ip_set_hash_ipport ip_set_hash_ipportip ip_set dummy xt_comment xt_mark ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xt_conntrack br_netfilter bridge stp llc overlay(T) iptable_filter xt_addrtype iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 ip_vs_sh ip_vs_wrr ip_vs_rr ip_vs nf_conntrack intel_powerclamp coretemp intel_rapl iosf_mbi kvm_intel kvm irqbypass crc32_pclmul iTCO_wdt ghash_clmulni_intel aesni_intel iTCO_vendor_support mxm_wmi lrw gf128mul glue_helper ablk_helper cryptd mei_me ipmi_devintf pcspkr mei sg i2c_i801 lpc_ich ipmi_si ipmi_msghandler wmi shpchp acpi_power_meter ip_tables xfs libcrc32c sd_mod crc_t10dif crct10dif_generic crct10dif_pclmul ast crct10dif_common [15332.583611] crc32c_intel drm_kms_helper syscopyarea sysfillrect sysimgblt ixgbe fb_sys_fops ttm igb mdio ahci drm ptp libahci pps_core dca i2c_algo_bit libata megaraid_sas i2c_core fjes dm_mirror dm_region_hash dm_log dm_mod [15332.586109] CPU: 30 PID: 302 Comm: kworker/u80:1 Tainted: G ------------ T 3.10.0-514.26.2.el7.x86_64 #1 [15332.587224] Hardware name: Sugon I610-G20/60G24-US, BIOS 006 08/07/2017 [15332.588322] Workqueue: ixgbevf ixgbevf_service_task [ixgbevf] [15332.589099] task: ffff881ffd121f60 ti: ffff881ffd134000 task.ti: ffff881ffd134000 [15332.589912] RIP: 0010:[<ffffffffa05dc610>] [<ffffffffa05dc610>] ixgbevf_alloc_rx_buffers+0x60/0x180 [ixgbevf] [15332.590770] RSP: 0018:ffff881ffd137d20 EFLAGS: 00010287 [15332.591638] RAX: 0000000000000200 RBX: 0000000000000000 RCX: 0000000000000000 [15332.592534] RDX: 0000000000000000 RSI: 00000000000001ff RDI: ffff883fe13eaf00 [15332.593438] RBP: ffff881ffd137d58 R08: ffff881ffd134000 R09: 0000000000000000 [15332.594361] R10: 0000000000000001 R11: 0000000000000005 R12: 0000000000000000 [15332.595300] R13: 00000000fffffe00 R14: 00000000000001ff R15: ffff883fe13eaf00 [15332.596248] FS: 0000000000000000(0000) GS:ffff883fff280000(0000) knlGS:0000000000000000 [15332.597224] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [15332.598231] CR2: 0000000000000008 CR3: 0000003ef3b68000 CR4: 00000000003407e0 [15332.599257] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [15332.600281] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [15332.601325] Stack: [15332.602352] ffff883f85ab3ba8 ffff881ffd137d38 ffff883f85ab38c0 0000000000000009 [15332.603431] ffff883f85ab3ba8 ffff883fe13eaf00 0000000000001028 ffff881ffd137db8 [15332.604526] ffffffffa05de7af 0000003e00000000 ffff883f85ab38c0 0000000000001028 [15332.605641] Call Trace: [15332.606757] [<ffffffffa05de7af>] ixgbevf_configure+0x5af/0x720 [ixgbevf] [15332.608078] [<ffffffffa05e04b5>] ixgbevf_reinit_locked+0x65/0x90 [ixgbevf] [15332.609329] [<ffffffffa05e172f>] ixgbevf_service_task+0x29f/0x370 [ixgbevf] [15332.610515] [<ffffffff810a845b>] process_one_work+0x17b/0x470 [15332.611710] [<ffffffff810a9296>] worker_thread+0x126/0x410 [15332.612916] [<ffffffff810a9170>] ? rescuer_thread+0x460/0x460 [15332.614136] [<ffffffff810b0a4f>] kthread+0xcf/0xe0 [15332.615371] [<ffffffff810b0980>] ? kthread_create_on_node+0x140/0x140 [15332.616618] [<ffffffff81697758>] ret_from_fork+0x58/0x90 [15332.617877] [<ffffffff810b0980>] ? kthread_create_on_node+0x140/0x140 [15332.619153] Code: c5 41 89 f6 49 89 c4 48 8d 14 40 48 8b 47 38 49 c1 e4 04 4c 03 67 18 48 8d 1c d0 0f b7 47 2c 41 29 c5 66 0f 1f 84 00 00 00 00 00 <48> 83 7b 08 00 74 76 8b 53 10 48 8b 03 48 01 d0 49 83 c4 10 48 [15332.621915] RIP [<ffffffffa05dc610>] ixgbevf_alloc_rx_buffers+0x60/0x180 [ixgbevf] [15332.623301] RSP <ffff881ffd137d20> [15332.624659] CR2: 0000000000000008 Does somebody have get this bug before?And how to fix it?
we update lxbge resolve this problem: pci:Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 lxbge version: 5.3.7 kernel version: 4.4.138-1.el7.elrepo.x86_64 linux release: Release: 7.4.1708
Connect to Windows SQL Server 2008 R2 from Rails app
My Rails 4.2.1 app has to connect to a Microsoft SQL 2008 R2 database. I am using the tiny_tds gem version 1.0.4. FreeTDS v1.00.15 is installed on the production server running Ubuntu 14.04. I run queries inside an each loop and I can't get the loop to complete, the process crashes before completion. I tried playing with tiny_tds options without success. Here's the code I am using to get the tiny_tds client (check tds_version and timeout options): client = TinyTds::Client.new(username: db_conf['username'], password: db_conf['password'], host: db_conf['host'], port: db_conf['port'], database: db_conf['database'], tds_version: '7.3', timeout: 15000, appname: 'ERP') Here's the FreeTDS log after such an error happens. packet.c:741:Sending packet 0000 12 01 00 ce 00 00 00 00-16 03 01 00 86 10 00 00 |........ ........| 0010 82 00 80 6e d9 e2 dc 97-9d 77 59 9a 5b da e3 e2 |...n.... .wY.[...| 0020 8b aa 66 ed ec 5e e2 02-e5 6c fd db e1 ef 47 1a |..f..^.. .l....G.| 0030 9d 63 03 ed 6d 3e 28 3b-b9 64 fd 92 71 34 ff ba |.c..m>(; .d..q4..| 0040 7d 3c 8d ee 7b 34 75 e9-d5 b7 c6 83 a9 7d e6 7f |}<..{4u. .....}..| 0050 71 7e 25 11 82 b8 76 b1-c6 ba 86 b4 c3 0a 47 f0 |q~%...v. ......G.| 0060 51 96 c7 e2 5f ca 07 b2-95 53 b9 9e bb 2c e7 cb |Q..._... .S...,..| 0070 be 0a b5 eb b0 f3 41 1d-cd 86 fc a6 53 08 5e 56 |......A. ....S.^V| 0080 29 85 79 14 dc 2b 74 7b-b2 43 2c e8 0e 87 60 e4 |).y..+t{ .C,....| 0090 10 ef f8 14 03 01 00 01-01 16 03 01 00 30 c7 f0 |........ .....0..| 00a0 35 f5 2c 6e 79 8d 85 b9-bd 60 b7 09 8c 7e 29 18 |5.,ny... ....~).| 00b0 4a 56 ea c3 4e 13 bf e3-c5 8d f6 68 31 31 54 ee |JV..N... ...h11T.| 00c0 bf 2f 75 8d e9 9e c0 a9-d0 d2 9e 5b c9 92 |./u..... ...[..| tls.c:105:in tds_pull_func_login query.c:3796:tds_disconnect() util.c:165:Changed query state from IDLE to DEAD util.c:322:tdserror(0x80b75e0, 0xa04ca80, 20017, 0) dblib.c:7947:dbperror(0xae62780, 20017, 0) dblib.c:8015:dbperror: Calling dblib_err_handler with msgno = 20017; msg->msgtext = "Unexpected EOF from the server (192.168.32.105:1433)" dblib.c:5777:dbgetuserdata(0xae62780) dblib.c:8037:dbperror: dblib_err_handler for msgno = 20017; msg->msgtext = "Unexpected EOF from the server (192.168.32.105:1433)" -- returns 2 (INT_CANCEL) util.c:352:tdserror: client library returned TDS_INT_CANCEL(2) util.c:375:tdserror: returning TDS_INT_CANCEL(2) util.c:375:tdserror: returning TDS_INT_CANCEL(2) tls.c:942:handshake failed login.c:530:login packet rejected util.c:322:tdserror(0x80b75e0, 0xa04ca80, 20002, 0) dblib.c:7947:dbperror(0xae62780, 20002, 0) dblib.c:8015:dbperror: Calling dblib_err_handler with msgno = 20002; msg->msgtext = "Adaptive Server connection failed" And here's the output of tsql -C: ~$ tsql -C Compile-time settings (established with the "configure" script) Version: freetds v1.00.15 freetds.conf directory: /usr/local/etc MS db-lib source compatibility: no Sybase binary compatibility: no Thread safety: yes iconv library: yes TDS version: auto iODBC: no unixodbc: no SSPI "trusted" logins: no Kerberos: no OpenSSL: yes GnuTLS: no MARS: no Any idea what I should do to fix those Unexpected EOF from the server errors?
In your FreeTDS configuration (often in /etc/freetds/freetds.conf as in your configuration), change the value of text size: text size = 4294967295 That's the maximum value, IIRC. I believe with FreeTDS 0.91 that your default is probably 64512.
Looking at the SQL Profiler, I found out the Rails application was opening way too many connections on the MSSQL server. Upon reaching its max number of open connection, the MSSQL server refused opening any new connection, resulting in the Unexpected EOF from the server error. To solve the issue, I had to reuse my open connection when sending queries instead of opening a new connection for each query. I guess this is the correct way to use the tiny_tds connector anyway. Translated to code: def self.get_pmi_client if ##pmi_client.nil? or !##pmi_client.active? db_conf = Rails.configuration.database_configuration["pmi_#{Rails.env}"] ##pmi_client = TinyTds::Client.new(username: db_conf['username'], password: db_conf['password'], host: db_conf['host'], port: db_conf['port'], database: db_conf['database']) raise MSSQLConnectionError, t('erp.errors.pmi_connection_error') unless ##pmi_client.active? end return ##pmi_client end
Configure scollector to log if a process is running
I'm trying to use Bosun to determine if certain processes are running and then eventually alert on if they are up or down. I'm probably misinterpreting the docs but I can't figure this out. Bosun is running just fine. I have the scollector running on Ubuntu 14 LTS and using my config file correctly. Here is what I have in my scollector.toml: host="blah:8070" hostname="cass01" [[Process]] command = "^.*(java).*(CassandraDaemon)$" name = "Cassandra" I would then expect to see in bosun under my host cass01 a metric title "cassandra" somewhere but it's nowhere to be seen. Other metrics are there.
Right now Command is a partial match on the process path to the binary, up to the first space delimiter. The Args parameter is a regex to differentiate between multiple instances of the process. So for a java process you would use something like: [[Process]] Command = "java" Name = "Cassandra" Args = "CassandraDaemon$" This would match a command line like: /usr/bin/java /usr/bin/CassandraDaemon This assumes the /proc/<pid>/cmdline for that process ends in CassandraDaemon. If it doesn't end in that string you would need to change the Args to just "CassandraDaemon" which would match any java process that contains that string. Also some processes change the cmdline to something other than a nul delimited string. In those cases the Command argument needs to be used to match as Args is expecting nul delimiters. Example: cat /proc/80156/cmdline | hexdump -C 00000000 2f 75 73 72 2f 62 69 6e 2f 72 65 64 69 73 2d 73 |/usr/bin/redis-s| 00000010 65 72 76 65 72 20 2a 3a 36 33 37 39 00 00 00 00 |erver *:6379....| 00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000030 00 |.| 00000031 #Example for cmdline without NUL (00) delimiters between args [[Process]] Command = "redis-server *:6379" Name = "redis-core" Once these are in place with the correct matching values you should see metrics show up under linux.proc.* where the the name tag will match the name used in the TOML file.
Access violation registering Canvas classes
I have been getting a few bug reports for an access violation that occurs while registering Canvas classes at startup, more specifically performing an #IntfClear during TCustomDX10Context.CheckDevice. Full bugreport: date/time : 2014-06-04, 18:05:43, 594ms computer name : <...> user name : <...> registered owner : <...> operating system : Windows 7 x64 Service Pack 1 build 7601 system language : English system up time : 54 minutes 48 seconds program up time : 99 milliseconds processors : 4x Intel(R) Core(TM) i5 CPU 661 # 3.33GHz physical memory : 5055/8055 MB (free/total) free disk space : (C:) 91.84 GB display mode : 1920x1080, 32 bit process id : $18c0 allocated memory : 71.76 MB executable : <...>.exe exec. date/time : 2014-05-29 22:36 version : 3.2.1.2 compiled with : Delphi XE3 madExcept version : 4.0.6 callstack crc : $077d2d6c, $53160fd9, $53160fd9 exception number : 1 exception class : EAccessViolation exception message : Zugriffsverletzung bei Adresse 077D2D6C. Lesen von Adresse 000000AE. main thread ($d0): 077d2d6c +000 ??? 0040e028 +010 <...>.exe System 191 +0 #IntfClear 0096af25 +0cd <...>.exe FMX.Context.DX10 TCustomDX10Context.CheckDevice 00976559 +005 <...>.exe FMX.Canvas.D2D RegisterCanvasClasses 00990c6c +000 <...>.exe FMX.Platform.Win 3404 +0 TPlatformWin.RegisterCanvasClasses 009d6312 +056 <...>.exe FMX.Types TCanvasManager.GetDefaultCanvas 009d62aa +00e <...>.exe FMX.Types TCanvasManager.CreateFromWindow 00a0574e +026 <...>.exe FMX.Forms TCustomForm.CreateHandle 009fff91 +0b9 <...>.exe FMX.Forms TCommonCustomForm.InitializeNewForm 00a054fa +006 <...>.exe FMX.Forms TCustomForm.InitializeNewForm 009ffce4 +094 <...>.exe FMX.Forms TCommonCustomForm.Create 00a056c6 +016 <...>.exe FMX.Forms TCustomForm.Create 009fb947 +057 <...>.exe FMX.Forms TApplication.CreateForm 009fbb0b +05f <...>.exe FMX.Forms TApplication.RealCreateForms 00988861 +011 <...>.exe FMX.Platform.Win 461 +1 TPlatformWin.Run 009fe821 +0d1 <...>.exe FMX.Forms TApplication.Run 00beccf4 +2c0 <...>.exe <...> 106 +39 initialization 75863388 +010 kernel32.dll BaseThreadInitThunk thread $186c: 778a0156 +0e ntdll.dll NtWaitForMultipleObjects 76e715f1 +fa KERNELBASE.dll WaitForMultipleObjectsEx 758619f3 +89 kernel32.dll WaitForMultipleObjectsEx 75330864 +00 USER32.dll MsgWaitForMultipleObjectsEx 75330b64 +1a USER32.dll MsgWaitForMultipleObjects 004a42e9 +0d <...>.exe madExcept CallThreadProcSafe 004a434e +32 <...>.exe madExcept ThreadExceptFrame 75863388 +10 kernel32.dll BaseThreadInitThunk >> created by main thread ($d0) at: 734878e1 +00 gdiplus.dll thread $1288: <priority:1> 7789f8ca +0e ntdll.dll NtWaitForSingleObject 76e714a5 +92 KERNELBASE.dll WaitForSingleObjectEx 7586118f +3e kernel32.dll WaitForSingleObjectEx 75861143 +0d kernel32.dll WaitForSingleObject 004a42e9 +0d <...>.exe madExcept CallThreadProcSafe 004a434e +32 <...>.exe madExcept ThreadExceptFrame 75863388 +10 kernel32.dll BaseThreadInitThunk >> created by main thread ($d0) at: 54377390 +00 nvwgf2um.dll thread $28c: 778a1f3f +0b ntdll.dll NtWaitForWorkViaWorkerFactory 75863388 +10 kernel32.dll BaseThreadInitThunk thread $1bcc: 778a1f3f +0b ntdll.dll NtWaitForWorkViaWorkerFactory 75863388 +10 kernel32.dll BaseThreadInitThunk modules: 00400000 <...>.exe 3.2.1.2 C:\<...> 10000000 nvspcap.dll 10.11.15.0 C:\Windows\system32 53c10000 nvwgf2um.dll 9.18.13.2723 C:\Windows\system32 603d0000 AcGenral.DLL 6.1.7601.18128 C:\Windows\AppPatch 606d0000 atkdx11disp.dll 7.14.10.305 C:\Windows\system32 60700000 d3d10_1core.dll 6.2.9200.16492 C:\Windows\system32 60750000 d3d10_1.dll 6.2.9200.16492 C:\Windows\system32 60780000 security.dll 6.1.7600.16385 C:\Windows\system32 60790000 FaultRep.dll 6.1.7601.17514 C:\Windows\system32 607f0000 sfc_os.DLL 6.1.7600.16385 C:\Windows\system32 60800000 sfc.dll 6.1.7600.16385 C:\Windows\system32 6ed00000 d3d11.dll 6.2.9200.16570 C:\Windows\system32 706d0000 dxgi.dll 6.2.9200.16492 C:\Windows\system32 70ca0000 propsys.dll 7.0.7601.17514 C:\Windows\system32 70e00000 d3d9.dll 6.1.7601.17514 C:\Windows\system32 70fd0000 nvapi.dll 9.18.13.2723 C:\Windows\system32 71a50000 comctl32.dll 6.10.7601.17514 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2 71bf0000 winmm.dll 6.1.7601.17514 C:\Windows\system32 72150000 samcli.dll 6.1.7601.17514 C:\Windows\system32 73210000 MSACM32.dll 6.1.7600.16385 C:\Windows\system32 73230000 d3d8thk.dll 6.1.7600.16385 C:\Windows\system32 73440000 gdiplus.dll 6.1.7601.18120 C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.18120_none_72d2e82386681b36 73890000 apphelp.dll 6.1.7601.17514 C:\Windows\system32 738e0000 MPR.dll 6.1.7600.16385 C:\Windows\system32 73ca0000 wsock32.dll 6.1.7600.16385 C:\Windows\system32 73f20000 SECUR32.DLL 6.1.7601.18443 C:\Windows\system32 74090000 dwmapi.dll 6.1.7600.16385 C:\Windows\system32 74100000 UxTheme.dll 6.1.7600.16385 C:\Windows\system32 742e0000 comctl32.dll 5.82.7601.18201 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18201_none_ec80f00e8593ece5 74f90000 profapi.dll 6.1.7600.16385 C:\Windows\system32 74fa0000 USERENV.dll 6.1.7601.17514 C:\Windows\system32 750b0000 ntmarta.dll 6.1.7600.16385 C:\Windows\system32 750e0000 sophos_detoured.dll 10.3.3.128 C:\Program Files (x86)\Sophos\Sophos Anti-Virus 75130000 winspool.drv 6.1.7601.17514 C:\Windows\system32 75190000 version.dll 6.1.7600.16385 C:\Windows\system32 752a0000 CRYPTBASE.dll 6.1.7600.16385 C:\Windows\syswow64 752b0000 SspiCli.dll 6.1.7601.18443 C:\Windows\syswow64 75310000 USER32.dll 6.1.7601.17514 C:\Windows\syswow64 75410000 iertutil.dll 11.0.9600.17041 C:\Windows\syswow64 75630000 SETUPAPI.dll 6.1.7601.17514 C:\Windows\syswow64 757d0000 PSAPI.DLL 6.1.7600.16385 C:\Windows\syswow64 757e0000 api-ms-win-downlevel-normaliz-l1-1-0.dll 6.2.9200.16492 C:\Windows\syswow64 757f0000 NSI.dll 6.1.7600.16385 C:\Windows\syswow64 75800000 WLDAP32.dll 6.1.7601.17514 C:\Windows\syswow64 75850000 kernel32.dll 6.1.7601.18409 C:\Windows\syswow64 759f0000 DEVOBJ.dll 6.1.7601.17621 C:\Windows\syswow64 75a10000 RPCRT4.dll 6.1.7601.18205 C:\Windows\syswow64 75b00000 WININET.dll 11.0.9600.17041 C:\Windows\syswow64 75cc0000 shell32.dll 6.1.7601.18429 C:\Windows\syswow64 76910000 WS2_32.dll 6.1.7601.17514 C:\Windows\syswow64 769b0000 api-ms-win-downlevel-advapi32-l1-1-0.dll 6.2.9200.16492 C:\Windows\syswow64 769c0000 MSCTF.dll 6.1.7600.16385 C:\Windows\syswow64 76a90000 comdlg32.dll 6.1.7601.17514 C:\Windows\syswow64 76b10000 api-ms-win-downlevel-shlwapi-l1-1-0.dll 6.2.9200.16492 C:\Windows\syswow64 76b50000 msvcrt.dll 7.0.7601.17744 C:\Windows\syswow64 76c00000 api-ms-win-downlevel-ole32-l1-1-0.dll 6.2.9200.16492 C:\Windows\syswow64 76c10000 ole32.dll 6.1.7601.17514 C:\Windows\syswow64 76d70000 normaliz.DLL 6.1.7600.16385 C:\Windows\syswow64 76d80000 CLBCatQ.DLL 2001.12.8530.16385 C:\Windows\syswow64 76e10000 CFGMGR32.dll 6.1.7601.17621 C:\Windows\syswow64 76e40000 sechost.dll 6.1.7600.16385 C:\Windows\SysWOW64 76e60000 KERNELBASE.dll 6.1.7601.18409 C:\Windows\syswow64 76eb0000 IMM32.DLL 6.1.7601.17514 C:\Windows\system32 76f10000 USP10.dll 1.626.7601.18009 C:\Windows\syswow64 76fb0000 WINTRUST.dll 6.1.7601.18205 C:\Windows\syswow64 76fe0000 api-ms-win-downlevel-version-l1-1-0.dll 6.2.9200.16492 C:\Windows\syswow64 76ff0000 CRYPT32.dll 6.1.7601.18277 C:\Windows\syswow64 77110000 MSASN1.dll 6.1.7601.17514 C:\Windows\syswow64 77120000 ADVAPI32.dll 6.1.7601.18247 C:\Windows\syswow64 771c0000 oleaut32.dll 6.1.7601.17676 C:\Windows\syswow64 77250000 SHLWAPI.dll 6.1.7601.17514 C:\Windows\syswow64 772b0000 api-ms-win-downlevel-user32-l1-1-0.dll 6.2.9200.16492 C:\Windows\syswow64 772c0000 GDI32.dll 6.1.7601.18275 C:\Windows\syswow64 77350000 urlmon.dll 11.0.9600.17041 C:\Windows\syswow64 77850000 LPK.dll 6.1.7601.18177 C:\Windows\syswow64 77880000 ntdll.dll 6.1.7601.18247 C:\Windows\SysWOW64 processes: 0000 Idle 0 0 0 0004 System 0 0 0 0120 smss.exe 0 0 0 01c8 csrss.exe 0 0 0 0210 wininit.exe 0 0 0 0224 csrss.exe 1 0 0 0250 services.exe 0 0 0 0260 lsass.exe 0 0 0 0268 lsm.exe 0 0 0 02d4 winlogon.exe 1 0 0 02f4 svchost.exe 0 0 0 0330 ATKFUSService.exe 0 0 0 0344 nvvsvc.exe 0 0 0 0360 nvSCPAPISvr.exe 0 0 0 038c svchost.exe 0 0 0 03c8 atiesrxx.exe 0 0 0 03f8 svchost.exe 0 0 0 014c svchost.exe 0 0 0 0298 svchost.exe 0 0 0 0228 svchost.exe 0 0 0 0454 audiodg.exe 0 0 0 04ac SavService.exe 0 0 0 04b8 atieclxx.exe 1 0 0 04c8 nvxdsync.exe 1 0 0 04d0 nvvsvc.exe 1 0 0 0614 ATKFastUserSwitching.exe 1 18 11 normal 0660 dwm.exe 1 18 2 high 0678 explorer.exe 1 356 266 normal 0790 svchost.exe 0 0 0 07e4 svchost.exe 0 0 0 0490 spoolsv.exe 0 0 0 082c taskhost.exe 1 25 23 normal 08d0 NvTmru.exe 1 9 4 normal C:\Program Files (x86)\NVIDIA Corporation\NVIDIA Update Core 0924 NvBackend.exe 1 9 4 normal C:\Program Files (x86)\NVIDIA Corporation\Update Core 0944 ANIWConnService.exe 0 0 0 0980 ANIWZCSdS.exe 0 0 0 099c RtlService.exe 0 0 0 09dc flux.exe 1 22 13 normal C:\Users\<...>\AppData\Local\FluxSoftware\Flux 09f4 SpotifyWebHelper.exe 1 9 3 normal C:\Users\<...>\AppData\Roaming\Spotify\Data 0a3c nvtray.exe 1 81 5 normal 0a74 BCUService.exe 0 0 0 0aac FABS.exe 0 0 0 0ae0 RtWLan.exe 1 0 0 0b48 NvNetworkService.exe 0 0 0 0ba8 nvstreamsvc.exe 0 0 0 0610 spotify.exe 1 222 81 normal C:\Users\<...>\AppData\Roaming\Spotify 046c razerhid.exe 1 9 5 normal C:\Program Files (x86)\Razer\Arctosa 09c8 BCU.exe 1 9 4 normal C:\Program Files (x86)\DeviceVM\Browser Configuration Utility 0b9c jusched.exe 1 9 2 normal C:\Program Files (x86)\Common Files\Java\Java Update 0b84 PnkBstrA.exe 0 0 0 0910 PnkBstrB.exe 0 0 0 0920 SAVAdminService.exe 0 0 0 09d4 ALsvc.exe 0 0 0 0c70 swc_service.exe 0 0 0 0c98 svchost.exe 0 0 0 0cac swi_service.exe 0 0 0 0cec TurboBoost.exe 0 0 0 0d30 ALMon.exe 1 47 40 normal C:\Program Files (x86)\Sophos\AutoUpdate 0d60 WLIDSVC.EXE 0 0 0 0e04 WLIDSVCM.EXE 0 0 0 0efc WmiPrvSE.exe 0 0 0 0ff0 SearchIndexer.exe 0 0 0 0af0 svchost.exe 0 0 0 11b8 nvstreamsvc.exe 1 0 0 11cc conhost.exe 1 0 0 127c wmpnetwk.exe 0 0 0 130c svchost.exe 0 0 0 11d0 svchost.exe 0 0 0 1304 SpotifyHelper.exe 1 52 1 normal C:\Users\<...>\AppData\Roaming\Spotify\Data 1134 SpotifyHelper.exe 1 33 1 normal C:\Users\<...>\AppData\Roaming\Spotify\Data 15c8 SpotifyHelper.exe 1 13 3 normal C:\Users\<...>\AppData\Roaming\Spotify\Data 17a8 dllhost.exe 0 0 0 151c LMS.exe 0 0 0 14b0 svchost.exe 0 0 0 1018 UNS.exe 0 0 0 059c SpotifyHelper.exe 1 142 1 normal C:\Users\<...>\AppData\Roaming\Spotify\Data 08d8 SpotifyHelper.exe 1 11 1 normal C:\Users\<...>\AppData\Roaming\Spotify\Data 0abc chrome.exe 1 375 53 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application 0eb4 chrome.exe 1 12 5 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application 12d8 chrome.exe 1 11 1 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application 0da8 chrome.exe 1 719 1 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application 10bc chrome.exe 1 11 1 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application 1114 chrome.exe 1 9 1 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application 0968 chrome.exe 1 11 1 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application 1220 chrome.exe 1 10 1 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application 1974 jucheck.exe 1 12 6 normal C:\Program Files (x86)\Common Files\Java\Java Update 0778 chrome.exe 1 251 1 below normal C:\Users\<...>\AppData\Local\Google\Chrome\Application 1144 WINWORD.EXE 1 474 118 normal C:\Program Files (x86)\Microsoft Office\Office14 0cc4 OSPPSVC.EXE 0 0 0 17b8 splwow64.exe 1 4 2 normal 1410 SearchProtocolHost.exe 0 0 0 1258 SearchFilterHost.exe 0 0 0 idle 18e0 chrome.exe 1 209 1 below normal C:\Users\<...>\AppData\Local\Google\Chrome\Application 18c0 <...>.exe 1 36 34 normal C:\<...> cpu registers: eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000008 esi = 0018fca4 edi = 077d2d6c eip = 077d2d6c esp = 0018fc60 ebp = 077d2444 stack dump: 0018fc60 a4 fc 18 00 44 24 7d 07 - 6c 2d 7d 07 44 24 00 06 ....D$}.l-}.D$.. 0018fc70 2c 63 de 6e 48 81 7d 07 - 6c 2d 7d 07 00 00 00 00 ,c.nH.}.l-}..... 0018fc80 01 00 00 00 00 00 00 00 - ac fc 18 00 42 00 d2 6e ............B..n 0018fc90 6c 2d 7d 07 01 00 00 00 - 58 25 7d 07 44 24 7d 07 l-}.....X%}.D$}. 0018fca0 3c 27 7d 07 3c 27 7d 07 - 3c a6 d0 6e c0 fc 18 00 <'}.<'}.<..n.... 0018fcb0 1b ff d1 6e 6c 2d 7d 07 - 44 24 7d 07 a0 00 00 00 ...nl-}.D$}..... 0018fcc0 cc fc 18 00 43 25 d1 6e - 3c 27 7d 07 e0 fc 18 00 ....C%.n<'}..... 0018fcd0 6d 6d d1 6e fc 26 7d 07 - 00 00 00 00 3c 24 7d 07 mm.n.&}.....<$}. 0018fce0 ec fc 18 00 f1 26 d1 6e - 10 24 7d 07 f8 fc 18 00 .....&.n.$}..... 0018fcf0 52 c1 d4 6e 3c 24 7d 07 - 14 fd 18 00 5f 39 d1 6e R..n<$}....._9.n 0018fd00 10 24 7d 07 04 34 d1 6e - 10 24 7d 07 66 38 d1 6e .$}..4.n.$}.f8.n 0018fd10 10 24 7d 07 28 fd 18 00 - 5f 34 d1 6e 00 00 00 00 .$}.(..._4.n.... 0018fd20 16 00 00 00 90 05 00 00 - 34 fd 18 00 c5 25 d1 6e ........4....%.n 0018fd30 10 24 7d 07 40 fd 18 00 - d1 f5 d4 6e 3c 27 7d 07 .$}.#......n<'}. 0018fd40 84 fd 18 00 2b e0 40 00 - 74 27 7d 07 80 fd 18 00 ....+.#.t'}..... 0018fd50 2a af 96 00 60 fd 18 00 - 9c 98 40 00 84 fd 18 00 *...`.....#..... 0018fd60 6c fd 18 00 9c 98 40 00 - 84 fd 18 00 94 fd 18 00 l.....#......... 0018fd70 9c 98 40 00 84 fd 18 00 - a0 00 00 00 00 00 75 60 ..#...........u` 0018fd80 00 00 00 00 bc fd 18 00 - 5e 65 97 00 71 0c 99 00 ........^e..q... 0018fd90 15 63 9d 00 10 fe 18 00 - 9c 98 40 00 bc fd 18 00 .c........#..... disassembling: [...] 0040e01c jz loc_40e02c 0040e01e mov dword ptr [eax], 0 0040e024 push eax 0040e025 push edx 0040e026 mov eax, [edx] 0040e028 > call dword ptr [eax+8] 0040e02b pop eax 0040e02c ret This is by no means happening on all machines but seems to be a very rare issue. EDIT: Following the suggestion of #Graymatter I've been able to establish an SSCCE. program SSCCE; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils, FMX.Context.DX10; begin try TCustomDX10Context.CheckDevice; WriteLn('Everything went fine, guess we have to dig deeper.'); except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end; Write('Press enter to exit.'); ReadLn; end. The output produced is Zugriffsverletzung bei Adresse 05C1006C. Lesen von Adresse 06F29ED3 Any suggestions as to what to do about that ?
JVM crash on Windows 64bit in Junit test ant target
I am getting this strange situation in my project using windows 64 bit platform. The project involves JNI calls. The project requires an environment variable "My_Env" to be set. This variable is internally used by java classes to load some Dlls(64-bit). This "Junit" target is called from Ant build along with some other targets in a particular sequence. Initially, the environment variable "My_Env" was not set on 64 bit. When I was running the all ant targets in sequence JVM was crashing on Junit target. Even on running Junit target alone the JVM was crashing. Then I realized that "My_ENv"wasnot set and set it. Now when I run the Junit target alone it is working fine without a crash. However on running the ant build default target(which involves all targets in a sequence) the JVM is still crashing on Junit target. The Junit target is having "fork=on". The error report is as following: ># A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180001051, pid=4172, tid=4608 # # JRE version: 6.0_27-b01 # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.2-b01 mixed mode windows-amd64 compressed oops) # Problematic frame: # C [MyDLL.dll+0x1051] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. --------------- T H R E A D --------------- Current thread (0x000000000051b800): JavaThread "main" [_thread_in_native, id=4608, stack(0x0000000000de0000,0x0000000000ee0000)] siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000000 Registers: RAX=0x0000000000000000, RBX=0x0000000000000000, RCX=0xfffffffffffffff5, RDX=0x0000000000000000 RSP=0x0000000000edea00, RBP=0x0000000000edeaa8, RSI=0x00000000faf53270, RDI=0x000000018000362a R8 =0x7efefefefefefeff, R9 =0x7efefefefefeff6e, R10=0x0000000005497f21, R11=0x8101010101010100 R12=0x0000000000000000, R13=0x00000000fb4104d8, R14=0x0000000000edeac0, R15=0x000000000051b800 RIP=0x0000000180001051, EFLAGS=0x0000000000010246 Top of Stack: (sp=0x0000000000edea00) 0x0000000000edea00: 000000000051c5a0 0000000000ef11d2 0x0000000000edea10: 00000000fb4104d8 0000000000edeaa8 0x0000000000edea20: fffffffffffffffe 0000000000ee5b22 0x0000000000edea30: 0000000000ee5b22 0000000000ef1346 0x0000000000edea40: 00000000fb4104d8 000000000051c598 0x0000000000edea50: 000000000051c500 000000000051b800 0x0000000000edea60: 00000000fffffffe 0000000000edea68 0x0000000000edea70: 00000000fb4104d8 0000000000edeac0 0x0000000000edea80: 00000000fb410830 0000000000000000 0x0000000000edea90: 00000000fb4104d8 0000000000000000 0x0000000000edeaa0: 0000000000edeac8 0000000000edeb08 0x0000000000edeab0: 0000000000ee5b22 00000000fb4107c8 0x0000000000edeac0: 0000000000eee338 0000000000edeac8 0x0000000000edead0: 00000000fb40ff20 0000000000edeb10 0x0000000000edeae0: 00000000fb410270 0000000000000000 0x0000000000edeaf0: 00000000fb40ff28 0000000000edeac8 Instructions: (pc=0x0000000180001051) 0x0000000180001031: 00 0f b7 0d 67 11 00 00 66 89 0d e8 25 00 00 48 0x0000000180001041: 8d 3d d9 25 00 00 33 c0 48 83 c9 ff f2 ae 33 d2 0x0000000180001051: 0f b6 04 13 88 44 17 ff 48 ff c2 84 c0 75 f1 48 0x0000000180001061: 8d 15 b9 25 00 00 48 8d 0d 3a 11 00 00 ff 15 1c Register to memory mapping: RAX=0x0000000000000000 is an unknown value RBX=0x0000000000000000 is an unknown value RCX=0xfffffffffffffff5 is an unknown value RDX=0x0000000000000000 is an unknown value RSP=0x0000000000edea00 is pointing into the stack for thread: 0x000000000051b800 RBP=0x0000000000edeaa8 is pointing into the stack for thread: 0x000000000051b800 RSI=0x00000000faf53270 is an oop {instance class} - klass: {other class} RDI=0x000000018000362a is an unknown value R8 =0x7efefefefefefeff is an unknown value R9 =0x7efefefefefeff6e is an unknown value R10=0x0000000005497f21 is an unknown value R11=0x8101010101010100 is an unknown value R12=0x0000000000000000 is an unknown value R13=0x00000000fb4104d8 is an oop {method} - klass: {other class} R14=0x0000000000edeac0 is pointing into the stack for thread: 0x000000000051b800 R15=0x000000000051b800 is a thread Stack: [0x0000000000de0000,0x0000000000ee0000], sp=0x0000000000edea00, free space=1018k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [MyDLL.dll+0x1051] init+0x51 j src.com.MyDLL.init()V+0 j src.com.MyClass.initMyDLL()V+108 j src.com.MyClass.<init>(Lsrc/com/Configuration;)V+21 j src.com.MyUtil.testLoadFiles()V+113 v ~StubRoutines::call_stub V [jvm.dll+0x1e9af7] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j src.com.MyDLLJNI.init()V+0 j src.com.MyDLL.init()V+0 j src.com.MyClass.initMyDLL()V+108 j src.com.MyClass.<init>(Lsrc/com/Configuration;)V+21 j src.com.MyUtil.testLoadFiles()V+113 v ~StubRoutines::call_stub j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87 j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161 j junit.framework.TestCase.runTest()V+107 j junit.framework.TestCase.runBare()V+7 j junit.framework.TestResult$1.protect()V+4 j junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V+1 j junit.framework.TestResult.run(Ljunit/framework/TestCase;)V+18 j junit.framework.TestCase.run(Ljunit/framework/TestResult;)V+2 j junit.framework.TestSuite.runTest(Ljunit/framework/Test;Ljunit/framework/TestResult;)V+2 j junit.framework.TestSuite.run(Ljunit/framework/TestResult;)V+40 j junit.framework.TestSuite.runTest(Ljunit/framework/Test;Ljunit/framework/TestResult;)V+2 j junit.framework.TestSuite.run(Ljunit/framework/TestResult;)V+40 j org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run()V+431 j org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(Lorg/apache/tools/ant/taskdefs/optional/junit/JUnitTest;ZZZZZZ)I+39 j org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main([Ljava/lang/String;)V+741 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x0000000000610000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4884, stack(0x0000000004b70000,0x0000000004c70000)] 0x000000000060e800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=3216, stack(0x0000000004a70000,0x0000000004b70000)] 0x00000000005fd000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=4436, stack(0x0000000004970000,0x0000000004a70000)] 0x00000000005fb800 JavaThread "Attach Listener" daemon [_thread_blocked, id=4748, stack(0x0000000004870000,0x0000000004970000)] 0x00000000005f7800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2688, stack(0x0000000004770000,0x0000000004870000)] 0x00000000005e8000 JavaThread "Finalizer" daemon [_thread_blocked, id=4824, stack(0x0000000004470000,0x0000000004570000)] 0x00000000005e0000 JavaThread "Reference Handler" daemon [_thread_blocked, id=4676, stack(0x0000000004370000,0x0000000004470000)] =>0x000000000051b800 JavaThread "main" [_thread_in_native, id=4608, stack(0x0000000000de0000,0x0000000000ee0000)] Other Threads: 0x00000000005da000 VMThread [stack: 0x0000000004270000,0x0000000004370000] [id=4480] 0x000000000061f000 WatcherThread [stack: 0x0000000004c70000,0x0000000004d70000] [id=4768] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 19648K, used 2455K [0x00000000bae00000, 0x00000000bc350000, 0x00000000d0350000) eden space 17472K, 14% used [0x00000000bae00000, 0x00000000bb065d08, 0x00000000bbf10000) from space 2176K, 0% used [0x00000000bbf10000, 0x00000000bbf10000, 0x00000000bc130000) to space 2176K, 0% used [0x00000000bc130000, 0x00000000bc130000, 0x00000000bc350000) tenured generation total 43712K, used 0K [0x00000000d0350000, 0x00000000d2e00000, 0x00000000fae00000) the space 43712K, 0% used [0x00000000d0350000, 0x00000000d0350000, 0x00000000d0350200, 0x00000000d2e00000) compacting perm gen total 21248K, used 6210K [0x00000000fae00000, 0x00000000fc2c0000, 0x0000000100000000) the space 21248K, 29% used [0x00000000fae00000, 0x00000000fb410878, 0x00000000fb410a00, 0x00000000fc2c0000) No shared spaces configured. Code Cache [0x0000000000ee0000, 0x0000000001150000, 0x0000000003ee0000) total_blobs=233 nmethods=13 adapters=174 free_code_cache=49891776 largest_free_block=12160 Dynamic libraries: 0x0000000000400000 - 0x000000000042e000 C:\Java\jdk1.6.0_27\jre\bin\java.exe 0x0000000077b90000 - 0x0000000077d39000 C:\Windows\SYSTEM32\ntdll.dll 0x0000000077970000 - 0x0000000077a8f000 C:\Windows\system32\kernel32.dll 0x000007fefdb90000 - 0x000007fefdbfc000 C:\Windows\system32\KERNELBASE.dll 0x000007fefe260000 - 0x000007fefe33b000 C:\Windows\system32\ADVAPI32.dll 0x000007feffe00000 - 0x000007feffe9f000 C:\Windows\system32\msvcrt.dll 0x000007fefe540000 - 0x000007fefe55f000 C:\Windows\SYSTEM32\sechost.dll 0x000007fefe5d0000 - 0x000007fefe6fd000 C:\Windows\system32\RPCRT4.dll 0x000000006d890000 - 0x000000006e048000 C:\Java\jdk1.6.0_27\jre\bin\server\jvm.dll 0x0000000077a90000 - 0x0000000077b8a000 C:\Windows\system32\USER32.dll 0x000007fefe560000 - 0x000007fefe5c7000 C:\Windows\system32\GDI32.dll 0x000007feffdf0000 - 0x000007feffdfe000 C:\Windows\system32\LPK.dll 0x000007fefe190000 - 0x000007fefe259000 C:\Windows\system32\USP10.dll 0x000007fefa260000 - 0x000007fefa29b000 C:\Windows\system32\WINMM.dll 0x000007feff4e0000 - 0x000007feff50e000 C:\Windows\system32\IMM32.DLL 0x000007fefdec0000 - 0x000007fefdfc9000 C:\Windows\system32\MSCTF.dll 0x000000006d800000 - 0x000000006d80e000 C:\Java\jdk1.6.0_27\jre\bin\verify.dll 0x000000006d450000 - 0x000000006d477000 C:\Java\jdk1.6.0_27\jre\bin\java.dll 0x0000000077d60000 - 0x0000000077d67000 C:\Windows\system32\PSAPI.DLL 0x000000006d850000 - 0x000000006d862000 C:\Java\jdk1.6.0_27\jre\bin\zip.dll 0x000000006d6a0000 - 0x000000006d6b7000 C:\Java\jdk1.6.0_27\jre\bin\net.dll 0x000007feff490000 - 0x000007feff4dd000 C:\Windows\system32\WS2_32.dll 0x000007fefdeb0000 - 0x000007fefdeb8000 C:\Windows\system32\NSI.dll 0x000007fefd2d0000 - 0x000007fefd325000 C:\Windows\system32\mswsock.dll 0x000007fefd540000 - 0x000007fefd547000 C:\Windows\System32\wship6.dll 0x000007fefc670000 - 0x000007fefc685000 C:\Windows\system32\NLAapi.dll 0x000007fefa630000 - 0x000007fefa645000 C:\Windows\system32\napinsp.dll 0x000007fefd160000 - 0x000007fefd1bb000 C:\Windows\system32\DNSAPI.dll 0x000007fefa660000 - 0x000007fefa66b000 C:\Windows\System32\winrnr.dll 0x000007fefccf0000 - 0x000007fefccf7000 C:\Windows\System32\wshtcpip.dll 0x000007fefb650000 - 0x000007fefb677000 C:\Windows\system32\IPHLPAPI.DLL 0x000007fefb640000 - 0x000007fefb64b000 C:\Windows\system32\WINNSI.DLL 0x000007fefa880000 - 0x000007fefa888000 C:\Windows\system32\rasadhlp.dll 0x000007fefac40000 - 0x000007fefac93000 C:\Windows\System32\fwpuclnt.dll 0x0000000180000000 - 0x0000000180007000 C:project\output\bin\MyDLL.dll 0x0000000072bb0000 - 0x0000000072c82000 C:\Windows\system32\MSVCR100.dll VM Arguments: jvm_args: -Djava.library.path=C:\project\output\bin java_command: org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner src.com.AllTests filtertrace=true haltOnError=false haltOnFailure=false showoutput=false outputtoformatters=true logtestlistenerevents=true formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,C:\project\unittests\junit-results\TEST-AllTests.xml crashfile=C:\project\junitvmwatcher7335361868739082409.properties propsfile=C:\project\junit3775055844850964019.properties Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=C:\Java\jdk1.6.0_27 PATH=C:\project\output\bin USERNAME=relmgr OS=Windows_NT PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 26 Stepping 5, GenuineIntel --------------- S Y S T E M --------------- OS: Windows NT 6.1 Build 7601 Service Pack 1 CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 26 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt Memory: 4k page, physical 4193848k(2877556k free), swap 8385848k(6803796k free) vm_info: Java HotSpot(TM) 64-Bit Server VM (20.2-b01) for windows-amd64 JRE (1.6.0_27-ea-b01), built on May 18 2011 08:17:50 by "java_re" with MS VC++ 8.0 (VS2005) time: Fri Jan 27 07:03:19 2012 elapsed time: 4 seconds And here's the piece of ant , the Junit target if this helps: <target name="Junit" depends="JunitCompile" > <delete dir="${Junit.Results}"/> <mkdir dir="${Junit.Results}"/> <property name="fs" value="${file.separator}"/> <property name="path" value="${basedir}${fs}${project.dir}${fs}bin"/> <!-- junit errorProperty="test.failed" failureProperty="test.failed" fork="on" --> <junit errorProperty="test.failed" fork="on"> <env key="Path" value="${path}"/> <jvmarg value="-Djava.library.path=${basedir}${fs}${project.dir}${fs}bin"/> <test name="${test.class}" todir="${Junit.Results}"/> <formatter type="brief" usefile="false"/> <formatter type="xml"/> <classpath refid="classpath"/> </junit> </target>