[Pkg-libvirt-maintainers] Bug#748578: Bug#748578: libvirt-bin: segfault with RBD storage pool

Dmitry Smirnov onlyjob at debian.org
Mon May 19 09:43:25 UTC 2014


Dear Guido,

On Mon, 19 May 2014 06:30:13 Guido Günther wrote:
> Could you please reproduce this with the libvirt0-dbg package
> installed? This will give us line numbers and variable values.

Actually I have libvirt0-dbg installed. I had to upgrade "gdb"
to get the following dump:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f0621de5700 (LWP 10679)]
0x00007f062ae01cb7 in virStorageVolTargetDefFormat (buf=buf at entry=0x7f0621de4a70, def=def at entry=0x7f05fc022a70, type=type at entry=0x7f062af106e7 "target", 
    options=0x7f062b1b7d70 <poolTypeInfo+464>, options=0x7f062b1b7d70 <poolTypeInfo+464>) at ../../../src/conf/storage_conf.c:1539
1539    ../../../src/conf/storage_conf.c: No such file or directory.
(gdb) bt
#0  0x00007f062ae01cb7 in virStorageVolTargetDefFormat (buf=buf at entry=0x7f0621de4a70, def=def at entry=0x7f05fc022a70, type=type at entry=0x7f062af106e7 "target", 
    options=0x7f062b1b7d70 <poolTypeInfo+464>, options=0x7f062b1b7d70 <poolTypeInfo+464>) at ../../../src/conf/storage_conf.c:1539
#1  0x00007f062ae04e06 in virStorageVolDefFormat (pool=<optimized out>, def=def at entry=0x7f05fc022a40) at ../../../src/conf/storage_conf.c:1651
#2  0x00007f06209960ca in storageVolGetXMLDesc (obj=0x7f0604000bb0, flags=<optimized out>) at ../../../src/storage/storage_driver.c:2613
#3  0x00007f062ae57e0a in virStorageVolGetXMLDesc (vol=vol at entry=0x7f0604000bb0, flags=0) at ../../../src/libvirt.c:14159
#4  0x00007f062b8794e6 in remoteDispatchStorageVolGetXMLDesc (server=<optimized out>, msg=<optimized out>, ret=0x7f06040008c0, args=0x7f0604000960, rerr=0x7f0621de4cc0, 
    client=<optimized out>) at ../../../daemon/remote_dispatch.h:13732
#5  remoteDispatchStorageVolGetXMLDescHelper (server=<optimized out>, client=<optimized out>, msg=<optimized out>, rerr=0x7f0621de4cc0, args=0x7f0604000960, ret=0x7f06040008c0)
    at ../../../daemon/remote_dispatch.h:13708
#6  0x00007f062aeb2732 in virNetServerProgramDispatchCall (msg=0x7f062bf2c3b0, client=0x7f062bf47c00, server=0x7f062bf2b390, prog=0x7f062bf43a20)
    at ../../../src/rpc/virnetserverprogram.c:437
#7  virNetServerProgramDispatch (prog=0x7f062bf43a20, server=server at entry=0x7f062bf2b390, client=0x7f062bf47c00, msg=0x7f062bf2c3b0) at ../../../src/rpc/virnetserverprogram.c:307
#8  0x00007f062b8947dd in virNetServerProcessMsg (msg=<optimized out>, prog=<optimized out>, client=<optimized out>, srv=0x7f062bf2b390) at ../../../src/rpc/virnetserver.c:172
#9  virNetServerHandleJob (jobOpaque=<optimized out>, opaque=0x7f062bf2b390) at ../../../src/rpc/virnetserver.c:193
#10 0x00007f062ada3c85 in virThreadPoolWorker (opaque=opaque at entry=0x7f062bf1ffb0) at ../../../src/util/virthreadpool.c:145
#11 0x00007f062ada317e in virThreadHelper (data=<optimized out>) at ../../../src/util/virthread.c:197
#12 0x00007f0628275062 in start_thread (arg=0x7f0621de5700) at pthread_create.c:312
#13 0x00007f0627ba2a3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

---------

(gdb) thread apply all bt                                                                                                                                                               

Thread 11 (Thread 0x7f0625ded700 (LWP 10670)):                                                                                                                                          
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185                                                                                 
#1  0x00007f062ada363a in virCondWait (c=c at entry=0x7f062bf2b510, m=m at entry=0x7f062bf2b4e8) at ../../../src/util/virthread.c:153                                                         
#2  0x00007f062ada3d1b in virThreadPoolWorker (opaque=opaque at entry=0x7f062bf201d0) at ../../../src/util/virthreadpool.c:104                                                             
#3  0x00007f062ada317e in virThreadHelper (data=<optimized out>) at ../../../src/util/virthread.c:197                                                                                   
#4  0x00007f0628275062 in start_thread (arg=0x7f0625ded700) at pthread_create.c:312                                                                                                     
#5  0x00007f0627ba2a3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111                                                                                                     

Thread 10 (Thread 0x7f06255ec700 (LWP 10671)):                                                                                                                                          
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185                                                                                 
#1  0x00007f062ada363a in virCondWait (c=c at entry=0x7f062bf2b510, m=m at entry=0x7f062bf2b4e8) at ../../../src/util/virthread.c:153                                                         
#2  0x00007f062ada3d1b in virThreadPoolWorker (opaque=opaque at entry=0x7f062bf200b0) at ../../../src/util/virthreadpool.c:104                                                             
#3  0x00007f062ada317e in virThreadHelper (data=<optimized out>) at ../../../src/util/virthread.c:197                                                                                   
#4  0x00007f0628275062 in start_thread (arg=0x7f06255ec700) at pthread_create.c:312                                                                                                     
#5  0x00007f0627ba2a3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111                                                                                                     

Thread 9 (Thread 0x7f0624deb700 (LWP 10672)):                                                                                                                                           
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185                                                                                 
#1  0x00007f062ada363a in virCondWait (c=c at entry=0x7f062bf2b510, m=m at entry=0x7f062bf2b4e8) at ../../../src/util/virthread.c:153                                                         
#2  0x00007f062ada3d1b in virThreadPoolWorker (opaque=opaque at entry=0x7f062bf1ffb0) at ../../../src/util/virthreadpool.c:104                                                             
#3  0x00007f062ada317e in virThreadHelper (data=<optimized out>) at ../../../src/util/virthread.c:197                                                                                   
#4  0x00007f0628275062 in start_thread (arg=0x7f0624deb700) at pthread_create.c:312                                                                                                     
#5  0x00007f0627ba2a3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111                                                                                                     

Thread 8 (Thread 0x7f06245ea700 (LWP 10673)):                                                                                                                                           
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185                                                                                 
#1  0x00007f062ada363a in virCondWait (c=c at entry=0x7f062bf2b510, m=m at entry=0x7f062bf2b4e8) at ../../../src/util/virthread.c:153                                                         
#2  0x00007f062ada3d1b in virThreadPoolWorker (opaque=opaque at entry=0x7f062bf200b0) at ../../../src/util/virthreadpool.c:104                                                             
#3  0x00007f062ada317e in virThreadHelper (data=<optimized out>) at ../../../src/util/virthread.c:197                                                                                   
#4  0x00007f0628275062 in start_thread (arg=0x7f06245ea700) at pthread_create.c:312                                                                                                     
#5  0x00007f0627ba2a3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111                                                                                                     

Thread 7 (Thread 0x7f0623de9700 (LWP 10675)):                                                                                                                                           
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185                                                                                 
#1  0x00007f062ada363a in virCondWait (c=c at entry=0x7f062bf2b510, m=m at entry=0x7f062bf2b4e8) at ../../../src/util/virthread.c:153                                                         
#2  0x00007f062ada3d1b in virThreadPoolWorker (opaque=opaque at entry=0x7f062bf201d0) at ../../../src/util/virthreadpool.c:104                                                             
#3  0x00007f062ada317e in virThreadHelper (data=<optimized out>) at ../../../src/util/virthread.c:197                                                                                   
#4  0x00007f0628275062 in start_thread (arg=0x7f0623de9700) at pthread_create.c:312                                                                                                     
#5  0x00007f0627ba2a3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111                                                                                                     

Thread 6 (Thread 0x7f06235e8700 (LWP 10676)):                                                                                                                                           
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185                                                                                 
#1  0x00007f062ada363a in virCondWait (c=c at entry=0x7f062bf2b5a8, m=m at entry=0x7f062bf2b4e8) at ../../../src/util/virthread.c:153                                                         
#2  0x00007f062ada3d3b in virThreadPoolWorker (opaque=opaque at entry=0x7f062bf200b0) at ../../../src/util/virthreadpool.c:104                                                             
#3  0x00007f062ada317e in virThreadHelper (data=<optimized out>) at ../../../src/util/virthread.c:197                                                                                   
#4  0x00007f0628275062 in start_thread (arg=0x7f06235e8700) at pthread_create.c:312                                                                                                     
#5  0x00007f0627ba2a3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111                                                                                                     

Thread 5 (Thread 0x7f0622de7700 (LWP 10677)):                                                                                                                                           
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185                                                                                 
#1  0x00007f062ada363a in virCondWait (c=c at entry=0x7f062bf2b5a8, m=m at entry=0x7f062bf2b4e8) at ../../../src/util/virthread.c:153
#2  0x00007f062ada3d3b in virThreadPoolWorker (opaque=opaque at entry=0x7f062bf1ffb0) at ../../../src/util/virthreadpool.c:104
#3  0x00007f062ada317e in virThreadHelper (data=<optimized out>) at ../../../src/util/virthread.c:197
#4  0x00007f0628275062 in start_thread (arg=0x7f0622de7700) at pthread_create.c:312
#5  0x00007f0627ba2a3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f06225e6700 (LWP 10678)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f062ada363a in virCondWait (c=c at entry=0x7f062bf2b5a8, m=m at entry=0x7f062bf2b4e8) at ../../../src/util/virthread.c:153
#2  0x00007f062ada3d3b in virThreadPoolWorker (opaque=opaque at entry=0x7f062bf200b0) at ../../../src/util/virthreadpool.c:104
#3  0x00007f062ada317e in virThreadHelper (data=<optimized out>) at ../../../src/util/virthread.c:197
#4  0x00007f0628275062 in start_thread (arg=0x7f06225e6700) at pthread_create.c:312
#5  0x00007f0627ba2a3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f0621de5700 (LWP 10679)):
#0  0x00007f062ae01cb7 in virStorageVolTargetDefFormat (buf=buf at entry=0x7f0621de4a70, def=def at entry=0x7f05fc022a70, type=type at entry=0x7f062af106e7 "target", 
    options=0x7f062b1b7d70 <poolTypeInfo+464>, options=0x7f062b1b7d70 <poolTypeInfo+464>) at ../../../src/conf/storage_conf.c:1539
#1  0x00007f062ae04e06 in virStorageVolDefFormat (pool=<optimized out>, def=def at entry=0x7f05fc022a40) at ../../../src/conf/storage_conf.c:1651
#2  0x00007f06209960ca in storageVolGetXMLDesc (obj=0x7f0604000bb0, flags=<optimized out>) at ../../../src/storage/storage_driver.c:2613
#3  0x00007f062ae57e0a in virStorageVolGetXMLDesc (vol=vol at entry=0x7f0604000bb0, flags=0) at ../../../src/libvirt.c:14159
#4  0x00007f062b8794e6 in remoteDispatchStorageVolGetXMLDesc (server=<optimized out>, msg=<optimized out>, ret=0x7f06040008c0, args=0x7f0604000960, rerr=0x7f0621de4cc0, 
    client=<optimized out>) at ../../../daemon/remote_dispatch.h:13732
#5  remoteDispatchStorageVolGetXMLDescHelper (server=<optimized out>, client=<optimized out>, msg=<optimized out>, rerr=0x7f0621de4cc0, args=0x7f0604000960, ret=0x7f06040008c0)
    at ../../../daemon/remote_dispatch.h:13708
#6  0x00007f062aeb2732 in virNetServerProgramDispatchCall (msg=0x7f062bf2c3b0, client=0x7f062bf47c00, server=0x7f062bf2b390, prog=0x7f062bf43a20)
    at ../../../src/rpc/virnetserverprogram.c:437
#7  virNetServerProgramDispatch (prog=0x7f062bf43a20, server=server at entry=0x7f062bf2b390, client=0x7f062bf47c00, msg=0x7f062bf2c3b0) at ../../../src/rpc/virnetserverprogram.c:307
#8  0x00007f062b8947dd in virNetServerProcessMsg (msg=<optimized out>, prog=<optimized out>, client=<optimized out>, srv=0x7f062bf2b390) at ../../../src/rpc/virnetserver.c:172
#9  virNetServerHandleJob (jobOpaque=<optimized out>, opaque=0x7f062bf2b390) at ../../../src/rpc/virnetserver.c:193
#10 0x00007f062ada3c85 in virThreadPoolWorker (opaque=opaque at entry=0x7f062bf1ffb0) at ../../../src/util/virthreadpool.c:145
#11 0x00007f062ada317e in virThreadHelper (data=<optimized out>) at ../../../src/util/virthread.c:197
#12 0x00007f0628275062 in start_thread (arg=0x7f0621de5700) at pthread_create.c:312
#13 0x00007f0627ba2a3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f06215e4700 (LWP 10680)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f062ada363a in virCondWait (c=c at entry=0x7f062bf2b5a8, m=m at entry=0x7f062bf2b4e8) at ../../../src/util/virthread.c:153
#2  0x00007f062ada3d3b in virThreadPoolWorker (opaque=opaque at entry=0x7f062bf200b0) at ../../../src/util/virthreadpool.c:104
#3  0x00007f062ada317e in virThreadHelper (data=<optimized out>) at ../../../src/util/virthread.c:197
#4  0x00007f0628275062 in start_thread (arg=0x7f06215e4700) at pthread_create.c:312
#5  0x00007f0627ba2a3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f062b7f6840 (LWP 10669)):
#0  0x00007f0627b9772d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f062ad68521 in poll (__timeout=5000, __nfds=10, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2  virEventPollRunOnce () at ../../../src/util/vireventpoll.c:643
#3  0x00007f062ad66e52 in virEventRunDefaultImpl () at ../../../src/util/virevent.c:308
#4  0x00007f062b895ded in virNetServerRun (srv=srv at entry=0x7f062bf2b390) at ../../../src/rpc/virnetserver.c:1138
#5  0x00007f062b85eb37 in main (argc=<optimized out>, argv=<optimized out>) at ../../../daemon/libvirtd.c:1507

Thank you.

-- 
Regards,
 Dmitry Smirnov.

---

The more false we destroy the more room there will be for the true.
         -- Robert G. Ingersoll, 1902
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20140519/832dd7a1/attachment-0001.sig>


More information about the Pkg-libvirt-maintainers mailing list