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

Re: [Libvir] Core dump while executing virsh in RHEL5 .




Daniel,
Thanks for the quick reply, It didn't stop at the break
Will this help ?

  Rerun under gdb control, as I'm unable to find where this may occur just
from the tack strace given. __virConfReadFile only calls virConfError
which does not call strerror, put a breakpoint in __virConfReadFile and
__virRaiseError and try to find out what is happening please.

Daniel

(gdb) where
#0 0x000000393686ca27 in malloc_consolidate () from /lib64/libc.so.6
#1 0x000000393686eea2 in _int_malloc () from /lib64/libc.so.6
#2 0x00000039368706dd in malloc () from /lib64/libc.so.6
#3 0x000000393685eb4a in __fopen_internal () from /lib64/libc.so.6
#4 0x000000393682cb5f in read_alias_file () from /lib64/libc.so.6
#5 0x000000393682d09e in _nl_expand_alias () from /lib64/libc.so.6
#6 0x000000393682b93e in _nl_find_domain () from /lib64/libc.so.6
#7 0x000000393682b2ff in __dcigettext () from /lib64/libc.so.6
#8 0x000000393687530c in strerror_r () from /lib64/libc.so.6
#9 0x000000393687514e in strerror () from /lib64/libc.so.6
#10 0x00002aaaaab020fc in doRemoteOpen (conn=0x7eccbe0, priv=0x7ecc960, uri_str=0x2aaaaab13762 "xen:///", flags=2) at remote_internal.c:553 #11 0x00002aaaaab02abc in remoteNetworkOpen (conn=0x7eccbe0, uri_str=0x2aaaaab13762 "xen:///", flags=2) at remote_internal.c:2392 #12 0x00002aaaaaadd5db in do_open (name=0x2aaaaab13762 "xen:///", flags=0) at libvirt.c:447
#13 0x000000000040a80e in main (argc=0, argv=0x7fff4c23c9e8) at virsh.c:4507
#14 0x000000393681d8a4 in __libc_start_main () from /lib64/libc.so.6
#15 0x0000000000403459 in _start ()
(gdb)


534 if (connect (priv->sock, (struct sockaddr *) &addr, sizeof addr) == -1) {
(gdb)
542 if (errno == ECONNREFUSED &&
(gdb)
553 error (NULL, VIR_ERR_SYSTEM_ERROR, strerror (errno));
(gdb)
(gdb) list
548 trials++;
549 usleep(5000 * trials * trials);
550 goto autostart_retry;
551 }
552 }
553 error (NULL, VIR_ERR_SYSTEM_ERROR, strerror (errno));
554 goto failed;
555 }
556
557 break;
(gdb) p VIR_ERR_SYSTEM_ERROR
$7 = VIR_ERR_SYSTEM_ERROR
(gdb) p errno
$8 = 2
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
0x000000393686ca27 in malloc_consolidate () from /lib64/libc.so.6


Num Type Disp Enb Address What
1 breakpoint keep n 0x00002aaaaab00ed0 remote_internal.c:243
2 breakpoint keep n 0x00002aaaaaaf4480 virterror.c:326
3 breakpoint keep n 0x00002aaaaaaf74c0 conf.c:704



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