Bug 1571226 - deadlock in define nwfilter
Summary: deadlock in define nwfilter
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-24 11:01 UTC by Dmitriy S
Modified: 2020-04-17 13:39 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-17 13:39:15 UTC


Attachments (Terms of Use)
define nwfilter libvirt.log (3.78 MB, text/plain)
2018-04-24 11:01 UTC, Dmitriy S
no flags Details

Description Dmitriy S 2018-04-24 11:01:55 UTC
Created attachment 1425948 [details]
define nwfilter libvirt.log

Hi, after trying define nwfilter all operations with nwfilters are blocked.
And the process itself hangs.

Steps to Reproduce:
1) cat > /filter.xml << EOF
<filter name='test' chain='root'>
  <uuid>7393984a-5c3a-48ad-ac3c-b9601b7acc45</uuid>
  <filterref filter='clean-traffic'/>
</filter>
EOF
2) virsh nwfilter-define filter.xml

In gdb, I observe such a thread. It never ends.

Thread 17 (Thread 0x7fd737dcb700 (LWP 5170)):
#0 0x00007fd744b232ae in pthread_rwlock_wrlock () from /lib64/libpthread.so.0
#1 0x00007fd70ca8d0b9 in nwfilterDefineXML () from /usr/lib64/libvirt/connection-driver/libvirt_driver_nwfilter.so
#2 0x00007fd7478d035e in virNWFilterDefineXML () from /lib64/libvirt.so.0
#3 0x00005612cabca64b in remoteDispatchNWFilterDefineXMLHelper ()
#4 0x00007fd7477e4d15 in virNetServerProgramDispatch () from /lib64/libvirt.so.0
#5 0x00007fd7477eb52d in virNetServerHandleJob () from /lib64/libvirt.so.0
#6 0x00007fd747727011 in virThreadPoolWorker () from /lib64/libvirt.so.0
#7 0x00007fd747726398 in virThreadHelper () from /lib64/libvirt.so.0
#8 0x00007fd744b1fe25 in start_thread () from /lib64/libpthread.so.0
#9 0x00007fd74484d34d in clone () from /lib64/libc.so.6

Comment 1 Dmitriy S 2018-04-24 11:04:28 UTC
Compiled against library: libvirt 4.3.0
Using library: libvirt 4.3.0
Using API: QEMU 4.3.0
Running hypervisor: QEMU 1.5.3

CentOS Linux release 7.4.1708 (Core)

Comment 2 Laine Stump 2018-04-24 13:48:04 UTC
Can you install the libvirt debuginfo packages, then attach the output of "thread apply all bt" in gdb?

Comment 3 Daniel Berrangé 2020-04-17 13:39:15 UTC
Closing old bug since the need info was not responded to.


Note You need to log in before you can comment on or make changes to this bug.