🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@aldelaro5
Copy link

The steps seems to be to undo the hook, then reapplying it with an empty one while being in a detoured method.

I put a 5 seconds timeout so the CI doesn't stall out and just fails.

The steps seems to be to undo the hook, then reapplying it with an empty one while being in a detoured method
@github-actions
Copy link
Contributor

Test Results

Total Skipped Passed Failed
Unique 283 0 282 1
Total 26028 184 25752 92

Failing runs

❌ MonoMod.UnitTest.ILHookTest.TestUndoDeadlock

Class Name: MonoMod.UnitTest.ILHookTest | Method Name: TestUndoDeadlock | This test is always failing.

Failures present in
  • test-results .NET 10.0 arm64 on Linux ARM64 (PGO Off)/TestResults/testresults.ubuntu-24.04-arm.10.0.arm64.trx
  • test-results .NET 10.0 arm64 on Linux ARM64 (PGO On)/TestResults/testresults.ubuntu-24.04-arm.10.0.arm64.trx
  • test-results .NET 10.0 arm64 on MacOS 14 (PGO Off)/TestResults/testresults.macos-14.10.0.arm64.trx
  • test-results .NET 10.0 arm64 on MacOS 14 (PGO On)/TestResults/testresults.macos-14.10.0.arm64.trx
  • test-results .NET 10.0 x64 on Linux (PGO Off)/TestResults/testresults.ubuntu-latest.10.0.x64.trx
  • test-results .NET 10.0 x64 on Linux (PGO On)/TestResults/testresults.ubuntu-latest.10.0.x64.trx
  • test-results .NET 10.0 x64 on Linux musl (PGO Off)/TestResults/testresults.ubuntu-latest.10.0.x64.trx
    and 85 more
❌ test-results .NET 10.0 x64 on Windows (PGO On)/TestResults/testresults.windows-latest.10.0.x64.trx MonoMod.UnitTest.ILHookTest.TestUndoDeadlock

Took 00:00:00.0063942

Failure also present in
  • test-results .NET 10.0 arm64 on Linux ARM64 (PGO Off)/TestResults/testresults.ubuntu-24.04-arm.10.0.arm64.trx
  • test-results .NET 10.0 arm64 on Linux ARM64 (PGO On)/TestResults/testresults.ubuntu-24.04-arm.10.0.arm64.trx
  • test-results .NET 10.0 arm64 on MacOS 14 (PGO Off)/TestResults/testresults.macos-14.10.0.arm64.trx
  • test-results .NET 10.0 arm64 on MacOS 14 (PGO On)/TestResults/testresults.macos-14.10.0.arm64.trx
  • test-results .NET 10.0 x64 on Linux (PGO Off)/TestResults/testresults.ubuntu-latest.10.0.x64.trx
  • test-results .NET 10.0 x64 on Linux (PGO On)/TestResults/testresults.ubuntu-latest.10.0.x64.trx
  • test-results .NET 10.0 x64 on Linux musl (PGO Off)/TestResults/testresults.ubuntu-latest.10.0.x64.trx
    and 6 more
Exception message:
System.InvalidProgramException : Common Language Runtime detected an invalid program.

Stack trace:

   at System.Runtime.CompilerServices.RuntimeHelpers.CompileMethod(RuntimeMethodHandleInternal method)
   at System.Runtime.CompilerServices.RuntimeHelpers.CompileMethod(RuntimeMethodHandleInternal method)
   at invoke RuntimeHelpers.CompileMethod(RuntimeMethodHandle )
   at MonoMod.Core.Platforms.Runtimes.FxCoreBaseRuntime.TryInvokeBclCompileMethod(RuntimeMethodHandle handle) in /_/src/MonoMod.Core/Platforms/Runtimes/FxCoreBaseRuntime.cs:line 324
   at MonoMod.Core.Platforms.Runtimes.FxCoreBaseRuntime.GetMethodHandle(MethodBase method) in /_/src/MonoMod.Core/Platforms/Runtimes/FxCoreBaseRuntime.cs:line 157
   at MonoMod.Core.Platforms.Runtimes.FxCoreBaseRuntime.Compile(MethodBase method) in /_/src/MonoMod.Core/Platforms/Runtimes/FxCoreBaseRuntime.cs:line 376
   at MonoMod.Core.Platforms.PlatformTriple.Compile(MethodBase method) in /_/src/MonoMod.Core/Platforms/PlatformTriple.cs:line 252
   at MonoMod.RuntimeDetour.DetourManager.ManagedDetourState.UpdateEndOfChain() in /_/src/MonoMod.RuntimeDetour/DetourManager.Managed.cs:line 594
   at MonoMod.RuntimeDetour.DetourManager.ManagedDetourState.AddILHook(SingleILHookState ilhook, Boolean takeLock) in /_/src/MonoMod.RuntimeDetour/DetourManager.Managed.cs:line 461
   at MonoMod.RuntimeDetour.ILHook.Apply() in /_/src/MonoMod.RuntimeDetour/ILHook.cs:line 226
   at MonoMod.RuntimeDetour.ILHook..ctor(MethodBase method, Manipulator manipulator, IDetourFactory factory, DetourConfig config, Boolean applyByDefault) in /_/src/MonoMod.RuntimeDetour/ILHook.cs:line 188
   at MonoMod.RuntimeDetour.ILHook..ctor(MethodBase source, Manipulator manip, DetourConfig config, Boolean applyByDefault) in /_/src/MonoMod.RuntimeDetour/ILHook.cs:line 138
   at MonoMod.RuntimeDetour.ILHook..ctor(MethodBase source, Manipulator manip, DetourConfig config) in /_/src/MonoMod.RuntimeDetour/ILHook.cs:line 104
   at MonoMod.RuntimeDetour.ILHook..ctor(MethodBase source, Manipulator manip) in /_/src/MonoMod.RuntimeDetour/ILHook.cs:line 49
   at MonoMod.UnitTest.ILHookTest.TestUndoDeadlock() in /_/src/MonoMod.UnitTest/RuntimeDetour/ILHookTest.cs:line 67
--- End of stack trace from previous location ---
❌ test-results .NET 7.0 x64 on MacOS 13 (PGO On)/TestResults/testresults.macos-13.7.0.x64.trx MonoMod.UnitTest.ILHookTest.TestUndoDeadlock

Took 00:00:00.0101820

Failure also present in
  • test-results .NET 5.0 x64 on Linux musl/TestResults/testresults.ubuntu-latest.5.0.x64.trx
  • test-results .NET 5.0 x64 on Linux/TestResults/testresults.ubuntu-latest.5.0.x64.trx
  • test-results .NET 5.0 x64 on MacOS 13/TestResults/testresults.macos-13.5.0.x64.trx
  • test-results .NET 5.0 x64 on MacOS 14/TestResults/testresults.macos-14.5.0.x64.trx
  • test-results .NET 5.0 x64 on Windows/TestResults/testresults.windows-latest.5.0.x64.trx
  • test-results .NET 5.0 x86 on Windows/TestResults/testresults.windows-latest.5.0.x86.trx
  • test-results .NET 6.0 arm64 on Linux ARM64 (PGO Off)/TestResults/testresults.ubuntu-24.04-arm.6.0.arm64.trx
    and 63 more
Exception message:
System.InvalidProgramException : The JIT compiler encountered invalid IL code or an internal limitation.

Stack trace:

   at System.Runtime.CompilerServices.RuntimeHelpers.CompileMethod(RuntimeMethodHandleInternal method)
   at invoke RuntimeHelpers.CompileMethod(RuntimeMethodHandle )
   at MonoMod.Core.Platforms.Runtimes.FxCoreBaseRuntime.TryInvokeBclCompileMethod(RuntimeMethodHandle handle)
   at MonoMod.Core.Platforms.Runtimes.FxCoreBaseRuntime.GetMethodHandle(MethodBase method)
   at MonoMod.Core.Platforms.Runtimes.FxCoreBaseRuntime.Compile(MethodBase method)
   at MonoMod.Core.Platforms.PlatformTriple.Compile(MethodBase method)
   at MonoMod.RuntimeDetour.DetourManager.ManagedDetourState.UpdateEndOfChain()
   at MonoMod.RuntimeDetour.DetourManager.ManagedDetourState.AddILHook(SingleILHookState ilhook, Boolean takeLock)
   at MonoMod.RuntimeDetour.ILHook.Apply()
   at MonoMod.RuntimeDetour.ILHook..ctor(MethodBase method, Manipulator manipulator, IDetourFactory factory, DetourConfig config, Boolean applyByDefault)
   at MonoMod.RuntimeDetour.ILHook..ctor(MethodBase source, Manipulator manip, DetourConfig config, Boolean applyByDefault)
   at MonoMod.RuntimeDetour.ILHook..ctor(MethodBase source, Manipulator manip, DetourConfig config)
   at MonoMod.RuntimeDetour.ILHook..ctor(MethodBase source, Manipulator manip)
   at MonoMod.UnitTest.ILHookTest.TestUndoDeadlock()
--- End of stack trace from previous location ---
❌ test-results .NET Framework 4.x x86 on Windows/TestResults/testresults.windows-latest.fx.x86.trx MonoMod.UnitTest.ILHookTest.TestUndoDeadlock

Took 00:00:00.0050000

Failure also present in
  • test-results .NET Core 2.1 x64 on Linux/TestResults/testresults.ubuntu-latest.2.1.x64.trx
  • test-results .NET Core 2.1 x64 on Windows/TestResults/testresults.windows-latest.2.1.x64.trx
  • test-results .NET Core 2.1 x86 on Windows/TestResults/testresults.windows-latest.2.1.x86.trx
Exception message:
System.InvalidProgramException : JIT Compiler encountered an internal limitation.

Stack trace:

   at System.Runtime.CompilerServices.RuntimeHelpers._CompileMethod(IRuntimeMethodInfo method)
   at invoke RuntimeHelpers.CompileMethod(RuntimeMethodHandle )
   at MonoMod.Core.Platforms.Runtimes.FxCoreBaseRuntime.TryInvokeBclCompileMethod(RuntimeMethodHandle handle) in /_/src/MonoMod.Core/Platforms/Runtimes/FxCoreBaseRuntime.cs:line 322
   at MonoMod.Core.Platforms.Runtimes.FxCoreBaseRuntime.GetMethodHandle(MethodBase method) in /_/src/MonoMod.Core/Platforms/Runtimes/FxCoreBaseRuntime.cs:line 155
   at MonoMod.Core.Platforms.Runtimes.FxCoreBaseRuntime.Compile(MethodBase method) in /_/src/MonoMod.Core/Platforms/Runtimes/FxCoreBaseRuntime.cs:line 376
   at MonoMod.Core.Platforms.PlatformTriple.Compile(MethodBase method) in /_/src/MonoMod.Core/Platforms/PlatformTriple.cs:line 247
   at MonoMod.RuntimeDetour.DetourManager.ManagedDetourState.UpdateEndOfChain() in /_/src/MonoMod.RuntimeDetour/DetourManager.Managed.cs:line 591
   at MonoMod.RuntimeDetour.DetourManager.ManagedDetourState.AddILHook(SingleILHookState ilhook, Boolean takeLock) in /_/src/MonoMod.RuntimeDetour/DetourManager.Managed.cs:line 478
   at MonoMod.RuntimeDetour.ILHook.Apply() in /_/src/MonoMod.RuntimeDetour/ILHook.cs:line 226
   at MonoMod.RuntimeDetour.ILHook..ctor(MethodBase method, Manipulator manipulator, IDetourFactory factory, DetourConfig config, Boolean applyByDefault) in /_/src/MonoMod.RuntimeDetour/ILHook.cs:line 188
   at MonoMod.UnitTest.ILHookTest.<TestUndoDeadlock>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
❌ test-results System Mono on Linux musl/testresults.ubuntu-latest.sysmono.x64.xml MonoMod.UnitTest.ILHookTest.TestUndoDeadlock

Took 00:00:05.0126740

Failure also present in
  • test-results System Mono on Linux/testresults.ubuntu-latest.sysmono.x64.xml
  • test-results System Mono on MacOS 13/testresults.macos-13.sysmono.x64.xml
Exception message:
Assert.True() Failure
Expected: True
Actual:   False

Stack trace:

  at MonoMod.UnitTest.ILHookTest.TestUndoDeadlock () [0x000fd] in <5085fed8eb754f7381469c959681fa4b>:0 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant