Re: [libvirt] Race condition between qemuDomainCreate and qemuDomainDestroy

2018-04-09 Thread John Ferlan
On 04/09/2018 12:12 PM, Laine Stump wrote: > On 04/06/2018 12:27 PM, John Ferlan wrote: >> >> On 04/03/2018 07:47 AM, Marc Hartmayer wrote: >>> On Tue, Mar 20, 2018 at 11:25 AM +0100, Marc Hartmayer >>> wrote: Hi, there is a race condition between 'qemuDomainCreate' and 'qem

Re: [libvirt] Race condition between qemuDomainCreate and qemuDomainDestroy

2018-04-09 Thread Laine Stump
On 04/06/2018 12:27 PM, John Ferlan wrote: > > On 04/03/2018 07:47 AM, Marc Hartmayer wrote: >> On Tue, Mar 20, 2018 at 11:25 AM +0100, Marc Hartmayer >> wrote: >>> Hi, >>> >>> there is a race condition between 'qemuDomainCreate' and >>> 'qemuDomainDestroy' causing a NULL pointer segmentation fau

Re: [libvirt] Race condition between qemuDomainCreate and qemuDomainDestroy

2018-04-09 Thread Marc Hartmayer
On Fri, Apr 06, 2018 at 06:27 PM +0200, John Ferlan wrote: > On 04/03/2018 07:47 AM, Marc Hartmayer wrote: >> On Tue, Mar 20, 2018 at 11:25 AM +0100, Marc Hartmayer >> wrote: >>> Hi, >>> >>> there is a race condition between 'qemuDomainCreate' and >>> 'qemuDomainDestroy' causing a NULL pointer s

Re: [libvirt] Race condition between qemuDomainCreate and qemuDomainDestroy

2018-04-06 Thread John Ferlan
On 04/03/2018 07:47 AM, Marc Hartmayer wrote: > On Tue, Mar 20, 2018 at 11:25 AM +0100, Marc Hartmayer > wrote: >> Hi, >> >> there is a race condition between 'qemuDomainCreate' and >> 'qemuDomainDestroy' causing a NULL pointer segmentation fault when >> accessing priv->monConfig. The race cond

Re: [libvirt] Race condition between qemuDomainCreate and qemuDomainDestroy

2018-04-03 Thread Marc Hartmayer
On Tue, Mar 20, 2018 at 11:25 AM +0100, Marc Hartmayer wrote: > Hi, > > there is a race condition between 'qemuDomainCreate' and > 'qemuDomainDestroy' causing a NULL pointer segmentation fault when > accessing priv->monConfig. The race condition can be easily reproduced > using gdb. > > (gdb) set

[libvirt] Race condition between qemuDomainCreate and qemuDomainDestroy

2018-03-20 Thread Marc Hartmayer
Hi, there is a race condition between 'qemuDomainCreate' and 'qemuDomainDestroy' causing a NULL pointer segmentation fault when accessing priv->monConfig. The race condition can be easily reproduced using gdb. (gdb) set non-stop on # set breakpoint on line 'mon = qemuMonitorOpen(vm, …)' (gdb) b q