Hello,
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'/>
</filter>
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
conf/nwfilter_conf.c:2846
#2 0x00007fffe8ed9d24 in nwfilterDefine (conn=0x67d8e0, xml=0x67e000
"<filter name='nova-base'>\n\t<filterref
filter='no-ip-spoofing'/>\n</filter>\n\n")
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
remote_dispatch.h:10442
#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
util/threads-pthread.c:161
#11 0x00007ffff457257a in start_thread (arg=<optimized out>) at
pthread_create.c:297
#12 0x00007ffff3edd14d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:115
Thank for help
JC