Well that was exactly what I was doing. In order to make absolutely sure Sessions are truly closed, I closed the VirtualBoxManager right along with it. This was how I did it in python, it seems strange that it doesn't work in java.<div>

<br></div><div>The test program that crashes the jvm is simplicity itself :</div><div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>--------------[Test.java]--------------</div><div><div>

import org.virtualbox_4_0.VirtualBoxManager;</div><div>import org.virtualbox_4_0.IVirtualBox;</div><div><br></div><div>public class Test {</div><div>        public static void main(String[] args) {</div><div>                VirtualBoxManager mgr = VirtualBoxManager.createInstance("");</div>

<div>                IVirtualBox vbox = mgr.getVBox();</div><div><br></div><div>                mgr.cleanup();</div><div><br></div><div>                mgr = VirtualBoxManager.createInstance("");</div><div><br>
</div>
<div>                mgr.cleanup();</div><div>        }</div><div>}</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>--------------[Test.java]--------------</div><div></div></div><div><br>

</div>Christophe</div><div><br><div class="gmail_quote">On Fri, Apr 22, 2011 at 8:10 AM, Nikolay Igotti <span dir="ltr"><<a href="mailto:nikolay.igotti@oracle.com">nikolay.igotti@oracle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



  
    
  
  <div text="#000000" bgcolor="#ffffff">
         Christophe,<br>
    <br>
     Unfortunately this very insufficient info for debugging, but
    technically you only need a single VirtualBoxManager - creating
    second is a bug.<br>
    Having said this, you may post minimal testcase where you can
    reproduce this issue, so we can look on the crash. <br>
    <br>
      Nikolay.<br>
    <br>
    <br>
    22.04.2011 0:56, Christophe Devriese пишет:
    <blockquote type="cite"><div><div></div><div class="h5">
      <div>I'm seeing jre crashes when trying to use the libvboxjxpcom
        api on 64 bits. Strangely, I seem to have this problem on both
        the openjdk and sun VM's. Here's the backtrace :</div>
      <div><br>
      </div>
      <div>V  [libjvm.so+0x43ce80]</div>
      <div>V  [libjvm.so+0x44789a]</div>
      <div>C  [libvboxjxpcom.so+0xaf89]</div>
      <div>C  [libvboxjxpcom.so+0x15a1f]
         Java_org_mozilla_xpcom_internal_XPCOMImpl_initXPCOMNative+0xc</div>
      <div>j
 org.mozilla.xpcom.internal.XPCOMImpl.initXPCOM(Ljava/io/File;Lorg/mozilla/xpcom/IAppFileLocProvider;)Lorg/mozilla/interfaces/nsIServiceManager;+3</div>
      <div>j
 org.mozilla.xpcom.Mozilla.initXPCOM(Ljava/io/File;Lorg/mozilla/xpcom/IAppFileLocProvider;)Lorg/mozilla/interfaces/nsIServiceManager;+6</div>
      <div>j
 org.virtualbox_4_0.VirtualBoxManager.createInstance(Ljava/lang/String;)Lorg/virtualbox_4_0/VirtualBoxManager;+50</div>
      <div><br>
      </div>
      <div>Strangely, this doesn't happen on the first createInstance,
        only on the second. How can I debug something like this ?</div>
      <div><br>
      </div>
      <div>Christophe</div>
      </div></div><pre><fieldset></fieldset>
_______________________________________________
vbox-dev mailing list
<a href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a>
<a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target="_blank">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div>