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] gdbserver-xen crash with core file

To: Aneesh Kumar <aneesh.kumar@xxxxxxxxx>
Subject: Re: [Xen-devel] gdbserver-xen crash with core file
From: Kip Macy <kip.macy@xxxxxxxxx>
Date: Tue, 11 Oct 2005 11:04:18 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 11 Oct 2005 18:01:41 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Kzy5mOOtEboSDn/hXyFci1RXOPC7GjZjkkfwaOYCWncaMe4D1L33iowxC32BKhDdnSW2FivrLVFyg4NePUWvTnRAqyqvtUtroLFw6qbM3lFxKjOTgynNfxxlkUqMuo0aUiXzMQ9PEJPws2PWEa7utrQWMWGGXg1KvQrj9+1daA8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <cc723f590510110222x390747d9v62dfc32670cab792@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: <cc723f590510110222x390747d9v62dfc32670cab792@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I've seen this on a friend's machine running Debian. I haven't seen this on other distributions leading me to believe that it is specific to their glibc.  As unenjoyable as it may be, re-compiling glibc with symbols is your best bet.

-Kip




On 10/11/05, Aneesh Kumar <aneesh.kumar@xxxxxxxxx> wrote:
Hi,

gdbserver-xen coredump after i step through a few lines of code.

build dom0 with debug_domu. Enable debuginfo and frame pointer for dom
U and attach the domu with gdbserver . In gdb put breakpoint at say
sys_open and after going through few lines of code  gdbserver-xen
coredumps.

The resulting core file has the below stack

$gdb /usr/local/bin/gdbserver-xen  ./core
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db
library "/lib/libthread_db.so.1".

Core was generated by `gdbserver-xen 127.0.0.1:9999 --attach 6'.
Program terminated with signal 11, Segmentation fault.

warning: current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /usr/lib/libxenctrl.so.3.0...done.
Loaded symbols for /usr/lib/libxenctrl.so.3.0
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0xb7e35e35 in mallopt () from /lib/libc.so.6
(gdb) where
#0  0xb7e35e35 in mallopt () from /lib/libc.so.6
#1  0xb7e34fb3 in malloc () from /lib/libc.so.6
#2  0x08049eca in putpkt (buf=0x8053090
"T0505:b4ff5ac3;04:9cff5ac3;08:431b16c0;")
    at ../../../gdb-6.2.1/gdb/gdbserver/remote-utils.c:273
#3  0x0804b27e in main (argc=4, argv=0xbfb492f4) at
../../../gdb-6.2.1/gdb/gdbserver/server.c:590
(gdb)

Any ideas ?

-aneesh

_______________________________________________
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>