Hello, I was wondering if anyone knew of a good tool for viewing core dumps generated by running xm dump-core (xen 3.1) on a Windows XP HVM. Basically, I''m trying to figure out where the kernel memory begins, and it''s slow going with a hex editor. I tried using GDB, but I got the message: "not in executable format: File format not recognized" Thanks, -Ryan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jonathan Ervine
2008-Jan-16 05:02 UTC
Re: [Xen-users] Viewing core dump from Windows XP HVM
On Wednesday 16 January 2008 04:37:52 Ryan Persaud wrote:> Hello, > > I was wondering if anyone knew of a good tool for viewing core dumps > generated by running xm dump-core (xen 3.1) on a Windows XP HVM. > Basically, I''m trying to figure out where the kernel memory begins, > and it''s slow going with a hex editor. I tried using GDB, but I got > the message: "not in executable format: File format not recognized"Hi Ryan, What command are you using when trying to view the core file in gdb? Are you running gdb file <corefile_name> ? Just want to rule the blindingly obvious first of all. How large is the core file that is/has been generated, and how much RAM does your system (Dom0 I guess?) have available? Jon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sadique Puthen
2008-Jan-16 07:00 UTC
Re: [Xen-users] Viewing core dump from Windows XP HVM
Ryan Persaud wrote:> Hello, > > I was wondering if anyone knew of a good tool for viewing core > dumps generated by running xm dump-core (xen 3.1) on a Windows XP > HVM. Basically, I''m trying to figure out where the kernel memory > begins, and it''s slow going with a hex editor. I tried using GDB, but > I got the message: "not in executable format: File format not recognized"If the core is generated by xm dump-core, you should probably use GNU Crash utility to examine that. I have not tested running crash against a core file generated for windows HVM. --Sadique> > Thanks, > -Ryan > > > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jon, The file size is: -rw------- 1 root root 546209864 Jan 15 10:43 core I''ve allocated 512MB to the XP HVM domain (dom0 is standard XenLinux). Here is the output when I attempt to run GDB: [root@localhost xen]# gdb file core GNU gdb Red Hat Linux (6.3.0.0-1.143.el4rh) 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 "x86_64-redhat-linux-gnu"... (no debugging symbols found) Using host libthread_db library "/lib64/tls/libthread_db.so.1". "/var/log/xen/core" is not a core dump: File format not recognized (gdb) q [root@localhost xen]# gdb -c core GNU gdb Red Hat Linux (6.3.0.0-1.143.el4rh) 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 "x86_64-redhat-linux-gnu". "/var/log/xen/core" is not a core dump: File format not recognized If I run the file command on the core, I get: core:ELF 64-bit LSB core file AMD x86-64, version 1 -Ryan> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Jonathan Ervine > Sent: Wednesday, January 16, 2008 12:03 AM > To: xen-users@lists.xensource.com > Subject: Re: [Xen-users] Viewing core dump from Windows XP HVM > > On Wednesday 16 January 2008 04:37:52 Ryan Persaud wrote: > > Hello, > > > > I was wondering if anyone knew of a good tool for viewing > core dumps > > generated by running xm dump-core (xen 3.1) on a Windows XP HVM. > > Basically, I''m trying to figure out where the kernel memory begins, > > and it''s slow going with a hex editor. I tried using GDB, > but I got > > the message: "not in executable format: File format not recognized" > > Hi Ryan, > What command are you using when trying to view the core file > in gdb? Are you running gdb file <corefile_name> ? Just want > to rule the blindingly obvious first of all. > > How large is the core file that is/has been generated, and > how much RAM does your system (Dom0 I guess?) have available? > > Jon > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users