Skip to content

JITed struct marshaler IL stub is missing a GC reference during codegen #33950

@v-haren

Description

@v-haren

test failed in job: runtime-coreclr gcstress-extra 20200321.1

Error message

Return code: 1
Raw output file: C:\h\w\A2980975\w\A57E090D\e\Interop\PInvoke\Reports\Interop.PInvoke\BestFitMapping\LPStr\Pinvoke_False_True\Pinvoke_False_True\Pinvoke_False_True.output.txt
Raw output:
BEGIN EXECUTION
"C:\h\w\A2980975\p\corerun.exe" Pinvoke_False_True.dll 
Test Failure: TestLibrary.AssertTestException: Assert.Fail: Expected 'System.ArgumentException' to be thrown, however 'System.NullReferenceException' was thrown. [Error] Location tlpsbst3
at TestLibrary.Assert.HandleFail(String assertionName, String message) in F:\workspace\_work\1\s\src\coreclr\tests\src\Common\CoreCLRTestLibrary\Assertion.cs:line 735
at TestLibrary.Assert.Throws[T](Action action, String message, AssertThrowsOptions options) in F:\workspace\_work\1\s\src\coreclr\tests\src\Common\CoreCLRTestLibrary\Assertion.cs:line 191
at BFM_LPStrMarshaler.testLPStrBufferStruct() in F:\workspace\_work\1\s\src\coreclr\tests\src\Interop\PInvoke\BestFitMapping\LPStr\Pinvoke_False_True\Pinvoke_False_True.cs:line 206
at BFM_LPStrMarshaler.runTest() in F:\workspace\_work\1\s\src\coreclr\tests\src\Interop\PInvoke\BestFitMapping\LPStr\Pinvoke_False_True\Pinvoke_False_True.cs:line 314
at BFM_LPStrMarshaler.Main() in F:\workspace\_work\1\s\src\coreclr\tests\src\Interop\PInvoke\BestFitMapping\LPStr\Pinvoke_False_True\Pinvoke_False_True.cs:line 333
xx This is the initial test string. 
yy This is the initial test string. 
zz This is the initial test string. 
Expected: 100
Actual: 101
END EXECUTION - FAILED
FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=C:\h\w\A2980975\p
> C:\h\w\A2980975\w\A57E090D\e\Interop\PInvoke\BestFitMapping\LPStr\Pinvoke_False_True\Pinvoke_False_True\Pinvoke_False_True.cmd
Expected: True
Actual: False


Stack trace
   at Interop_PInvoke._BestFitMapping_LPStr_Pinvoke_False_True_Pinvoke_False_True_Pinvoke_False_True_._BestFitMapping_LPStr_Pinvoke_False_True_Pinvoke_False_True_Pinvoke_False_True_cmd() in F:\workspace\_work\1\s\artifacts\tests\coreclr\Windows_NT.x64.Checked\TestWrappers\Interop.PInvoke\Interop.PInvoke.XUnitWrapper.cs:line 5281

Metadata

Metadata

Assignees

No one assigned

    Labels

    GCStressarea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions