From: Aneesh Kumar Subject: gdbserver-xen crash with core file Date: Tue, 11 Oct 2005 14:52:56 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 ar= e welcome to change it and/or distribute copies of it under certain condition= s. 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=3D0x8053090 "T0505:b4ff5ac3;04:9cff5ac3;08:431b16c0;") at ../../../gdb-6.2.1/gdb/gdbserver/remote-utils.c:273 #3 0x0804b27e in main (argc=3D4, argv=3D0xbfb492f4) at ../../../gdb-6.2.1/gdb/gdbserver/server.c:590 (gdb) Any ideas ? -aneesh