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

Thousands of tests failed with Code generation failure for method #50631

Closed
VincentBu opened this issue Apr 2, 2021 · 2 comments
Closed

Thousands of tests failed with Code generation failure for method #50631

VincentBu opened this issue Apr 2, 2021 · 2 comments
Labels
arch-arm64 arch-x64 area-crossgen2-coreclr os-linux Linux OS (any supported distro) os-mac-os-x macOS aka OSX os-windows untriaged New issue has not been triaged by the area owner

Comments

@VincentBu
Copy link
Contributor

Run: runtime-coreclr crossgen2 20210331.4

One of error message:

/private/tmp/helix/working/B26409B5/w/A4060956/e/baseservices/callconvs/TestCallingConventions/TestCallingConventions.sh: line 254: -r:/private/tmp/helix/working/B26409B5/w/A4060956/e/baseservices/callconvs/TestCallingConventions/IL-CG2/.dll: No such file or directory
rm: /private/tmp/helix/working/B26409B5/w/A4060956/e/baseservices/callconvs/TestCallingConventions/CallFunctionPointers.dll.rsp: No such file or directory
rm: /private/tmp/helix/working/B26409B5/w/A4060956/e/baseservices/callconvs/TestCallingConventions/TestCallingConventions.dll.rsp: No such file or directory
Unhandled exception. System.AggregateException: One or more errors occurred. (Code generation failed for method '[TestCallingConventions]Program+<>c__DisplayClass1_0.<BlittableFunctionPointers>b__0()') (Code generation failed for method '[TestCallingConventions]Program+<>c__DisplayClass2_0.<NonblittableFunctionPointers>b__0()')
 ---> ILCompiler.CodeGenerationFailedException: Code generation failed for method '[TestCallingConventions]Program+<>c__DisplayClass1_0.<BlittableFunctionPointers>b__0()'
 ---> System.NullReferenceException: Object reference not set to an instance of an object.
 at ILCompiler.ReadyToRunCompilationModuleGroupBase.VersionsWithType(TypeDesc typeDesc)
 at ILCompiler.DependencyAnalysis.ReadyToRun.ModuleTokenResolver.AddModuleTokenForType(TypeDesc type, ModuleToken token)
 at Internal.JitInterface.CorInfoImpl.resolveToken(CORINFO_RESOLVED_TOKEN& pResolvedToken)
 at Internal.JitInterface.CorInfoImpl._resolveToken(IntPtr thisHandle, IntPtr ppException, CORINFO_RESOLVED_TOKEN* pResolvedToken)
 --- End of inner exception stack trace ---
 at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(IMethodNode methodCodeNodeNeedingCode, MethodIL methodIL)
 at Internal.JitInterface.CorInfoImpl.CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logger)
 at ILCompiler.ReadyToRunCodegenCompilation.<ComputeDependencyNodeDependencies>b__36_0(DependencyNodeCore1 dependency)
 at System.Threading.Tasks.Parallel.<>c__DisplayClass33_02.<ForEachWorker>b__0(Int32 i)
 at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
 at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
 at System.Threading.Tasks.TaskReplicator.Replica1.ExecuteAction(Boolean& yieldedBeforeCompletion)
 at System.Threading.Tasks.TaskReplicator.Replica.Execute()
 --- End of inner exception stack trace ---
 at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure)
 at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally)
--- End of stack trace from previous location ---
 at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException)
 at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally)
 at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList1 list, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally)
 at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action`2 bodyWi

Stack trace
   at baseservices_callconvs._TestCallingConventions_TestCallingConventions_._TestCallingConventions_TestCallingConventions_sh()

@VincentBu VincentBu added arch-arm64 os-linux Linux OS (any supported distro) os-mac-os-x macOS aka OSX os-windows arch-x64 labels Apr 2, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added area-crossgen2-coreclr untriaged New issue has not been triaged by the area owner labels Apr 2, 2021
@BruceForstall
Copy link
Member

@dotnet/crossgen-contrib

@trylek
Copy link
Member

trylek commented Apr 2, 2021

I believe this is a dupe of #50520; JanK fixed it yesterday with #50539.

@trylek trylek closed this as completed Apr 11, 2021
@ghost ghost locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-arm64 arch-x64 area-crossgen2-coreclr os-linux Linux OS (any supported distro) os-mac-os-x macOS aka OSX os-windows untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

3 participants