Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

[RyuJIT] node ILCompiler.DependencyAnalysis.GCStaticsNode is not marked when ILCompiler.DependencyAnalysis.RyuJitNodeFactory is MarkingComplete #3211

@sergign60

Description

@sergign60

Compiling a simple Tizen application on Ubuntu causes assertion in CoreRT/RyuJIT because the node
ILCompiler.DependencyAnalysis.GCStaticsNode is not marked when the factory ILCompiler.DependencyAnalysis.RyuJitNodeFactory is MarkingComplete

The stack trace is

            at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
            at System.Environment.get_StackTrace()
            at System.Diagnostics.Debug.Assert(Boolean condition, String message, String detailMessage)
            at ILCompiler.DependencyAnalysis.ExternalReferencesTableNode.GetIndex(ISymbolNode symbol, Int32 delta)
            at ILCompiler.DependencyAnalysis.ReflectionFieldMapNode.GetData(NodeFactory factory, Boolean relocsOnly)
            at ILCompiler.DependencyAnalysis.ObjectWriter.EmitObject(String objectFilePath, IEnumerable`1 nodes, NodeFactory factory, IObjectDumper dumper)
            at ILCompiler.RyuJitCompilation.CompileInternal(String outputFile, ObjectDumper dumper)
            at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(String outputFile, ObjectDumper dumper)
            at ILCompiler.Program.Run(String[] args)
            at ILCompiler.Program.Main(String[] args)
         Unhandled Exception: System.Diagnostics.Debug+DebugAssertException: 
         
            at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
            at System.Environment.get_StackTrace()
            at System.Diagnostics.Debug.Assert(Boolean condition, String message, String detailMessage)
            at ILCompiler.DependencyAnalysis.ExternalReferencesTableNode.GetIndex(ISymbolNode symbol, Int32 delta)
            at ILCompiler.DependencyAnalysis.ReflectionFieldMapNode.GetData(NodeFactory factory, Boolean relocsOnly)
            at ILCompiler.DependencyAnalysis.ObjectWriter.EmitObject(String objectFilePath, IEnumerable`1 nodes, NodeFactory factory, IObjectDumper dumper)
            at ILCompiler.RyuJitCompilation.CompileInternal(String outputFile, ObjectDumper dumper)
            at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(String outputFile, ObjectDumper dumper)
            at ILCompiler.Program.Run(String[] args)
            at ILCompiler.Program.Main(String[] args)
            at System.Diagnostics.Debug.UnixDebugLogger.ShowAssertDialog(String stackTrace, String message, String detailMessage)
            at ILCompiler.DependencyAnalysis.ExternalReferencesTableNode.GetIndex(ISymbolNode symbol, Int32 delta)
            at ILCompiler.DependencyAnalysis.ReflectionFieldMapNode.GetData(NodeFactory factory, Boolean relocsOnly)
            at ILCompiler.DependencyAnalysis.ObjectWriter.EmitObject(String objectFilePath, IEnumerable`1 nodes, NodeFactory factory, IObjectDumper dumper)
            at ILCompiler.RyuJitCompilation.CompileInternal(String outputFile, ObjectDumper dumper)
            at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(String outputFile, ObjectDumper dumper)
            at ILCompiler.Program.Run(String[] args)
            at ILCompiler.Program.Main(String[] args)

To reproduce this failure unarchive the attached file into the directory corert/tests/src/Simple as one more "Simple" test and run the build.sh script.

Uploading XForms.TizenMobile.tar.gz…

The used version of corert is ea7364d Merge pull request #3208 from shrah/master

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions