[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] Segfault problem with nwfilter-define in Libvirt

Hi JC,
I haven't met this issue with libvirt-0.10.0-0rc0.el6.x86_64 on RHEL6.2,
and can successfully define a network filter from an XML file:

# virsh nwfilter-define newfilter.xml
Network filter nova-base defined from newfilter.xml

# virsh nwfilter-dumpxml nova-base   
<filter name='nova-base' chain='root'>
  <filterref filter='no-ip-spoofing'/>


----- Original Message -----
From: "[Vo2Labs] Jean-Charles Passard" <jcharles vo2labs org>
To: libvir-list redhat com
Sent: Thursday, August 9, 2012 12:40:56 AM
Subject: [libvirt] Segfault problem with nwfilter-define in Libvirt


At first a big thanks to Laine, who kindly tried to help me !

My problem is the following :

I use a linux from scratch distro ( home made)
pure X86_64
glibc 2.10.1
gcc 4.4.1
uname -a SMP Sat Aug 4 20:07:49 CEST 2012 x86_64 x86_64 x86_64 GNU/Linux

Each time I use nwfilter-define, libvirtd crash with a segfault. I tried 
nearly all version from 0.9.8 to 0.9.13 and even 0.10 with the same problem
Here is a sample of newfilter.xml :

<filter name='nova-base'>
         <filterref filter='no-ip-spoofing'/>

and here the bt unde gdb with v0.9.13

#0  __pthread_mutex_lock (mutex=0x0) at pthread_mutex_lock.c:50
#1  0x00007ffff77ba07e in virNWFilterCallbackDriversLock () at 
#2  0x00007fffe8ed9d24 in nwfilterDefine (conn=0x67d8e0, xml=0x67e000 
"<filter name='nova-base'>\n\t<filterref 
     at nwfilter/nwfilter_driver.c:348
#3  0x00007ffff77eb753 in virNWFilterDefineXML (conn=0x67d8e0,
     xmlDesc=0x67e000 "<filter name='nova-base'>\n\t<filterref 
filter='no-ip-spoofing'/>\n</filter>\n\n") at libvirt.c:15925
#4  0x000000000041969c in remoteDispatchNWFilterDefineXML 
(ret=<optimized out>, args=<optimized out>, rerr=<optimized out>, 
msg=<optimized out>,
     client=<optimized out>, server=<optimized out>) at 
#5  remoteDispatchNWFilterDefineXMLHelper (server=<optimized out>, 
client=0x67d210, msg=<optimized out>, rerr=0x7fffec57cf60, 
args=0x67dea0, ret=0x67ba20)
     at remote_dispatch.h:10422
#6  0x00007ffff784d48d in virNetServerProgramDispatchCall 
(msg=<optimized out>, client=<optimized out>, server=<optimized out>, 
prog=<optimized out>)
     at rpc/virnetserverprogram.c:416
#7  virNetServerProgramDispatch (prog=0x675090, server=0x670370, 
client=0x67d210, msg=0x67e3d0) at rpc/virnetserverprogram.c:289
#8  0x00007ffff784a0d1 in virNetServerHandleJob (jobOpaque=<optimized 
out>, opaque=0x670370) at rpc/virnetserver.c:161
#9  0x00007ffff776d282 in virThreadPoolWorker (opaque=<optimized out>) 
at util/threadpool.c:143
#10 0x00007ffff776c926 in virThreadHelper (data=<optimized out>) at 
#11 0x00007ffff457257a in start_thread (arg=<optimized out>) at 
#12 0x00007ffff3edd14d in clone () at 

Thank for help


libvir-list mailing list
libvir-list redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]