Skip to content

[Bug]: Reenable VariableRuntimeDxeUnitTest for GCC #1302

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

Open
1 task done
apop5 opened this issue Mar 12, 2025 · 1 comment
Open
1 task done

[Bug]: Reenable VariableRuntimeDxeUnitTest for GCC #1302

apop5 opened this issue Mar 12, 2025 · 1 comment
Assignees
Labels
state:needs-triage Needs to triaged to determine next steps type:bug Something isn't working urgency:low Little to no impact

Comments

@apop5
Copy link
Contributor

apop5 commented Mar 12, 2025

Is there an existing issue for this?

  • I have searched existing issues

Current Behavior

AddressSanitizer: stack-buffer-overflow on address 0x7fc8cda02078 at pc 0x00000045929e bp 0x7ffd577b2390 sp 0x7ffd577b2380
READ of size 8 at 0x7fc8cda02078 thread T0
0x45929d in BasePrintLibSPrintMarker mu_basecore/MdePkg/Library/BasePrintLib/PrintLibInternal.c:1037
0x45ad55 in UnicodeVSPrint mu_basecore/MdePkg/Library/BasePrintLib/PrintLib.c:73
0x403550 in HostTestRecordAssertion mu_basecore/MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/SctShim.c:221
0x40c4a1 in GetVariableConfTestSub1 mu_basecore/MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/BlackBoxTest/VariableServicesBBTestConformance.c:531
0x40b23f in GetVariableConfTest mu_basecore/MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/BlackBoxTest/VariableServicesBBTestConformance.c:294
0x40519e in GetVariableConfTestWrapper mu_basecore/MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/VariableRuntimeDxeUnitTest.c:390
0x4b0299 in CmockaUnitTestFunctionRunner mu_basecore/UnitTestFrameworkPkg/Library/UnitTestLib/RunTestsCmocka.c:56
0x49835a in cmocka_run_one_test_or_fixture mu_basecore/UnitTestFrameworkPkg/Library/CmockaLib/cmocka/src/cmocka.c:2890

Expected Behavior

Unit Test should be able to execute under linux using gcc

Steps To Reproduce

Remove work around in MdeModulePkg/Test/MdeModulePkgHostTest.dsc (!if "MSFT" in $(FAMILY))
stuart_ci_build -c .pytool/CISettings.py -t X64 -a NOOPT TOOL_CHAIN_TAG=GCC -p MdeModulePkg

Build Environment

- OS(s): Ubuntu
- Tool Chain(s): GCC
- Targets Impacted: NOOPT

Version Information

dev/202502

Urgency

Low

Are you going to fix this?

I will fix it

Do you need maintainer feedback?

No maintainer feedback needed

Anything else?

No response

@apop5 apop5 added state:needs-triage Needs to triaged to determine next steps type:bug Something isn't working labels Mar 12, 2025
@apop5
Copy link
Contributor Author

apop5 commented Mar 12, 2025

#1301

@github-actions github-actions bot added the urgency:low Little to no impact label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:needs-triage Needs to triaged to determine next steps type:bug Something isn't working urgency:low Little to no impact
Projects
None yet
Development

No branches or pull requests

1 participant