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

Test failure: baseservices/threading/generics/WaitCallback/thread17/thread17.sh #36971

Closed
v-haren opened this issue May 25, 2020 · 7 comments
Closed
Assignees
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI GCStress
Milestone

Comments

@v-haren
Copy link

v-haren commented May 25, 2020

failed in job: runtime-coreclr gcstress-extra 20200524.1

Error message

Assert failure(PID 11756 [0x00002dec], Thread: 11976 [0x2ec8]): IsExecutingOnAltStack() || (curSP <= m_pFrame && m_pFrame < m_CacheStackBase) || m_pFrame == (Frame*) -1
 File: /__w/1/s/src/coreclr/src/vm/threads.h Line: 1859
 Image: /root/helix/work/correlation/corerun

/root/helix/work/workitem/baseservices/threading/generics/WaitCallback/thread17/thread17.sh: line 317: 11756 Aborted $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"

Return code: 1
Raw output file: /root/helix/work/workitem/baseservices/threading/Reports/baseservices.threading/generics/WaitCallback/thread17/thread17.output.txt
Raw output:
BEGIN EXECUTION
/root/helix/work/correlation/corerun thread17.dll ''
Writing minidump to file /home/helixbot/dotnetbuild/dumps/coredump.11756.dmp
Written 67555328 bytes (16493 pages) to core file
Dump successfully written
Expected: 100
Actual: 134
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=/root/helix/work/correlation
> /root/helix/work/workitem/baseservices/threading/generics/WaitCallback/thread17/thread17.sh
Expected: True
Actual: False


Stack trace
   at baseservices_threading._generics_WaitCallback_thread17_thread17_._generics_WaitCallback_thread17_thread17_sh() in /__w/1/s/artifacts/tests/coreclr/Linux.arm.Checked/TestWrappers/baseservices.threading/baseservices.threading.XUnitWrapper.cs:line 12265

category:correctness
theme:gc-stress
skill-level:expert
cost:medium

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.Threading untriaged New issue has not been triaged by the area owner labels May 25, 2020
@BruceForstall BruceForstall added this to the 5.0 milestone May 26, 2020
@BruceForstall BruceForstall removed the untriaged New issue has not been triaged by the area owner label May 26, 2020
@BruceForstall
Copy link
Member

Failure mode: CoreCLR Linux arm Checked gcstress0xc_zapdisable_heapverify1

@AndyAyersMS AndyAyersMS self-assigned this Jun 5, 2020
@AndyAyersMS
Copy link
Member

Seems likely to be the same issue as in #36636, so will assign to myself.

@v-haren
Copy link
Author

v-haren commented Jun 8, 2020

failed again in job: runtime-coreclr gcstress-extra 20200607.1

failed test: baseservices/threading/generics/WaitCallback/thread28/thread28.sh

Error message

Assert failure(PID 2658 [0x00000a62], Thread: 2915 [0x0b63]): IsExecutingOnAltStack() || (curSP <= m_pFrame && m_pFrame < m_CacheStackBase) || m_pFrame == (Frame*) -1
 File: /__w/1/s/src/coreclr/src/vm/threads.h Line: 1859
 Image: /root/helix/work/correlation/corerun

/root/helix/work/workitem/baseservices/threading/generics/WaitCallback/thread28/thread28.sh: line 317: 2658 Aborted $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"

Return code: 1
Raw output file: /root/helix/work/workitem/baseservices/threading/Reports/baseservices.threading/generics/WaitCallback/thread28/thread28.output.txt
Raw output:
BEGIN EXECUTION
/root/helix/work/correlation/corerun thread28.dll ''
Writing minidump to file /home/helixbot/dotnetbuild/dumps/coredump.2658.dmp
Written 67571712 bytes (16497 pages) to core file
Dump successfully written
Expected: 100
Actual: 134
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=/root/helix/work/correlation
> /root/helix/work/workitem/baseservices/threading/generics/WaitCallback/thread28/thread28.sh
Expected: True
Actual: False


Stack trace
   at baseservices_threading._generics_WaitCallback_thread28_thread28_._generics_WaitCallback_thread28_thread28_sh() in /__w/1/s/artifacts/tests/coreclr/Linux.arm.Checked/TestWrappers/baseservices.threading/baseservices.threading.XUnitWrapper.cs:line 13332

@AndyAyersMS
Copy link
Member

Now seems to be failing most consistently on arm32, so will see if I can get a repro there.

@AndyAyersMS
Copy link
Member

Suspect the arm32 failures are the jit-stress induced profiler leave hook not properly maintaining GC liveness of the return value.

@CarolEidt I am thinking #37679 may be a contributing factor, as the return value is temporarily held in r2 around the profiler callback. Failing method is String.Format.

000086  4602           mov     r2, r0
000088  F245 4011      movw    r0, 0x5411       +r2
00008C  F6CE 20E3      movt    r0, 0xeae3       -r0
000090  F245 4C11      movw    r12, 0x5411
000094  F6CE 2CE3      movt    r12, 0xeae3
000098  47E0           blx     r12              // CORINFO_HELP_PROF_FCN_LEAVE
00009A  4610           mov     r0, r2           -r2
00009C  F245 6C78      movw    r12, 0x5678      +r0  ------------------ fails here
0000A0  F2C1 2C34      movt    r12, 0x1234      
0000A4  F8DD E024      ldr     lr, [sp+0x24]    // [V06 GsCookie]
0000A8  45F4           cmp     r12, lr
0000AA  D004           beq     SHORT G_M58996_IG47
0000AC  F24E 7C1D      movw    r12, 0xe71d
0000B0  F2CF 4CCA      movt    r12, 0xf4ca
0000B4  47E0           blx     r12              // CORINFO_HELP_FAIL_FAST

G_M58996_IG47:
0000B6  B00A           add     sp, 40

Runtime complains r0 is an invalid GC ref at that point.

cc @BruceForstall

@AndyAyersMS AndyAyersMS added area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI and removed area-System.Threading labels Jul 1, 2020
@v-haren
Copy link
Author

v-haren commented Jul 6, 2020

also failed in job: runtime-coreclr jitstress 20200704.1

failed test: baseservices/threading/paramthreadstart/ThreadStartOperations_1/ThreadStartOperations_1.sh

Error message

Assert failure(PID 1066 [0x0000042a], Thread: 1088 [0x0440]): IsExecutingOnAltStack() || (curSP <= m_pFrame && m_pFrame < m_CacheStackBase) || m_pFrame == (Frame*) -1
 File: /__w/1/s/src/coreclr/src/vm/threads.h Line: 1859
 Image: /root/helix/work/correlation/corerun

../ThreadStartOperations/ThreadStartOperations.sh: line 318: 1066 Aborted $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"

Return code: 1
Raw output file: /root/helix/work/workitem/baseservices/threading/Reports/baseservices.threading/paramthreadstart/ThreadStartOperations_1/ThreadStartOperations_1.output.txt
Raw output:
BEGIN EXECUTION
export CDPATH=/root/helix/work/workitem/baseservices/threading/paramthreadstart/ThreadStartOperations_1
/usr/bin/env bash ../ThreadStartOperations/ThreadStartOperations.sh 'min'
BEGIN EXECUTION
/root/helix/work/correlation/corerun ThreadStartOperations.dll 'min'
Writing minidump to file /home/helixbot/dotnetbuild/dumps/coredump.1066.dmp
Written 77410304 bytes (18899 pages) to core file
Dump successfully written
Expected: 100
Actual: 134
END EXECUTION - FAILED
Expected: 0
Actual: 1
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=/root/helix/work/correlation
> /root/helix/work/workitem/baseservices/threading/paramthreadstart/ThreadStartOperations_1/ThreadStartOperations_1.sh
Expected: True
Actual: False


Stack trace
   at baseservices_threading._paramthreadstart_ThreadStartOperations_1_ThreadStartOperations_1_._paramthreadstart_ThreadStartOperations_1_ThreadStartOperations_1_sh() in /__w/1/s/artifacts/tests/coreclr/Linux.arm.Checked/TestWrappers/baseservices.threading/baseservices.threading.XUnitWrapper.cs:line 27882

@AndyAyersMS
Copy link
Member

These haven't failed in the past 3 weekend runs, so closing.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI GCStress
Projects
None yet
Development

No branches or pull requests

4 participants