[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Why `xl restore` runs OK by shell but running on gdb encounter an segmentation fault?
On Tue, Jul 31, 2012 at 5:12 PM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote: Please don't drop the list. I've added it back. It's Xen 4.1.2 (hypervisor and tools) official source distribution comes from http://xen.org/products/xen_source.html.
This is the current scene at that time:(please ignore the beginning and trailing character 'x', and the character '>' points to the current execution line!) xl_cmdimpl.c (source followed by disassembly window)
x241 rc = 0; x
x242 close(fd_lock); x
x243 fd_lock = -1; x
x244 x
x245 return rc; x
x246 } x
x247 x
x248 static void *xmalloc(size_t sz) { x
x249 void *r; x
x250 r = malloc(sz); x
x251 if (!r) { fprintf(stderr,"xl: Unable to malloc %lu bytes.\n", x
x252 (unsigned long)sz); exit(-ERROR_FAIL); } x
x253 return r; x
>x254 } x
x255 x
x256 static void *xrealloc(void *ptr, size_t sz) { x
x0x405619 <xmalloc+52> mov 0x8(%rsp),%rdx x
x0x40561e <xmalloc+57> mov %rcx,%rsi x
x0x405621 <xmalloc+60> mov %rax,%rdi x
x0x405624 <xmalloc+63> mov $0x0,%eax x
x0x405629 <xmalloc+68> callq 0x404a00 <fprintf@plt> x
x0x40562e <xmalloc+73> mov $0x3,%edi x
x0x405633 <xmalloc+78> callq 0x4040a0 <exit@plt> x
x0x405638 <xmalloc+83> mov 0x18(%rsp),%rax x
>x0x40563d <xmalloc+88> add $0x28,%rsp x
x0x405641 <xmalloc+92> retq After that, press (dgb)`s`, I got echo 'Program received signal SIGSEGV, Segmentation fault.' The var sz=916, what happend? I have no idea because of not clear understanding about disam...
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |