From: Jordan Justen <jordan.l.justen@intel.com>
To: afish@apple.com, jordan.l.justen@intel.com, ruiyu.ni@intel.com,
Liu Yu <pedroa.liu@outlook.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: EmulatorPkg Unix Host Segmentation fault.
Date: Sun, 18 Nov 2018 01:27:03 -0800 [thread overview]
Message-ID: <154253322290.3729.10762860453718631884@jljusten-skl> (raw)
In-Reply-To: <TY2PR02MB28317A7BB9ADD94DB5B385A98FDF0@TY2PR02MB2831.apcprd02.prod.outlook.com>
On 2018-11-17 20:51:11, Liu Yu wrote:
> OS: Ubuntu
>
> Toolchain:GCC48
I don't have gcc-4.8, so I couldn't reproduce the issue, but I wonder
if this branch can fix the issue for you?
https://github.com/jljusten/edk2/tree/emulator-temp-ram
You can fetch this branch locally to a branch named `test` with a
command like this:
$ git fetch --no-tags https://github.com/jljusten/edk2.git emulator-temp-ram:test
Then checkout the `test` branch to try it.
First, there is some patches to cleanup Sec, but then I added a patch:
53a432e149 "EmulatorPkg/Sec: Disable optimizations for TemporaryRamMigration function"
Which I hope might help in your case.
-Jordan
>
> Issue Description :
>
> Program received signal SIGSEGV, Segmentation fault.
> at /home/pedroa/workspace/orign/edkcrb/MdeModulePkg/Core/Pei/Memory/MemoryServices.c:129
> 129 Private->MemoryPages.Size = (UINTN) (Private->HobList.HandoffInformationTable->EfiMemoryTop -
>
>
> if the GCC optimization option is used not -O0 so the "rbp" register will be used as "general register"
>
> in the SecTemporaryRamSupport function as below, this function will modify the rbp (as general register not stack base address pointer)value that result in program crash.
>
> ASM_PFX(SecTemporaryRamSupport):
> // Adjust callers %rbp to account for stack move
> subq %rdx, %rbp // Calc offset of %rbp in Temp Memory
> addq %r8, %rbp // add in permanent base to offset
>
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
next prev parent reply other threads:[~2018-11-18 9:27 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-18 4:51 EmulatorPkg Unix Host Segmentation fault Liu Yu
2018-11-18 9:27 ` Jordan Justen [this message]
2018-11-18 12:07 ` Liu Yu
2018-11-18 22:37 ` Andrew Fish
2018-11-19 1:13 ` Jordan Justen
2018-11-19 19:16 ` Jordan Justen
2018-11-19 21:22 ` Andrew Fish
2018-11-19 22:12 ` Laszlo Ersek
2018-11-19 23:39 ` Andrew Fish
2018-11-19 22:29 ` Jordan Justen
2018-11-20 0:54 ` Andrew Fish
2018-11-20 8:57 ` Laszlo Ersek
2019-02-16 7:29 ` Ni, Ray
2019-02-16 7:40 ` Ni, Ray
2019-02-16 20:23 ` Andrew Fish
2019-02-16 7:43 ` Ni, Ray
2019-02-16 8:05 ` Ni, Ray
2019-02-16 9:11 ` Jordan Justen
2019-02-18 2:25 ` Ni, Ray
2019-02-18 2:45 ` Jordan Justen
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=154253322290.3729.10762860453718631884@jljusten-skl \
--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