WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Segmentation fault of gdbserver-xen

To: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Segmentation fault of gdbserver-xen
From: Kip Macy <kmacy@xxxxxxxxxxx>
Date: Wed, 23 Aug 2006 15:02:36 -0700 (PDT)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 24 Aug 2006 02:05:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <3CC6C6F9D6799Etakebe_akio@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <3CC6C6F9D6799Etakebe_akio@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
You will need to re-compile and re-install libxenctl with symbols (add
-g to the Makefile). With that done you'll be able to see where the
segmentation fault is occurring. There are frequently problems in the
domain VA mapping function.

                          -Kip

On Thu, 24 Aug 2006, Akio Takebe wrote:

> Hi,
>
> I tried to run gdbserver-xen with --file on xen-x86_64.
> But I have the following fault.
> Do anyone have the same error?
> Or do I have mistakes?
>
> # gdbserver-xen 127.0.0.1:9999 --file /var/xen/dump/vm1.1.core
> Attached; pid = 3
> Segmentation fault
>
> A part of the strace is below.
>
> mmap(NULL, 1264480, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> 0) = 0x2b01270d9000
> mprotect(0x2b01270e5000, 1215328, PROT_NONE) = 0
> mmap(0x2b01271e4000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
> MAP_DENYWRITE, 3, 0xb000) = 0x2b01271e4000
> mmap(0x2b01271e5000, 166752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED
> |MAP_ANONYMOUS, -1, 0) = 0x2b01271e5000
> close(3)                                = 0
> open("/lib64/tls/libc.so.6", O_RDONLY)  = -1 ENOENT (No such file or
> directory)
> open("/lib64/libc.so.6", O_RDONLY)      = 3
> read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\313"...,
> 640) = 640
> fstat(3, {st_mode=S_IFREG|0755, st_size=1485035, ...}) = 0
> mmap(0x386c200000, 2303368, PROT_READ|PROT_EXEC, MAP_PRIVATE|
> MAP_DENYWRITE, 3, 0) = 0x386c200000
> mprotect(0x386c329000, 1086856, PROT_NONE) = 0
> mmap(0x386c428000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
> MAP_DENYWRITE, 3, 0x128000) = 0x386c428000
> mmap(0x386c42e000, 17800, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
> MAP_ANONYMOUS, -1, 0) = 0x386c42e000
> close(3)                                = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
> = 0x2b012720e000
> mprotect(0x386c428000, 12288, PROT_READ) = 0
> munmap(0x2b01270b3000, 154694)          = 0
> open("2006-0823-1442.14-vm1.1.core", O_RDONLY) = 3
> open("/proc/xen/privcmd", O_RDWR)       = 4
> fcntl(4, F_GETFD)                       = 0
> fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
> brk(0)                                  = 0x50d000
> brk(0x52e000)                           = 0x52e000
> rt_sigaction(SIGRT_1, {SIG_IGN}, {SIG_DFL}, 8) = 0
> write(2, "Attached; pid = 3\n", 18)     = 18
> read(3, "\355\353\17\360\1\0\0\0\355\371\0\0\30\0\0\0H\24\0\0\0"..., 24)
> = 24
> read(3, "\177\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200"...,
> 5168) = 5168
> mmap(NULL, 512000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x2b012720f000
> read(3, "\2520\20\0\0\0\0\0:9\20\0\0\0\0\0\2764\20\0\0\0\0\0\333"...,
> 511848) = 511848
> mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x2b012728c000
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
>
> Best Regards,
>
> Akio Takebe
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>