Skip to content

[Bug]: Reenable VariableRuntimeDxeUnitTest for GCC #1302

@apop5

Description

@apop5

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

Metadata

Metadata

Assignees

Labels

state:needs-triageNeeds to triaged to determine next stepsstate:staleHas not been updated in a long timetype:bugSomething isn't workingurgency:lowLittle to no impact

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions