[libvirt] Libvir JNA report SIGSEGV

Daniel Veillard veillard at redhat.com
Thu Sep 6 08:53:26 UTC 2012


On Thu, Sep 06, 2012 at 07:53:24AM +0000, Benjamin Wang (gendwang) wrote:
> Hi,
>    The problem only occurs in JNA part. The pure c libvirt works well.  Even If I only create a connection outside of the loop, the 
> problem can still happen. The following is the easiest problem to reproduce this problem
> 
>     public static void testcase1() throws LibvirtException
>     {
>         Connect conn=null;
>         
>         //connect to the hypervisor
>         conn = new Connect("esx://10.74.125.69:443/?no_verify=1&transport=https", new ConnectAuthDefault(), 0);
>         
>         while(true)
>         {
>         	int[] array = new int[100000000];
>         	
>         	try
>         	{
>         		Thread.sleep(1000);
>         	}
>         	catch(Exception e){}
>         }
>     }

  Then it's a java bug. The loop doesn't call or use libvirt in any way.
If it crashes in the loop it's java crashing to me !

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list