Menu

Vix library crash

Help
Alex Fust
2010-03-29
2013-04-24
  • Alex Fust

    Alex Fust - 2010-03-29

    Hi,
    I'm using the last version of VIX Java Toolkitwith VIx library 1.8.1 on windows 7 with java 1.6.18 and after connect with Host VMware 4

    System.setProperty("jna.library.path", "C:\\Program Files\\VMware\\VMware VIX\\VIServer-2.0.0\\32bit\\");
    hostHandle = new VixVSphereHandle(host, user, password);

    when instruction

    ArrayList<String> vmxPaths = hostHandle.getRunningVms();

    is executed the VM crash with

    Connecting to host…
    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77c91ffe, pid=2108, tid=932
    #
    # JRE version: 6.0_18-b07
    # Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode windows-x86 )
    # Problematic frame:
    # C 
    #
    # An error report file with more information is saved as:
    # C:\vijavavmware\vmware\hs_err_pid2108.log
    In file :

    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77c9205b, pid=5476, tid=2352
    #
    # JRE version: 6.0_18-b07
    # Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode windows-x86 )
    # Problematic frame:
    # C 
    #
    # 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 (0x1810c800):  JavaThread "Thread-1"

    siginfo: ExceptionCode=0xc0000005, writing address 0x0210c12b

    Registers:
    EAX=0x0210c12b, EBX=0xcf42412c, ECX=0x0213c3ef, EDX=0x00000213
    ESP=0x1a6eef50, EBP=0x1a6eef84, ESI=0x013808d0, EDI=0xcf420000
    EIP=0x77c9205b, EFLAGS=0x00010202

    Top of Stack: (sp=0x1a6eef50)
    0x1a6eef50:   00000000 19160000 18303b48 00000000
    0x1a6eef60:   1a6eef8c 0212c12b 0213c12b 13bbd038
    0x1a6eef70:   00000000 1a6eef88 0211c12b 00000001
    0x1a6eef80:   18303b40 1a6eef9c 77c91faf 18303b48
    0x1a6eef90:   1a6ef0d0 185fa600 18303b40 1a6eefb0
    0x1a6eefa0:   778af1cc 19160000 00000000 18303b48
    0x1a6eefb0:   1a6eeffc 70a34c39 19160000 00000000
    0x1a6eefc0:   18303b48 164e4330 1a6ef0d0 00000000

    Instructions: (pc=0x77c9205b)
    0x77c9204b:   c1 ea 10 0b df 0b c8 8b 06 c7 45 f8 01 00 00 00
    0x77c9205b:   89 30 8b 45 e0 8b 55 e4 8d 7e 08 f0 0f c7 0f 3b

    Stack: ,  sp=0x1a6eef50,  free space=13b1a6eea6ck
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)








    j  com.sun.jna.Function.invokeVoid(I[Ljava/lang/Object;)V+0
    j  com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;Z)Ljava/lang/Object;+45
    j  com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+214
    j  com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+341
    j  $Proxy0.Vix_FreeBuffer(Lcom/sun/jna/Pointer;)V+16
    j  com.vmware.vix.VixHostHandle$FindVmCallback.callbackProc(IIILcom/sun/jna/Pointer;)V+101
    v  ~StubRoutines::call_stub







    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  com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback([Ljava/lang/Object;)Ljava/lang/Object;+130
    j  com.sun.jna.CallbackReference$DefaultCallbackProxy.callback([Ljava/lang/Object;)Ljava/lang/Object;+2
    v  ~StubRoutines::call_stub


















    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j  com.sun.jna.Function.invokeVoid(I[Ljava/lang/Object;)V+0
    j  com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;Z)Ljava/lang/Object;+45
    j  com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+214
    j  com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+341
    j  $Proxy0.Vix_FreeBuffer(Lcom/sun/jna/Pointer;)V+16
    j  com.vmware.vix.VixHostHandle$FindVmCallback.callbackProc(IIILcom/sun/jna/Pointer;)V+101
    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  com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback([Ljava/lang/Object;)Ljava/lang/Object;+130
    j  com.sun.jna.CallbackReference$DefaultCallbackProxy.callback([Ljava/lang/Object;)Ljava/lang/Object;+2
    v  ~StubRoutines::call_stub

    ----------  P R O C E S S  ----------

    Java Threads: ( => current thread )
    =>0x1810c800 JavaThread "Thread-1"
      0x01ac4000 JavaThread "Low Memory Detector" daemon
      0x01abfc00 JavaThread "CompilerThread0" daemon
      0x01aac000 JavaThread "JDWP Command Reader" daemon
      0x01aab000 JavaThread "JDWP Event Helper Thread" daemon
      0x01aa8400 JavaThread "JDWP Transport Listener: dt_socket" daemon
      0x01a9c000 JavaThread "Attach Listener" daemon
      0x01a99400 JavaThread "Signal Dispatcher" daemon
      0x01a6e400 JavaThread "Finalizer" daemon
      0x01a69800 JavaThread "Reference Handler" daemon
      0x019da400 JavaThread "main"

    Other Threads:
      0x01a66000 VMThread 
      0x01ac7400 WatcherThread 

    VM state:not at safepoint (normal execution)

    VM Mutex/Monitor currently owned by a thread: None

    Heap
    def new generation   total 4928K, used 542K [0x03ae0000, 0x04030000, 0x09030000)
      eden space 4416K,   5% used [0x03ae0000, 0x03b17e38, 0x03f30000)
      from space 512K,  62% used [0x03fb0000, 0x03fffba8, 0x04030000)
      to   space 512K,   0% used [0x03f30000, 0x03f30000, 0x03fb0000)
    tenured generation   total 10944K, used 0K [0x09030000, 0x09ae0000, 0x13ae0000)
       the space 10944K,   0% used [0x09030000, 0x09030000, 0x09030200, 0x09ae0000)
    compacting perm gen  total 12288K, used 3888K [0x13ae0000, 0x146e0000, 0x17ae0000)
       the space 12288K,  31% used [0x13ae0000, 0x13eac2a0, 0x13eac400, 0x146e0000)
    No shared spaces configured.

    Dynamic libraries:
    0x00400000 - 0x00424000     C:\Program Files\Java\jre6\bin\javaw.exe
    0x77c40000 - 0x77d7c000     C:\Windows\SYSTEM32\ntdll.dll
    0x77860000 - 0x77934000     C:\Windows\system32\kernel32.dll
    0x76040000 - 0x7608a000     C:\Windows\system32\KERNELBASE.dll
    0x77940000 - 0x779e0000     C:\Windows\system32\ADVAPI32.dll
    0x77b50000 - 0x77bfc000     C:\Windows\system32\msvcrt.dll
    0x775a0000 - 0x775b9000     C:\Windows\SYSTEM32\sechost.dll
    0x76160000 - 0x76201000     C:\Windows\system32\RPCRT4.dll
    0x77da0000 - 0x77e69000     C:\Windows\system32\USER32.dll
    0x77700000 - 0x7774e000     C:\Windows\system32\GDI32.dll
    0x76ff0000 - 0x76ffa000     C:\Windows\system32\LPK.dll
    0x76ee0000 - 0x76f7d000     C:\Windows\system32\USP10.dll
    0x77d80000 - 0x77d9f000     C:\Windows\system32\IMM32.DLL
    0x76090000 - 0x7615c000     C:\Windows\system32\MSCTF.dll
    0x7c340000 - 0x7c396000     C:\Program Files\Java\jre6\bin\msvcr71.dll
    0x6d800000 - 0x6da97000     C:\Program Files\Java\jre6\bin\client\jvm.dll
    0x746e0000 - 0x74712000     C:\Windows\system32\WINMM.dll
    0x75cc0000 - 0x75d0b000     C:\Windows\system32\apphelp.dll
    0x6d7b0000 - 0x6d7bc000     C:\Program Files\Java\jre6\bin\verify.dll
    0x6d330000 - 0x6d34f000     C:\Program Files\Java\jre6\bin\java.dll
    0x6d290000 - 0x6d298000     C:\Program Files\Java\jre6\bin\hpi.dll
    0x76fe0000 - 0x76fe5000     C:\Windows\system32\PSAPI.DLL
    0x6d380000 - 0x6d3a9000     C:\Program Files\Java\jre6\bin\jdwp.dll
    0x6d6a0000 - 0x6d6a6000     C:\Program Files\Java\jre6\bin\npt.dll
    0x6d7f0000 - 0x6d7ff000     C:\Program Files\Java\jre6\bin\zip.dll
    0x6d200000 - 0x6d207000     C:\Program Files\Java\jre6\bin\dt_socket.dll
    0x77c00000 - 0x77c35000     C:\Windows\system32\WS2_32.dll
    0x77850000 - 0x77856000     C:\Windows\system32\NSI.dll
    0x73b20000 - 0x73b30000     C:\Windows\system32\NLAapi.dll
    0x75800000 - 0x7583c000     C:\Windows\System32\mswsock.dll
    0x756c0000 - 0x75704000     C:\Windows\system32\DNSAPI.dll
    0x70bf0000 - 0x70bf8000     C:\Windows\System32\winrnr.dll
    0x70be0000 - 0x70bf0000     C:\Windows\system32\napinsp.dll
    0x70bc0000 - 0x70bd2000     C:\Windows\system32\pnrpnsp.dll
    0x70b90000 - 0x70bb4000     C:\Program Files\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
    0x779e0000 - 0x77a37000     C:\Windows\system32\SHLWAPI.dll
    0x72360000 - 0x7237c000     C:\Windows\system32\IPHLPAPI.DLL
    0x72350000 - 0x72357000     C:\Windows\system32\WINNSI.DLL
    0x72210000 - 0x72248000     C:\Windows\System32\fwpuclnt.dll
    0x70b80000 - 0x70b86000     C:\Windows\system32\rasadhlp.dll
    0x751d0000 - 0x751d5000     C:\Windows\System32\wshtcpip.dll
    0x75840000 - 0x75856000     C:\Windows\system32\CRYPTSP.dll
    0x755e0000 - 0x7561b000     C:\Windows\system32\rsaenh.dll
    0x75410000 - 0x75427000     C:\Windows\system32\USERENV.dll
    0x75d90000 - 0x75d9b000     C:\Windows\system32\profapi.dll
    0x75d10000 - 0x75d1c000     C:\Windows\system32\CRYPTBASE.dll
    0x6d610000 - 0x6d623000     C:\Program Files\Java\jre6\bin\net.dll
    0x757f0000 - 0x757f6000     C:\Windows\System32\wship6.dll
    0x183f0000 - 0x18444000     C:\Users\quartex\AppData\Local\Temp\jna1479176771160115342.dll
    0x18450000 - 0x18977000     C:\Program Files\VMware\VMware VIX\VSphere-4.0\32bit\vix.dll
    0x70a30000 - 0x70acb000     C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_d08a205e442db5b5\MSVCR80.dll
    0x77230000 - 0x7738c000     C:\Windows\system32\ole32.dll
    0x716d0000 - 0x716e2000     C:\Windows\system32\MPR.dll
    0x75e40000 - 0x75f5c000     C:\Windows\system32\CRYPT32.dll
    0x75e00000 - 0x75e0c000     C:\Windows\system32\MSASN1.dll
    0x738d0000 - 0x73921000     C:\Windows\system32\WINSPOOL.DRV
    0x76e60000 - 0x76ea5000     C:\Windows\system32\WLDAP32.dll
    0x18980000 - 0x18a6e000     C:\Program Files\VMware\VMware VIX\VSphere-4.0\32bit\libxml2.dll
    0x71840000 - 0x71847000     C:\Windows\system32\WSOCK32.dll
    0x18a70000 - 0x18b49000     C:\Program Files\VMware\VMware VIX\VSphere-4.0\32bit\iconv.dll
    0x00270000 - 0x00283000     C:\Program Files\VMware\VMware VIX\VSphere-4.0\32bit\zlib1.dll
    0x18b50000 - 0x18c0e000     C:\Program Files\VMware\VMware VIX\VSphere-4.0\32bit\glib-2.0.dll
    0x17ca0000 - 0x17cb3000     C:\Program Files\VMware\VMware VIX\VSphere-4.0\32bit\intl.dll
    0x76210000 - 0x76e59000     C:\Windows\system32\SHELL32.dll
    0x17e30000 - 0x17e5c000     C:\Program Files\VMware\VMware VIX\VSphere-4.0\32bit\gobject-2.0.dll
    0x18c10000 - 0x18eae000     C:\Program Files\VMware\VMware VIX\VSphere-4.0\32bit\gvmomi.dll
    0x18eb0000 - 0x18ef7000     C:\Program Files\VMware\VMware VIX\VSphere-4.0\32bit\libcurl.dll
    0x17f80000 - 0x17fb1000     C:\Program Files\VMware\VMware VIX\VSphere-4.0\32bit\SSLEAY32.dll
    0x18f00000 - 0x18ffa000     C:\Program Files\VMware\VMware VIX\VSphere-4.0\32bit\LIBEAY32.dll
    0x19000000 - 0x19044000     C:\Program Files\VMware\VMware VIX\VSphere-4.0\32bit\libldap_r.dll
    0x19050000 - 0x19072000     C:\Program Files\VMware\VMware VIX\VSphere-4.0\32bit\liblber.dll
    0x6b180000 - 0x6b185000     C:\Windows\system32\shfolder.dll
    0x75ca0000 - 0x75cba000     C:\Windows\system32\SspiCli.dll
    0x73c90000 - 0x73cb1000     C:\Windows\system32\ntmarta.dll
    0x74940000 - 0x74979000     C:\Windows\system32\MMDevAPI.DLL
    0x74a90000 - 0x74b85000     C:\Windows\system32\PROPSYS.dll
    0x77000000 - 0x7708f000     C:\Windows\system32\OLEAUT32.dll
    0x73bd0000 - 0x73c00000     C:\Windows\system32\wdmaud.drv
    0x74010000 - 0x74014000     C:\Windows\system32\ksuser.dll
    0x74930000 - 0x74937000     C:\Windows\system32\AVRT.dll
    0x77090000 - 0x7722d000     C:\Windows\system32\SETUPAPI.dll
    0x75ff0000 - 0x76017000     C:\Windows\system32\CFGMGR32.dll
    0x76020000 - 0x76032000     C:\Windows\system32\DEVOBJ.dll
    0x74020000 - 0x74056000     C:\Windows\system32\AUDIOSES.DLL
    0x73970000 - 0x73978000     C:\Windows\system32\msacm32.drv
    0x73950000 - 0x73964000     C:\Windows\system32\MSACM32.dll
    0x73940000 - 0x73947000     C:\Windows\system32\midimap.dll
    0x77ac0000 - 0x77b43000     C:\Windows\system32\CLBCatQ.DLL
    0x6f040000 - 0x6f04a000     C:\Windows\system32\wbem\wbemprox.dll
    0x6efe0000 - 0x6f03c000     C:\Windows\system32\wbemcomn.dll
    0x75d80000 - 0x75d8e000     C:\Windows\system32\RpcRtRemote.dll
    0x6d6e0000 - 0x6d6ef000     C:\Windows\system32\wbem\wbemsvc.dll
    0x1a600000 - 0x1a696000     C:\Windows\system32\wbem\fastprox.dll
    0x191b0000 - 0x191c8000     C:\Windows\system32\NTDSAPI.dll

    VM Arguments:
    jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:55342 -Dfile.encoding=Cp1252
    java_command: it.dnshst.vmware.test.VixTest
    Launcher Type: SUN_STANDARD

    Environment Variables:
    PATH=C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Program Files\PC Connectivity Solution\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\JavaFX\javafx-sdk1.2\bin;C:\Program Files\JavaFX\javafx-sdk1.2\emulator\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\DMIX;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\Pinnacle\Shared Files\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\OpenVPN\bin;C:\Program Files\IDM Computer Solutions\UltraEdit\
    USERNAME=quartex
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel

    ----------  S Y S T E M  ----------

    OS: Windows 7 Build 7600

    CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1

    Memory: 4k page, physical 3657628k(1147920k free), swap 7313492k(4438164k free)

    vm_info: Java HotSpot(TM) Client VM (16.0-b13) for windows-x86 JRE (1.6.0_18-b07), built on Dec 17 2009 13:35:55 by "java_re" with MS VC++ 7.1 (VS2003)

    time: Mon Mar 29 15:10:58 2010
    elapsed time: 30 seconds

     
  • Dan Parrella

    Dan Parrella - 2010-05-04

    Hi,
    I can't be sure from the output, but is this a 64-bit version of Windows 7? Looks like it could be. I haven't tested this code out on 64-bit or Windows 7. I know that the 64-bit version of the VIX API is not available on Windows and has to be run in emulation mode. Might be worth a shot.

    Have you tried running the same code on any other systems? Are you trying to connect to a VMware Server host or a vSphere host? If you're using vSphere, you should load the vSphere library instead and see if that helps.

    Let me know how it goes.

     
  • Alex Fust

    Alex Fust - 2010-05-04

    Hi,
    I have a 32 bit Windows 7 and I'm using VIx library in C:\Program Files\VMware\VMware VIX\VSphere-4.0\32bit  directory (the right one I suppose).
    For me now is not possible to test the same code in another Pc.
    Can I give you another information to understan what Is not working ?

    Thanks a lot for help

     
  • Anonymous

    Anonymous - 2010-06-28

    Hi,

    I've missed the jna.jar in my project. It is already working. Btw, i do have a question regarding mounting of ovf. Is there a way that i can do that programatically?

    Thanks,
    znarf

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.