From: Laszlo Ersek <lersek@redhat.com>
To: Michael Brown <mcb30@ipxe.org>,
Konrad Rzeszutek Wilk <konrad@kernel.org>,
edk2-devel@lists.01.org,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
alejandro.j.jimenez@oracle.com, aaron.young@oracle.com,
ipxe-devel@lists.ipxe.org,
Xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [ipxe-devel] Tips on how to debug EFI code (iPXE) from within KVM after ipxe.efi has crashed with #GP?
Date: Thu, 28 Sep 2017 20:19:08 +0200 [thread overview]
Message-ID: <bdc75bc7-9f2e-c9f9-8e78-151bdd988788@redhat.com> (raw)
In-Reply-To: <7c5cafdc-67cc-5535-1385-6ed9dd491e7e@ipxe.org>
On 09/28/17 20:04, Michael Brown wrote:
> On 28/09/17 18:37, Konrad Rzeszutek Wilk wrote:
>> !!! X64 Exception Type - 0D(#GP - General Protection) CPU Apic ID -
>> 00000000 !!!!
>> ExceptionData - 0000000000000000
>> RIP - 00000000BEC2949C, CS - 0000000000000038, RFLAGS -
>> 0000000000210216
>> ....
>> !!!! Find image 808610ed.efidrv (ImageBase=00000000BEC27000,
>> EntryPoint=00000000BEC2E089) !!!!
>>
>> And now I am trying to figure out how to troubleshoot this.
>> (and yes I am thinking it was related to the Tivoli work-around, but
>> disabling that didn't help).
>
> The Tivoli workaround is for legacy BIOS only; it doesn't apply to the
> UEFI build of iPXE.
>
> You have the RIP and ImageBase, so you know that the exception happens
> at offset +0x249c within your iPXE binary. You can use this in
> conjunction with the corresponding map file from the iPXE build (which
> will probably be named bin-x86_64-efi/808610d3.efidrv.tmp.map, but see
> below) to figure out exactly where the crash is occurring.
Or run "objdump -S 808610d3.efidrv.tmp", and look up the offset in the
output. (First, check if (EntryPoint - ImageBase), i.e., 0x7089, equals
"start address" in the "objdump -x" output.)
Laszlo
prev parent reply other threads:[~2017-09-28 18:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-28 17:37 Tips on how to debug EFI code (iPXE) from within KVM after ipxe.efi has crashed with #GP? Konrad Rzeszutek Wilk
2017-09-28 18:04 ` [ipxe-devel] " Michael Brown
2017-09-28 18:19 ` Laszlo Ersek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bdc75bc7-9f2e-c9f9-8e78-151bdd988788@redhat.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox