Skip to content

Superpmi asmdiffs for Linux x64 fails with various failures #47242

Closed

Description

@kunalspathak

Around 22195 failures during asmdiffs of libraries.crossgen and libraries.pmi collection. There are some methods that pass compilation and I can see jit-analyze result of them.

  • libraries.crossgen
D:\git\runtime>D:\git\runtime\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root\superpmi.exe  E:\ehwritethru\singledef\clrjit_unix_x64_x64.dll D:\git\runtime\artifacts\spmi\repro.windows.x64.Checked.23\repro-97603.mc
Using jit(E:\ehwritethru\singledef\clrjit_unix_x64_x64.dll) with input (D:\git\runtime\artifacts\spmi\repro.windows.x64.Checked.23\repro-97603.mc)
 indexCount=-1 ()
Jit startup took 7.647100ms
ERROR: Exception thrown: SuperPMI assertion 'GetIntrinsicID != nullptr' failed ("Didn't find anything for 00007F4E5639BD48")
ERROR: main method 1 of size 276 failed to load and compile correctly.
Loaded 1  Jitted 1  FailedCompile 1 Excluded 0
Total time: 13.391300ms

D:\git\runtime>D:\git\runtime\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root\superpmi.exe  E:\ehwritethru\singledef\clrjit_unix_x64_x64.dll D:\git\runtime\artifacts\spmi\repro.windows.x64.Checked.23\repro-97610.mc
Using jit(E:\ehwritethru\singledef\clrjit_unix_x64_x64.dll) with input (D:\git\runtime\artifacts\spmi\repro.windows.x64.Checked.23\repro-97610.mc)
 indexCount=-1 ()
Jit startup took 7.793400ms
ERROR: Exception thrown: SuperPMI assertion 'GetIntrinsicID->GetIndex(CastHandle(method)) != -1' failed ("Didn't find 00007F4E5639BD48")
ERROR: main method 1 of size 258 failed to load and compile correctly.
Loaded 1  Jitted 1  FailedCompile 1 Excluded 0
Total time: 12.885300ms
  • libraries.pmi
D:\git\runtime>D:\git\runtime\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root\superpmi.exe  E:\ehwritethru\singledef\clrjit_unix_x64_x64.dll D:\git\runtime\artifacts\spmi\repro.windows.x64.Checked.24\repro-103317.mc
Using jit(E:\ehwritethru\singledef\clrjit_unix_x64_x64.dll) with input (D:\git\runtime\artifacts\spmi\repro.windows.x64.Checked.24\repro-103317.mc)
 indexCount=-1 ()
Jit startup took 6.672300ms
ERROR: Exception thrown: SuperPMI assertion '(AsCorInfoType != nullptr) && (AsCorInfoType->GetIndex(CastHandle(cls)) != -1)' failed ("Didn't find 00007F4E56390680.  Probable cached value in JIT issue")
ERROR: main method 1 of size 220 failed to load and compile correctly.
Loaded 1  Jitted 1  FailedCompile 1 Excluded 0
Total time: 9.828800ms

D:\git\runtime>D:\git\runtime\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root\superpmi.exe  E:\ehwritethru\singledef\clrjit_unix_x64_x64.dll D:\git\runtime\artifacts\spmi\repro.windows.x64.Checked.24\repro-105963.mc
Using jit(E:\ehwritethru\singledef\clrjit_unix_x64_x64.dll) with input (D:\git\runtime\artifacts\spmi\repro.windows.x64.Checked.24\repro-105963.mc)
 indexCount=-1 ()
Jit startup took 6.164900ms
ERROR: Exception thrown: SuperPMI assertion 'GetArgType->GetIndex(key) != -1' failed ("Didn't find 00007f4e56503020, 00007f4e53be9f41.  probably a missing exception in getArgType")
ERROR: main method 1 of size 1683 failed to load and compile correctly.
Loaded 1  Jitted 1  FailedCompile 1 Excluded 0
Total time: 11.376100ms

D:\git\runtime>D:\git\runtime\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root\superpmi.exe  E:\ehwritethru\singledef\clrjit_unix_x64_x64.dll D:\git\runtime\artifacts\spmi\repro.windows.x64.Checked.24\repro-113542.mc
Using jit(E:\ehwritethru\singledef\clrjit_unix_x64_x64.dll) with input (D:\git\runtime\artifacts\spmi\repro.windows.x64.Checked.24\repro-113542.mc)
 indexCount=-1 ()
Jit startup took 5.913300ms
ERROR: Exception thrown: SuperPMI assertion 'GetIntrinsicID != nullptr' failed ("Didn't find anything for 00007F4E5639BD48")
ERROR: main method 1 of size 44 failed to load and compile correctly.
Loaded 1  Jitted 1  FailedCompile 1 Excluded 0
Total time: 9.514200ms

Activity

  1. ghost added
    area-CodeGen-coreclr
    on Jan 20, 2021
  2. ghost added
    untriaged
    on Jan 20, 2021
  3. kunalspathak commented on Jan 20, 2021

    @kunalspathak
    ContributorAuthor

    @dotnet/jit-contrib , @BruceForstall

  4. BruceForstall commented on Jan 20, 2021

    @BruceForstall
    Contributor

    Did you run with the Linux MCH file?

  5. BruceForstall commented on Jan 20, 2021

    @BruceForstall
    Contributor

    I tried and didn't see a failure.

    Note that there was a recent change to the JIT-EE interface that did not update the GUID, so you might need to make sure you are up-to-date with the version of the MCH files collected this weekend.

  6. kunalspathak commented on Jan 20, 2021

    @kunalspathak
    ContributorAuthor

    Did you run with the Linux MCH file?

    Yes.

    Note that there was a recent change to the JIT-EE interface that did not update the GUID, so you might need to make sure you are up-to-date with the version of the MCH files collected this weekend.

    I tried with f556df6c-b9c7-479c-b895-8e1f1959fe59. Recent superpmi libraries.crossgen collection failed to collect for couple of partitions of Linux x64/arm/arm64.

    I tried and didn't see a failure.

    Could you confirm how you ran it? May be something that I am doing wrong? Here is how I am running it:

    D:\git\runtime>set compl
    COMPlus_AltJitName=protononjit
    COMPlus_TieredCompilation=0
    
    D:\git\runtime>python %_dn_reporoot%\src\coreclr\scripts\superpmi.py asmdiffs -target_os Linux -target_arch x64 -base_jit_path E:\ehwritethru\noehwrite\clrjit_unix_x64_x64.dll -diff_jit_path E:\ehwritethru\singledef\clrjit_unix_x64_x64.dll -jit_name clrjit_unix_x64_x64.dll

    Also, I verified that it does download the right mch files

    Using MCH files:
      D:\git\runtime\artifacts\spmi\mch\f556df6c-b9c7-479c-b895-8e1f1959fe59.Linux.x64\libraries.crossgen.Linux.x64.checked.mch
      D:\git\runtime\artifacts\spmi\mch\f556df6c-b9c7-479c-b895-8e1f1959fe59.Linux.x64\libraries.pmi.Linux.x64.checked.mch
      D:\git\runtime\artifacts\spmi\mch\f556df6c-b9c7-479c-b895-8e1f1959fe59.Linux.x64\tests.pmi.Linux.x64.checked.mch
  7. BruceForstall commented on Jan 20, 2021

    @BruceForstall
    Contributor

    I ran:

    py -3 src\coreclr\scripts\superpmi.py asmdiffs -target_arch x64 -target_os Linux -filter libraries.pmi -jit_name clrjit_unix_x64_x64.dll -base_jit_path c:\gh\runtime\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root\clrjit_unix_x64_x64.dll
    

    It used:

    https://clrjit2.blob.core.windows.net/superpmi/collections/f556df6c-b9c7-479c-b895-8e1f1959fe59/Linux/x64/libraries.pmi.Linux.x64.checked.mch.zip

  8. kunalspathak commented on Jan 20, 2021

    @kunalspathak
    ContributorAuthor

    That seems right. Where are you running superpmi.py? On Windows or Linux? I am running on my dev box (windows).

  9. removed
    untriaged
    on Jan 20, 2021
  10. added this to the 6.0.0 milestone on Jan 20, 2021
  11. BruceForstall commented on Jan 20, 2021

    @BruceForstall
    Contributor

    I was running on Windows/x64

  12. kunalspathak commented on Apr 1, 2021

    @kunalspathak
    ContributorAuthor

    I do not see this issue anymore.

  13. ghost locked as resolved and limited conversation to collaborators on May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclr

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions