From: Michael Zimmermann <sigmaepsilon92@gmail.com>
To: edk2-devel-01 <edk2-devel@lists.01.org>,
Jordan Justen <jordan.l.justen@intel.com>,
Andrew Fish <afish@apple.com>
Subject: EmulatorPkg Segmentation Fault in PeiLocatePpi
Date: Sun, 3 Dec 2017 17:14:35 +0100 [thread overview]
Message-ID: <CAN9vWD+1j9zjJbJOkJSEpdNWsS=ziQfYYKOvAjDQcmaXGz0M6A@mail.gmail.com> (raw)
I've compiled EmulatorPkg using build.sh for x86_64 under Arch Linux
with GCC 7.2.0 and get this abort:
$ ./build.sh run
Initializing workspace
/edk2/BaseTools
Loading previous configuration from /edk2/Conf/BuildEnv.sh
WORKSPACE: /edk2
EDK_TOOLS_PATH: /edk2/BaseTools
CONF_PATH: /edk2/Conf
using prebuilt tools
Reading symbols from /edk2/Build/Emulator/DEBUG_GCC5/X64/Host...(no
debugging symbols found)...done.
/edk2/EmulatorPkg/Unix/GdbRun:79: Error in sourced command file:
No symbol table is loaded. Use the "file" command.
(gdb) run
Starting program: /edk2/Build/Emulator/DEBUG_GCC5/X64/Host
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
EDK II UNIX Host Emulation Environment from http://www.tianocore.org/edk2/
BootMode 0x00
OS Emulator passing in 128 KB of temp RAM at 0x40000000 to SEC
FD loaded from ../FV/FV_RECOVERY.fd at 0x102000000 contains SEC Core
0x102000400 Loading
/edk2/Build/Emulator/DEBUG_GCC5/X64/EmulatorPkg/Sec/Sec/DEBUG/EmuSec.dll
with entry point 0x102001604
SEC Has Started
0x102002780 Loading
/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Core/Pei/PeiMain/DEBUG/PeiCore.dll
with entry point 0x10200c4e6
0x102013e80 Loading
/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei/DEBUG/ReportStatusCodeRouterPei.dll
with entry point 0x102014c6d
0x102015900 Loading
/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei/DEBUG/StatusCodeHandlerPei.dll
with entry point 0x1020172b4
PROGRESS CODE: V03020003 I0
0x10200ed80 Loading
/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Universal/PCD/Pei/Pcd/DEBUG/PcdPeim.dll
with entry point 0x102012965
Loading PEIM at 0x0010200EB40 EntryPoint=0x00102012965 PcdPeim.efi
PROGRESS CODE: V03020002 I0
Install PPI: 06E81C58-4AD7-44BC-8390-F10265F72480
Install PPI: 01F34D25-4DE2-23AD-3FF3-36353FF323F1
Install PPI: 4D8B155B-C059-4C8F-8926-06FD4331DB8A
Install PPI: A60C6B59-E459-425D-9C69-0BCC9CB27D81
PROGRESS CODE: V03020003 I0
0x102018480 Loading
/edk2/Build/Emulator/DEBUG_GCC5/X64/EmulatorPkg/BootModePei/BootModePei/DEBUG/BootModePei.dll
with entry point 0x102018d1d
Loading PEIM at 0x00102018240 EntryPoint=0x00102018D1D BootModePei.efi
PROGRESS CODE: V03020002 I0
Emu Boot Mode PEIM Loaded
Install PPI: 7408D748-FC8C-4EE6-9288-C4BEC092A410
PROGRESS CODE: V03020003 I0
0x102019780 Loading
/edk2/Build/Emulator/DEBUG_GCC5/X64/EmulatorPkg/AutoScanPei/AutoScanPei/DEBUG/AutoScanPei.dll
with entry point 0x10201a145
Loading PEIM at 0x00102019540 EntryPoint=0x0010201A145 AutoScanPei.efi
PROGRESS CODE: V03020002 I0
Emu Autoscan PEIM Loaded
PeiInstallPeiMemory MemoryBegin 0x41000000, MemoryLength 0x4000000
PROGRESS CODE: V03020003 I0
Temp Stack : BaseAddress=0x40000000 Length=0x10000
Temp Heap : BaseAddress=0x40010000 Length=0x10000
Total temporary memory: 131072 bytes.
temporary memory stack ever used: 65532 bytes.
temporary memory heap used for HobList: 5088 bytes.
temporary memory heap occupied by memory pages: 0 bytes.
Old Stack size 65536, New stack size 131072
Stack Hob: BaseAddress=0x41000000 Length=0x20000
Heap Offset = 0x1010000 Stack Offset = 0x1010000
0x44ff2240 Loading
/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Core/Pei/PeiMain/DEBUG/PeiCore.dll
with entry point 0x44ffbfa6
Program received signal SIGSEGV, Segmentation fault.
add symbol table from file
"/edk2/Build/Emulator/DEBUG_GCC5/X64/EmulatorPkg/Sec/Sec/DEBUG/EmuSec.dll"
at
.text_addr = 0x102000400
add symbol table from file
"/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Core/Pei/PeiMain/DEBUG/PeiCore.dll"
at
.text_addr = 0x102002780
add symbol table from file
"/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei/DEBUG/ReportStatusCodeRouterPei.dll"
at
.text_addr = 0x102013e80
add symbol table from file
"/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei/DEBUG/StatusCodeHandlerPei.dll"
at
.text_addr = 0x102015900
add symbol table from file
"/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Universal/PCD/Pei/Pcd/DEBUG/PcdPeim.dll"
at
.text_addr = 0x10200ed80
add symbol table from file
"/edk2/Build/Emulator/DEBUG_GCC5/X64/EmulatorPkg/BootModePei/BootModePei/DEBUG/BootModePei.dll"
at
.text_addr = 0x102018480
add symbol table from file
"/edk2/Build/Emulator/DEBUG_GCC5/X64/EmulatorPkg/AutoScanPei/AutoScanPei/DEBUG/AutoScanPei.dll"
at
.text_addr = 0x102019780
add symbol table from file
"/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Core/Pei/PeiMain/DEBUG/PeiCore.dll"
at
.text_addr = 0x44ff2240
PeiLocatePpi (PeiServices=0x4101f8c0, Guid=0x10200e530, Instance=0,
PpiDescriptor=0x0, Ppi=0x4101e5a8)
at /edk2/MdeModulePkg/Core/Pei/Ppi/Ppi.c:427
427 if ((((INT32 *)Guid)[0] == ((INT32 *)CheckGuid)[0]) &&
Apparently, two if the Ppi services entries have invalid entries:
(gdb) print/x *PrivateData->PpiData.PpiListPtrs[3].Ppi
$4 = {Flags = 0x0, Guid = 0x0, Ppi = 0x0}
(gdb) print/x *PrivateData->PpiData.PpiListPtrs[4].Ppi
$5 = {Flags = 0x0, Guid = 0x0, Ppi = 0x0}
Thanks
Michael
reply other threads:[~2017-12-03 16:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CAN9vWD+1j9zjJbJOkJSEpdNWsS=ziQfYYKOvAjDQcmaXGz0M6A@mail.gmail.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