public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* EmulatorPkg Segmentation Fault in PeiLocatePpi
@ 2017-12-03 16:14 Michael Zimmermann
  0 siblings, 0 replies; only message in thread
From: Michael Zimmermann @ 2017-12-03 16:14 UTC (permalink / raw)
  To: edk2-devel-01, Jordan Justen, Andrew Fish

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-03 16:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-03 16:14 EmulatorPkg Segmentation Fault in PeiLocatePpi Michael Zimmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox