Re: Core dump while executing virsh in RHEL5 .

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

 



Daniel Veillard wrote:
  I still don't understand how you could get there (remote code
while using xen:///) and why this could crash, except for a previous
memory corruption.
Please run the same command under valgrind and report,

thanks,

Daniel
Now when I am running virsh using the valgrind it is listing fine!! But when I am trying to run virsh alone it is dumping the core again.
Attaching the valgrind.log file also.



[root@mx3650b new]# valgrind --log-file=valgrind.log  -v   virsh list
libvir: Remote error : No such file or directory
libvir: warning : Failed to find the network: Is the daemon running ?
Id Name                 State
----------------------------------
 0 Domain-0             running





==17508== Memcheck, a memory error detector.
==17508== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==17508== Using LibVEX rev 1658, a library for dynamic binary translation.
==17508== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==17508== Using valgrind-3.2.1, a dynamic binary instrumentation framework.
==17508== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==17508== 
==17508== My PID = 17508, parent PID = 17464.  Prog and args are:
==17508==    virsh
==17508==    list
==17508== 
--17508-- 
--17508-- Command line
--17508--    virsh
--17508--    list
--17508-- Startup, with flags:
--17508--    --log-file=log
--17508--    -v
--17508-- Contents of /proc/version:
--17508--   Linux version 2.6.18-8.el5xen (brewbuilder@xxxxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Fri Jan 26 14:29:35 EST 2007
--17508-- Arch and hwcaps: AMD64, amd64-sse2
--17508-- Valgrind library directory: /usr/lib64/valgrind
--17508-- Reading syms from /usr/bin/virsh (0x400000)
--17508-- Reading debug info from /usr/lib/debug/usr/bin/virsh.debug...
--17508-- Reading syms from /usr/lib64/valgrind/amd64-linux/memcheck (0x38000000)
--17508--    object doesn't have a dynamic symbol table
--17508-- Reading syms from /lib64/ld-2.5.so (0x3936400000)
--17508-- Reading suppressions file: /usr/lib64/valgrind/default.supp
--17508-- Reading syms from /usr/lib64/valgrind/amd64-linux/vgpreload_core.so (0x4802000)
--17508-- Reading syms from /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so (0x4A03000)
--17508-- REDIR: 0x3936413D80 (index) redirected to 0x4A06550 (index)
--17508-- REDIR: 0x3936413F30 (strcmp) redirected to 0x4A067D0 (strcmp)
--17508-- REDIR: 0x3936413F60 (strlen) redirected to 0x4A06700 (strlen)
--17508-- Reading syms from /usr/lib64/libvirt.so.0.3.3 (0x4C2E000)
--17508-- Reading debug info from /usr/lib/debug/usr/lib64/libvirt.so.0.3.3.debug...
--17508-- Reading syms from /usr/lib64/libxml2.so.2.6.26 (0x3940800000)
--17508--    object doesn't have a symbol table
--17508-- Reading syms from /usr/lib64/libgnutls.so.13.0.6 (0x394A600000)
--17508--    object doesn't have a symbol table
--17508-- Reading syms from /usr/lib64/libncurses.so.5.5 (0x3949600000)
--17508--    object doesn't have a symbol table
--17508-- Reading syms from /usr/lib64/libreadline.so.5.1 (0x3937C00000)
--17508--    object doesn't have a symbol table
--17508-- Reading syms from /usr/lib64/libxenstore.so.3.0.0 (0x393AC00000)
--17508--    object doesn't have a symbol table
--17508-- Reading syms from /lib64/libc-2.5.so (0x3936800000)
--17508-- Reading syms from /lib64/libdl-2.5.so (0x3937000000)
--17508-- Reading syms from /usr/lib64/libz.so.1.2.3 (0x3937800000)
--17508--    object doesn't have a symbol table
--17508-- Reading syms from /lib64/libm-2.5.so (0x3936C00000)
--17508-- Reading syms from /usr/lib64/libgcrypt.so.11.2.2 (0x394BA00000)
--17508--    object doesn't have a symbol table
--17508-- Reading syms from /usr/lib64/libgpg-error.so.0.3.0 (0x394B600000)
--17508--    object doesn't have a symbol table
--17508-- Reading syms from /lib64/libpthread-2.5.so (0x3937400000)
--17508-- Reading syms from /lib64/libnsl-2.5.so (0x393D000000)
--17508-- REDIR: 0x39368765C0 (memset) redirected to 0x4A06920 (memset)
--17508-- REDIR: 0x3936876CE0 (memcpy) redirected to 0x4A06FF0 (memcpy)
--17508-- REDIR: 0x3936875710 (rindex) redirected to 0x4A06400 (rindex)
--17508-- REDIR: 0x3936875320 (strlen) redirected to 0x4A066C0 (strlen)
--17508-- REDIR: 0x3936870660 (malloc) redirected to 0x4A05787 (malloc)
--17508-- REDIR: 0x3936874DA0 (strcmp) redirected to 0x4A06790 (strcmp)
--17508-- REDIR: 0x39368755A0 (strncmp) redirected to 0x4A06720 (strncmp)
--17508-- REDIR: 0x3936874BF0 (index) redirected to 0x4A064F0 (index)
--17508-- REDIR: 0x3936877670 (strchrnul) redirected to 0x4A069B0 (strchrnul)
--17508-- REDIR: 0x3936871F30 (free) redirected to 0x4A05397 (free)
--17508-- REDIR: 0x39368702F0 (calloc) redirected to 0x4A04AAC (calloc)
--17508-- REDIR: 0x3936875500 (strncat) redirected to 0x4A06580 (strncat)
--17508-- REDIR: 0x3936872110 (realloc) redirected to 0x4A05838 (realloc)
==17508== Warning: noted but unhandled ioctl 0x305000 with no size/direction hints
==17508==    This could cause spurious value errors to appear.
==17508==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==17508== Warning: noted but unhandled ioctl 0x305000 with no size/direction hints
==17508==    This could cause spurious value errors to appear.
==17508==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==17508== Warning: noted but unhandled ioctl 0x305000 with no size/direction hints
==17508==    This could cause spurious value errors to appear.
==17508==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
--17508-- REDIR: 0x3936875660 (strncpy) redirected to 0x4A07170 (strncpy)
--17508-- REDIR: 0x3936875410 (strnlen) redirected to 0x4A06690 (strnlen)
==17508== Invalid read of size 8
==17508==    at 0x4C5D0BB: doRemoteOpen (remote_internal.c:323)
==17508==    by 0x4C5EABB: remoteNetworkOpen (remote_internal.c:2392)
==17508==    by 0x4C395DA: do_open (libvirt.c:447)
==17508==    by 0x40A80D: main (virsh.c:4507)
==17508==  Address 0x4EA0520 is 0 bytes after a block of size 80 alloc'd
==17508==    at 0x4A05809: malloc (vg_replace_malloc.c:149)
==17508==    by 0x394085DDFE: xmlCreateURI (in /usr/lib64/libxml2.so.2.6.26)
==17508==    by 0x394085E3CC: xmlParseURI (in /usr/lib64/libxml2.so.2.6.26)
==17508==    by 0x4C5CF79: doRemoteOpen (remote_internal.c:250)
==17508==    by 0x4C5EABB: remoteNetworkOpen (remote_internal.c:2392)
==17508==    by 0x4C395DA: do_open (libvirt.c:447)
==17508==    by 0x40A80D: main (virsh.c:4507)
==17508== 
==17508== Invalid write of size 8
==17508==    at 0x4C5D455: doRemoteOpen (remote_internal.c:761)
==17508==    by 0x4C5EABB: remoteNetworkOpen (remote_internal.c:2392)
==17508==    by 0x4C395DA: do_open (libvirt.c:447)
==17508==    by 0x40A80D: main (virsh.c:4507)
==17508==  Address 0x4EA0520 is 0 bytes after a block of size 80 alloc'd
==17508==    at 0x4A05809: malloc (vg_replace_malloc.c:149)
==17508==    by 0x394085DDFE: xmlCreateURI (in /usr/lib64/libxml2.so.2.6.26)
==17508==    by 0x394085E3CC: xmlParseURI (in /usr/lib64/libxml2.so.2.6.26)
==17508==    by 0x4C5CF79: doRemoteOpen (remote_internal.c:250)
==17508==    by 0x4C5EABB: remoteNetworkOpen (remote_internal.c:2392)
==17508==    by 0x4C395DA: do_open (libvirt.c:447)
==17508==    by 0x40A80D: main (virsh.c:4507)
--17508-- REDIR: 0x39368769E0 (stpcpy) redirected to 0x4A06CB0 (stpcpy)
--17508-- REDIR: 0x3936874DE0 (strcpy) redirected to 0x4A06D90 (strcpy)
--17508-- REDIR: 0x3936875E10 (memchr) redirected to 0x4A06850 (memchr)
--17508-- REDIR: 0x3936877540 (rawmemchr) redirected to 0x4A069E0 (rawmemchr)
==17508== 
==17508== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 4 from 1)
==17508== 
==17508== 1 errors in context 1 of 2:
==17508== Invalid write of size 8
==17508==    at 0x4C5D455: doRemoteOpen (remote_internal.c:761)
==17508==    by 0x4C5EABB: remoteNetworkOpen (remote_internal.c:2392)
==17508==    by 0x4C395DA: do_open (libvirt.c:447)
==17508==    by 0x40A80D: main (virsh.c:4507)
==17508==  Address 0x4EA0520 is 0 bytes after a block of size 80 alloc'd
==17508==    at 0x4A05809: malloc (vg_replace_malloc.c:149)
==17508==    by 0x394085DDFE: xmlCreateURI (in /usr/lib64/libxml2.so.2.6.26)
==17508==    by 0x394085E3CC: xmlParseURI (in /usr/lib64/libxml2.so.2.6.26)
==17508==    by 0x4C5CF79: doRemoteOpen (remote_internal.c:250)
==17508==    by 0x4C5EABB: remoteNetworkOpen (remote_internal.c:2392)
==17508==    by 0x4C395DA: do_open (libvirt.c:447)
==17508==    by 0x40A80D: main (virsh.c:4507)
==17508== 
==17508== 1 errors in context 2 of 2:
==17508== Invalid read of size 8
==17508==    at 0x4C5D0BB: doRemoteOpen (remote_internal.c:323)
==17508==    by 0x4C5EABB: remoteNetworkOpen (remote_internal.c:2392)
==17508==    by 0x4C395DA: do_open (libvirt.c:447)
==17508==    by 0x40A80D: main (virsh.c:4507)
==17508==  Address 0x4EA0520 is 0 bytes after a block of size 80 alloc'd
==17508==    at 0x4A05809: malloc (vg_replace_malloc.c:149)
==17508==    by 0x394085DDFE: xmlCreateURI (in /usr/lib64/libxml2.so.2.6.26)
==17508==    by 0x394085E3CC: xmlParseURI (in /usr/lib64/libxml2.so.2.6.26)
==17508==    by 0x4C5CF79: doRemoteOpen (remote_internal.c:250)
==17508==    by 0x4C5EABB: remoteNetworkOpen (remote_internal.c:2392)
==17508==    by 0x4C395DA: do_open (libvirt.c:447)
==17508==    by 0x40A80D: main (virsh.c:4507)
--17508-- 
--17508-- supp:    4 Fedora-Core-6-hack3-ld25
==17508== 
==17508== IN SUMMARY: 2 errors from 2 contexts (suppressed: 4 from 1)
==17508== 
==17508== malloc/free: in use at exit: 19,905 bytes in 345 blocks.
==17508== malloc/free: 766 allocs, 421 frees, 59,867 bytes allocated.
==17508== 
==17508== searching for pointers to 345 not-freed blocks.
==17508== checked 381,992 bytes.
==17508== 
==17508== LEAK SUMMARY:
==17508==    definitely lost: 0 bytes in 0 blocks.
==17508==      possibly lost: 0 bytes in 0 blocks.
==17508==    still reachable: 19,905 bytes in 345 blocks.
==17508==         suppressed: 0 bytes in 0 blocks.
==17508== Reachable blocks (those to which a pointer was found) are not shown.
==17508== To see them, rerun with: --show-reachable=yes
--17508--  memcheck: sanity checks: 3 cheap, 1 expensive
--17508--  memcheck: auxmaps: 502 auxmap entries (32128k, 31M) in use
--17508--  memcheck: auxmaps: 818138 searches, 3229705 comparisons
--17508--  memcheck: SMs: n_issued      = 31 (496k, 0M)
--17508--  memcheck: SMs: n_deissued    = 0 (0k, 0M)
--17508--  memcheck: SMs: max_noaccess  = 524287 (8388592k, 8191M)
--17508--  memcheck: SMs: max_undefined = 0 (0k, 0M)
--17508--  memcheck: SMs: max_defined   = 1433 (22928k, 22M)
--17508--  memcheck: SMs: max_non_DSM   = 31 (496k, 0M)
--17508--  memcheck: max sec V bit nodes:    322 (27k, 0M)
--17508--  memcheck: set_sec_vbits8 calls: 967 (new: 322, updates: 645)
--17508--  memcheck: max shadow mem size:   4667k, 4M
--17508-- translate:            fast SP updates identified: 4,022 ( 86.5%)
--17508-- translate:   generic_known SP updates identified: 462 (  9.9%)
--17508-- translate: generic_unknown SP updates identified: 162 (  3.4%)
--17508--     tt/tc: 10,696 tt lookups requiring 11,152 probes
--17508--     tt/tc: 10,696 fast-cache updates, 5 flushes
--17508--  transtab: new        5,198 (114,333 -> 2,179,692; ratio 190:10) [0 scs]
--17508--  transtab: dumped     0 (0 -> ??)
--17508--  transtab: discarded  15 (319 -> ??)
--17508-- scheduler: 323,032 jumps (bb entries).
--17508-- scheduler: 3/7,062 major/minor sched events.
--17508--    sanity: 4 cheap, 1 expensive checks.
--17508--    exectx: 30,011 lists, 390 contexts (avg 0 per list)
--17508--    exectx: 1,193 searches, 1,114 full compares (933 per 1000)
--17508--    exectx: 0 cmp2, 7 cmp4, 0 cmpAll
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]