Skip to content
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

Assertion failed 'paddingToAdd == paddingNeeded' #47094

Closed
VincentBu opened this issue Jan 18, 2021 · 4 comments · Fixed by #47350
Closed

Assertion failed 'paddingToAdd == paddingNeeded' #47094

VincentBu opened this issue Jan 18, 2021 · 4 comments · Fixed by #47350
Assignees
Labels
arch-x64 area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI os-windows
Milestone

Comments

@VincentBu
Copy link
Contributor

VincentBu commented Jan 18, 2021

Job : runtime-coreclr jitstressregs 20210117.1

Failed test :

CoreCLR windows x64 Checked jitstressregs2 @ Windows.10.Amd64.Open
        - JIT\\HardwareIntrinsics\\General\\Vector256_1\\Vector256_1_ro\\Vector256_1_ro.cmd
        - JIT\\HardwareIntrinsics\\General\\Vector128_1\\Vector128_1_ro\\Vector128_1_ro.cmd

Part of error message:

Assert failure(PID 548 [0x00000224], Thread: 972 [0x03cc]): Assertion failed 'paddingToAdd == paddingNeeded' in 'JIT.HardwareIntrinsics.General.VectorGetAndWithLowerAndUpper__GetAndWithLowerAndUpperInt16:ValidateWithResult(System.Int16[],System.Int16[],System.String):this' during 'Emit code' (IL size 291)

    File: F:\workspace\_work\1\s\src\coreclr\jit\emitxarch.cpp Line: 9417
    Image: C:\h\w\AB90094A\p\CoreRun.exe


Return code:      1

 ...  ...

Beginning scenario: RunBasicScenario
Expected: 100
Actual: -1073740286
END EXECUTION - FAILED
FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=C:\h\w\AB90094A\p
> C:\h\w\AB90094A\w\AA5E0942\e\JIT\HardwareIntrinsics\General\Vector128_1\Vector128_1_ro\Vector128_1_ro.cmd

stack trace:
at JIT_HardwareIntrinsics._General_Vector256_1_Vector256_1_ro_Vector256_1_ro_._General_Vector256_1_Vector256_1_ro_Vector256_1_ro_cmd()
@VincentBu VincentBu added os-windows arch-x64 area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI labels Jan 18, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Jan 18, 2021
@danmoseley
Copy link
Member

C:\h\w\A4CC08D0\w\AFD5092E\e>"C:\h\w\A4CC08D0\p\dotnet.exe" exec --runtimeconfig System.Collections.Tests.runtimeconfig.json --depsfile System.Collections.Tests.deps.json xunit.console.dll System.Collections.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
  Discovering: System.Collections.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Collections.Tests (found 5129 of 6996 test cases)
  Starting:    System.Collections.Tests (parallel test collections = on, max threads = 4)

Assert failure(PID 4600 [0x000011f8], Thread: 5480 [0x1568]): Assertion failed 'paddingToAdd == paddingNeeded' in 'System.Collections.Tests.LinkedList_Generic_Tests`1[Int32][System.Int32]:AddFirst_T_Tests():this' during 'Emit code' (IL size 758)

    File: F:\workspace\_work\1\s\src\coreclr\jit\emitxarch.cpp Line: 9417
    Image: C:\h\w\A4CC08D0\p\dotnet.exe

----- end Sun 01/17/2021  8:02:11.25 ----- exit code -1073740286 ----------------------------------------------------------

https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-master-a7ab659486744286af/System.Collections.Tests/console.8126f33e.log?sv=2019-07-07&se=2021-02-06T07%3A44%3A02Z&sr=c&sp=rl&sig=%2B3OjyHflp76my8yr6R5LOnyMZhn8z1g97ZEJjIiyqxE%3D

@BruceForstall BruceForstall added this to the 6.0.0 milestone Jan 19, 2021
@BruceForstall BruceForstall removed the untriaged New issue has not been triaged by the area owner label Jan 19, 2021
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jan 22, 2021
@VincentBu
Copy link
Contributor Author

Failed again in run runtime-coreclr jitstressregs 20210124.1

Failed tests:

CoreCLR windows x64 Checked jitstressregs2 @ Windows.10.Amd64.Open
       - JIT\\HardwareIntrinsics\\General\\Vector128_1\\Vector128_1_ro\\Vector128_1_ro.cmd
       - JIT\\HardwareIntrinsics\\General\\Vector256_1\\Vector256_1_ro\\Vector256_1_ro.cmd

Part of error message:

Assert failure(PID 5484 [0x0000156c], Thread: 5308 [0x14bc]): Assertion failed 'paddingToAdd == paddingNeeded' in 'JIT.HardwareIntrinsics.General.VectorGetAndWithLowerAndUpper__GetAndWithLowerAndUpperInt16:ValidateWithResult(System.Int16[],System.Int16[],System.String):this' during 'Emit code' (IL size 291)

    File: F:\workspace\_work\1\s\src\coreclr\jit\emitxarch.cpp Line: 9417
    Image: C:\h\w\B0CB09D6\p\CoreRun.exe


Return code:      1
Raw output file:      C:\h\w\B0CB09D6\w\AB300931\e\JIT\HardwareIntrinsics\Reports\JIT.HardwareIntrinsics\General\Vector256_1\Vector256_1_ro\Vector256_1_ro.output.txt
Raw output:
BEGIN EXECUTION
 "C:\h\w\B0CB09D6\p\corerun.exe" Vector256_1_ro.dll 
Beginning test case Zero.Byte at 1/24/2021 12:41:47 PM
Random seed: 20010415; set environment variable CORECLR_SEED to this value to repro

Beginning scenario: RunBasicScenario
Beginning scenario: RunReflectionScenario

Ending test case at 1/24/2021 12:41:47 PM
Beginning test case Zero.Double at 1/24/2021 12:41:47 PM
Random seed: 20010415; set environment variable CORECLR_SEED to this value to repro

... ...

Beginning scenario: RunBasicScenario
Beginning scenario: RunReflectionScenario

Ending test case at 1/24/2021 12:41:52 PM
Beginning test case GetAndWithLowerAndUpper.Int16 at 1/24/2021 12:41:52 PM
Random seed: 20010415; set environment variable CORECLR_SEED to this value to repro

Beginning scenario: RunBasicScenario
Expected: 100
Actual: -1073740286
END EXECUTION - FAILED
FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=C:\h\w\B0CB09D6\p
> C:\h\w\B0CB09D6\w\AB300931\e\JIT\HardwareIntrinsics\General\Vector256_1\Vector256_1_ro\Vector256_1_ro.cmd

stack trace:
   at JIT_HardwareIntrinsics._General_Vector256_1_Vector256_1_ro_Vector256_1_ro_._General_Vector256_1_Vector256_1_ro_Vector256_1_ro_cmd()
``

@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jan 26, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Feb 27, 2021
@mateoatr
Copy link
Contributor

mateoatr commented Jun 30, 2021

It seems that we are hitting this assertion again on win x86 runtime-coreclr jitstressregs 20210629.1 Oops, didn't filter branch, this was on a PR.

@kunalspathak
Copy link
Member

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x64 area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI os-windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants
@mateoatr @danmoseley @BruceForstall @kunalspathak @VincentBu and others