-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EmulatorPkg x64 Segmentation fault on GCC5 toolchain on Ubuntu (Bugzilla Bug 2639) #9905
Comments
Comment 11884Date: 2020-03-28 15:25:18 +0000
As part of setting up Platform CI I am trying to run the emulator to boot to shell. See the link below for a run that fails. https://dev.azure.com/tianocore/edk2-ci-play/_build/results?buildId=4922&view=results Log messages: |
Comment 11885Date: 2020-03-28 15:58:58 +0000 This is probably user error. I need to read thru the build.sh script and get that ported into the PlatformBuild.py file. |
Comment 11888Date: 2020-03-28 17:48:57 +0000 Sean the Seg Fault means the App for the emulator crashed. That seems like a bug even if you did do some kind of wrong configuration? If you could load the core into the debugger or attach a debugger on crash we would get a stack trace of what failed. |
Comment 11889Date: 2020-03-28 18:15:49 +0000 Got it running in docker locally and this is what i got. EDK II UNIX Host Emulation Environment from http://www.tianocore.org/edk2/ 0x102000400 Loading /opt/src/edk2/Build/EmulatorX64/DEBUG_GCC5/X64/EmulatorPkg/Sec/Sec/DEBUG/EmuSec.dll with entry point 0x102001722 Program received signal SIGSEGV, Segmentation fault. |
Comment 11964Date: 2020-03-31 21:59:29 +0000 Emulator IA32 works, but X64 fail in GCC. Platform CI depends on this fix. Get more details from emulator maintainer. |
Comment 11995Date: 2020-04-01 09:52:52 +0000 Guomin: please check with Ray Ni for the soluiton. |
Comment 12103Date: 2020-04-07 22:04:16 +0000 Guomin is working on it. |
Comment 12140Date: 2020-04-08 04:28:40 +0000 *** Bug 403 has been marked as a duplicate of this bug. *** |
Comment 12351Date: 2020-04-29 06:48:10 +0000 (In reply to Sean Brogan from comment #3) Commit 192f6d4 is 13 years old, maybe this code can make better use of today's compiler improvements and optimizations, in particular regarding address alignment:
|
Comment 12409Date: 2020-05-05 23:20:12 +0000 I will check it this week. |
Comment 12452Date: 2020-05-08 04:47:55 +0000 I am afraid that i have no time for it until August, please be patient. |
Comment 13042Date: 2020-07-05 11:03:21 +0000 One workaround that got around the error for me was mentioned here: https://edk2.groups.io/g/discuss/topic/67981202#76 EmulatorPkg.dsc Disabling compiler optimization lets it load properly on my setup (Ubuntu 18.04, GCC-5, edk2 master 627d1d6) |
Comment 13284Date: 2020-07-31 20:38:52 +0000 (In reply to Brian Delgado from comment #11) It is not helpful, but still thank you. |
Comment 18355Date: 2022-02-14 01:54:18 +0000 Will check it. |
Comment 18422Date: 2022-02-21 22:46:02 +0000 Haven't duplicate it in last code. Can you double confirm it? |
Comment 18500Date: 2022-03-01 22:20:52 +0000 *** Bug 3093 has been marked as a duplicate of this bug. *** |
Comment 18525Date: 2022-03-03 04:59:23 +0000 Verify pass in my environment. Environment:
Please reopen if you still have problem *** This bug has been marked as a duplicate of bug 2668 *** |
Comment 19259Date: 2022-07-18 20:57:10 +0000 Encounter this issue and reopen it for fixing it. It is not same with https://bugzilla.tianocore.org/show_bug.cgi?id=2668, there are different symptom Guomin |
Comment 19326Date: 2022-07-23 06:51:39 +0000 Rootcaused the issue First, summarize the difference between below bugs:https://bugzilla.tianocore.org/show_bug.cgi?id=2639 2639, 403, 3093 have same symptom and are same root cause. These issue happened in switch stack in Pei Phase 2668 have different symptom and is not similar root cause. This issue happened in Dxe Phase. Second, Explain why encounter the symptom2639, 403, 3093 is because
Below detail information for your reference:Two calculation as below: Disassemble as below (Please view the Dispatcher.c to compare source and disassemble): TemporaryRamSupportPpi->TemporaryRamMigration is SwitchRam.S:SecTemporaryRamSupport and update the ebp again. If you use gdb to debug and pause before enter MigrateMemoryPages, you will see that Private beyond 0x42000000. But we haven't used or intialized it yet so it is invalid address Thanks |
Comment 19327Date: 2022-07-23 07:11:32 +0000 Sent patch for review [edk2-devel] [PATCH 1/1] MdeModulePkg/Core: Move Private calculation after TemporaryRamMigration: https://edk2.groups.io/g/devel/message/91757 Guomin |
This issue was created automatically with bugzilla2github
Bugzilla Bug 2639
Date: 2020-03-28T15:25:18+00:00
From: @spbrogan
To: guomin.jiang
CC: @ajfish, brian.delgado, f4bug, jeff.westfahl, @jyao1, nobody
See also: https://bugzilla.tianocore.org/show_bug.cgi?id=2668
Last updated: 2022-07-23T07:11:32+00:00
The text was updated successfully, but these errors were encountered: