Re: [libvirt] [PATCH] util: fix crash in virClassIsDerivedFrom for CloseCallbacks objects

2016-09-07 Thread Maxim Nestratov
07-Sep-16 12:45, Michal Privoznik пишет: On 07.09.2016 11:41, Maxim Nestratov wrote: 06-Sep-16 17:42, Michal Privoznik пишет: On 05.09.2016 18:42, Maxim Nestratov wrote: There is a possibility that qemu driver frees by unreferencing its closeCallbacks pointer as it has the only reference to

Re: [libvirt] [PATCH] util: fix crash in virClassIsDerivedFrom for CloseCallbacks objects

2016-09-07 Thread Michal Privoznik
On 07.09.2016 11:41, Maxim Nestratov wrote: > 06-Sep-16 17:42, Michal Privoznik пишет: > >> On 05.09.2016 18:42, Maxim Nestratov wrote: >>> There is a possibility that qemu driver frees by unreferencing its >>> closeCallbacks pointer as it has the only reference to the object, >>> while in fact no

Re: [libvirt] [PATCH] util: fix crash in virClassIsDerivedFrom for CloseCallbacks objects

2016-09-07 Thread Maxim Nestratov
06-Sep-16 17:42, Michal Privoznik пишет: On 05.09.2016 18:42, Maxim Nestratov wrote: There is a possibility that qemu driver frees by unreferencing its closeCallbacks pointer as it has the only reference to the object, while in fact not all users of CloseCallbacks called thier virCloseCallbacks

Re: [libvirt] [PATCH] util: fix crash in virClassIsDerivedFrom for CloseCallbacks objects

2016-09-06 Thread Michal Privoznik
On 05.09.2016 18:42, Maxim Nestratov wrote: > There is a possibility that qemu driver frees by unreferencing its > closeCallbacks pointer as it has the only reference to the object, > while in fact not all users of CloseCallbacks called thier > virCloseCallbacksUnset. > > Backtrace is the followin

[libvirt] [PATCH] util: fix crash in virClassIsDerivedFrom for CloseCallbacks objects

2016-09-05 Thread Maxim Nestratov
There is a possibility that qemu driver frees by unreferencing its closeCallbacks pointer as it has the only reference to the object, while in fact not all users of CloseCallbacks called thier virCloseCallbacksUnset. Backtrace is the following: Thread #1: 0 in pthread_cond_wait@@GLIBC_2.3.2 () fr