Re: [libvirt] Libvir JNA report SIGSEGV

2012-09-10 Thread Benjamin Wang (gendwang)
. Benjamin Wang -Original Message- From: Benjamin Wang (gendwang) Sent: 2012年9月6日 21:43 To: 'veill...@redhat.com' Cc: libvir-list@redhat.com Subject: RE: [libvirt] Libvir JNA report SIGSEGV Hi, I have looked into the code for several days. But I didn't find the root cause. Because

Re: [libvirt] Libvir JNA report SIGSEGV

2012-09-06 Thread Daniel Veillard
On Wed, Sep 05, 2012 at 08:59:07AM +, Benjamin Wang (gendwang) wrote: Hi, I try to verify the JNA with concurrent situation but meet some problems. The following is my example code: public static void testcase1() throws LibvirtException { Connect conn=null;

Re: [libvirt] Libvir JNA report SIGSEGV

2012-09-06 Thread Benjamin Wang (gendwang)
-list@redhat.com; Yang Zhou (yangzho) Subject: Re: [libvirt] Libvir JNA report SIGSEGV On Wed, Sep 05, 2012 at 08:59:07AM +, Benjamin Wang (gendwang) wrote: Hi, I try to verify the JNA with concurrent situation but meet some problems. The following is my example code: public static

Re: [libvirt] Libvir JNA report SIGSEGV

2012-09-06 Thread Daniel Veillard
On Thu, Sep 06, 2012 at 07:53:24AM +, 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

Re: [libvirt] Libvir JNA report SIGSEGV

2012-09-06 Thread Benjamin Wang (gendwang)
(gendwang) Cc: libvir-list@redhat.com Subject: Re: [libvirt] Libvir JNA report SIGSEGV On Thu, Sep 06, 2012 at 07:53:24AM +, 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

Re: [libvirt] Libvir JNA report SIGSEGV

2012-09-06 Thread Daniel Veillard
On Thu, Sep 06, 2012 at 09:06:14AM +, Benjamin Wang (gendwang) wrote: Hi, Actually I also did another test as following. When I comment the new Connet, the program works well. So this is the problem related to Libvirt JNA. If I manually run the garbage collection for this program, it

Re: [libvirt] Libvir JNA report SIGSEGV

2012-09-06 Thread Benjamin Wang (gendwang)
to fix this. Thanks! B.R. Benjamin Wang -Original Message- From: Daniel Veillard [mailto:veill...@redhat.com] Sent: 2012年9月6日 19:05 To: Benjamin Wang (gendwang) Cc: libvir-list@redhat.com Subject: Re: [libvirt] Libvir JNA report SIGSEGV On Thu, Sep 06, 2012 at 09:06:14AM +, Benjamin

[libvirt] Libvir JNA report SIGSEGV

2012-09-05 Thread Benjamin Wang (gendwang)
Hi, I try to verify the JNA with concurrent situation but meet some problems. The following is my example code: public static void testcase1() throws LibvirtException { Connect conn=null; Connect conn1=null; //connect to the hypervisor conn = new