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

[ProfilerAPI] No more ModuleLoadFinished callbacks for dynamic modules #76016

Closed
ww898 opened this issue Sep 22, 2022 · 9 comments · Fixed by #77068
Closed

[ProfilerAPI] No more ModuleLoadFinished callbacks for dynamic modules #76016

ww898 opened this issue Sep 22, 2022 · 9 comments · Fixed by #77068

Comments

@ww898
Copy link
Contributor

ww898 commented Sep 22, 2022

Hi there,

.NET 7.0 rc1 doesn't send ICorProfilerCallback::ModuleLoadFinished for dynamic modules any more. .NET 6.0.9 works properly.

Example:

using System;
using System.Reflection;
using System.Reflection.Emit;

namespace DynamicAssemblyTestProgram
{
  internal static class DynamicAssemblyTestProgram
  {
    internal static void Main()
    {
      var type = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("TestAssembly"), AssemblyBuilderAccess.Run)
        .DefineDynamicModule("TestModule")
        .DefineType("TestClass", TypeAttributes.Public)
        .CreateType();
      var obj = Activator.CreateInstance(type);
      if (obj == null)
        throw new NullReferenceException();

      Console.WriteLine("Done!");
      Console.ReadKey();
      GC.KeepAlive(obj);
    }
  }
}

Profiler log, see 00007FFC14200110:

...
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC13D34000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC13D34000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC13D34000 res=ok mdi=1
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC13D34000 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC13D34000 hr=00000000 addr=00007FFC72D60000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Private.CoreLib.dll'
0000E598 1 00000217541FB1C0 MDG2::CollectIds mid=00007FFC13D34000 res=ok_root_module
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC13D34000 res=ok_reuse mdi=1
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC13D34000 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Private.CoreLib.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC13D34000 mdi=1 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC13D34000 aid=00000217541F6B50
0000E598 1 00000217541FB1C0 GCCQ::Activate
0000D378 1 0000021757E18880 MDG2::FlushMetadata
0000D378 1 0000021757E18880 MDG2::FlushMetadata res=ok
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC13FF10B0
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC13FF10B0
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC13FF10B0 res=ok mdi=2
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC13FF10B0 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC13FF10B0 hr=00000000 addr=00000257ECA70000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\DynamicAssemblyTestProgram.dll'
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC13FF10B0 res=ok_reuse mdi=2
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC13FF10B0 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\DynamicAssemblyTestProgram.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC13FF10B0 mdi=2 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC13FF10B0 aid=00000217541F82F0
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC13FF2BE8
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC13FF2BE8
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC13FF2BE8 res=ok mdi=3
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC13FF2BE8 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC13FF2BE8 hr=00000000 addr=00000257ECA80000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Runtime.dll'
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC13FF2BE8 res=ok_reuse mdi=3
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC13FF2BE8 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Runtime.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC13FF2BE8 mdi=3 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC13FF2BE8 aid=00000217541F7F30
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC141B5B18
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC141B5B18
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC141B5B18 res=ok mdi=4
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC141B5B18 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC141B5B18 hr=00000000 addr=00000257ECAF0000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Reflection.Emit.dll'
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC141B5B18 res=ok_reuse mdi=4
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC141B5B18 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Reflection.Emit.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC141B5B18 mdi=4 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC141B5B18 aid=00000257ECF0E780
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC141B6678
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC141B6678
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC141B6678 res=ok mdi=5
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC141B6678 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC141B6678 hr=00000000 addr=00007FFCECEB0000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Console.dll'
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC141B6678 res=ok_reuse mdi=5
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC141B6678 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Console.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC141B6678 mdi=5 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC141B6678 aid=00000257ECF0D520
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC14200110
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC14200110
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC14200110 res=ok mdi=6
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC14205710
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC14205710
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC14205710 res=ok mdi=7
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC14205710 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC14205710 hr=00000000 addr=00007FFCCAC10000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Threading.dll'
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC14205710 res=ok_reuse mdi=7
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC14205710 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Threading.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC14205710 mdi=7 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC14205710 aid=00000257ECF0DE20
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC14208FF8
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC14208FF8
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC14208FF8 res=ok mdi=8
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC14208FF8 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC14208FF8 hr=00000000 addr=00000257ECB20000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Text.Encoding.Extensions.dll'
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC14208FF8 res=ok_reuse mdi=8
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC14208FF8 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Text.Encoding.Extensions.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC14208FF8 mdi=8 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC14208FF8 aid=00000257ECF0D340
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC1420A0E0
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC1420A0E0
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC1420A0E0 res=ok mdi=9
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC1420A0E0 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC1420A0E0 hr=00000000 addr=00007FFD00FC0000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Runtime.InteropServices.dll'
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC1420A0E0 res=ok_reuse mdi=9
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC1420A0E0 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Runtime.InteropServices.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC1420A0E0 mdi=9 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC1420A0E0 aid=00000257ECF0D5E0
0000E598 1 00000217541FB1C0 BProf::Shutdown

...
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Sep 22, 2022
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@ww898 ww898 changed the title ProfilerAPI: No more ModuleLoadFinished callbacks for dynamic modules [ProfilerAPI] No more ModuleLoadFinished callbacks for dynamic modules Sep 22, 2022
@ghost
Copy link

ghost commented Sep 22, 2022

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

Issue Details

Hi there,

.NET 7.0 rc1 doesn't send ICorProfilerCallback::ModuleLoadFinished for dynamic modules any more. .NET 6.0.9 works properly.

Example:

using System;
using System.Reflection;
using System.Reflection.Emit;

namespace DynamicAssemblyTestProgram
{
  internal static class DynamicAssemblyTestProgram
  {
    internal static void Main()
    {
      var type = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("TestAssembly"), AssemblyBuilderAccess.Run)
        .DefineDynamicModule("TestModule")
        .DefineType("TestClass", TypeAttributes.Public)
        .CreateType();
      var obj = Activator.CreateInstance(type);
      if (obj == null)
        throw new NullReferenceException();

      Console.WriteLine("Done!");
      Console.ReadKey();
      GC.KeepAlive(obj);
    }
  }
}

Profiler log, see 00007FFC14200110:

...
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC13D34000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC13D34000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC13D34000 res=ok mdi=1
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC13D34000 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC13D34000 hr=00000000 addr=00007FFC72D60000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Private.CoreLib.dll'
0000E598 1 00000217541FB1C0 MDG2::CollectIds mid=00007FFC13D34000 res=ok_root_module
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC13D34000 res=ok_reuse mdi=1
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC13D34000 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Private.CoreLib.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC13D34000 mdi=1 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC13D34000 aid=00000217541F6B50
0000E598 1 00000217541FB1C0 GCCQ::Activate
0000D378 1 0000021757E18880 MDG2::FlushMetadata
0000D378 1 0000021757E18880 MDG2::FlushMetadata res=ok
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC13FF10B0
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC13FF10B0
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC13FF10B0 res=ok mdi=2
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC13FF10B0 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC13FF10B0 hr=00000000 addr=00000257ECA70000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\DynamicAssemblyTestProgram.dll'
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC13FF10B0 res=ok_reuse mdi=2
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC13FF10B0 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\DynamicAssemblyTestProgram.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC13FF10B0 mdi=2 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC13FF10B0 aid=00000217541F82F0
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC13FF2BE8
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC13FF2BE8
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC13FF2BE8 res=ok mdi=3
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC13FF2BE8 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC13FF2BE8 hr=00000000 addr=00000257ECA80000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Runtime.dll'
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC13FF2BE8 res=ok_reuse mdi=3
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC13FF2BE8 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Runtime.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC13FF2BE8 mdi=3 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC13FF2BE8 aid=00000217541F7F30
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC141B5B18
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC141B5B18
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC141B5B18 res=ok mdi=4
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC141B5B18 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC141B5B18 hr=00000000 addr=00000257ECAF0000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Reflection.Emit.dll'
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC141B5B18 res=ok_reuse mdi=4
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC141B5B18 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Reflection.Emit.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC141B5B18 mdi=4 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC141B5B18 aid=00000257ECF0E780
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC141B6678
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC141B6678
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC141B6678 res=ok mdi=5
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC141B6678 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC141B6678 hr=00000000 addr=00007FFCECEB0000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Console.dll'
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC141B6678 res=ok_reuse mdi=5
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC141B6678 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Console.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC141B6678 mdi=5 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC141B6678 aid=00000257ECF0D520
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC14200110
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC14200110
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC14200110 res=ok mdi=6
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC14205710
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC14205710
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC14205710 res=ok mdi=7
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC14205710 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC14205710 hr=00000000 addr=00007FFCCAC10000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Threading.dll'
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC14205710 res=ok_reuse mdi=7
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC14205710 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Threading.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC14205710 mdi=7 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC14205710 aid=00000257ECF0DE20
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC14208FF8
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC14208FF8
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC14208FF8 res=ok mdi=8
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC14208FF8 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC14208FF8 hr=00000000 addr=00000257ECB20000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Text.Encoding.Extensions.dll'
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC14208FF8 res=ok_reuse mdi=8
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC14208FF8 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Text.Encoding.Extensions.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC14208FF8 mdi=8 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC14208FF8 aid=00000257ECF0D340
0000E598 1 00000217541FB1C0 MProf::ModuleLoadStarted mid=00007FFC1420A0E0
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC1420A0E0
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadStarted mid=00007FFC1420A0E0 res=ok mdi=9
0000E598 1 00000217541FB1C0 MProf::ModuleLoadFinished mid=00007FFC1420A0E0 hr=00000000
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC1420A0E0 hr=00000000 addr=00007FFD00FC0000 flags=Dnycrfw mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Runtime.InteropServices.dll'
0000E598 1 00000217541FB1C0 MDG2::ModuleLoadFinished mid=00007FFC1420A0E0 res=ok_reuse mdi=9
0000E598 1 00000217541FB1C0 MDG2::Map mid=00007FFC1420A0E0 res=ok_memory mname='C:\Users\Mikhail.Pilin\Downloads\DynamicAssemblyTestProgram\DynamicAssemblyTestProgram\bin\Release\net7.0\win-x64\publish\System.Runtime.InteropServices.dll'
0000E598 1 00000217541FB1C0 MDG2::TryWrite mid=00007FFC1420A0E0 mdi=9 res=image
0000E598 1 00000217541FB1C0 BProf::ModuleAttachedToAssembly mid=00007FFC1420A0E0 aid=00000257ECF0D5E0
0000E598 1 00000217541FB1C0 BProf::Shutdown

...
Author: ww898
Assignees: -
Labels:

area-Diagnostics-coreclr, untriaged

Milestone: -

@tommcdon
Copy link
Member

@davmason

@tommcdon tommcdon added this to the 7.0.0 milestone Sep 22, 2022
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Sep 22, 2022
@davmason davmason modified the milestones: 7.0.0, 8.0.0 Oct 3, 2022
@ww898
Copy link
Contributor Author

ww898 commented Oct 12, 2022

Hi, there,
It there any news? Can we expect that the fix will be in the release 7.0? It's critical for any profiler.

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Oct 14, 2022
@davmason
Copy link
Member

I opened #77068 to fix this issue, once it is checked in I will open a servicing request for 7.0.

@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Oct 17, 2022
@davmason
Copy link
Member

@alanwest @kolesnikovae not sure if you are subscribed to the profiler interest group, but wanted to make sure you saw #9305 (comment) since we have chatted about ICorProfiler and it may impact you

@pellared
Copy link

pellared commented Oct 30, 2022

It is currently scheduled to go in the first servicing update in January
[...]
If you have questions or concerns please comment in #76016 or file a new issue to not spam everyone on this thread.

Can it be sooner than January? It is not even November and I think runtime bugs should not be treated lightly 😉

@kolesnikovae
Copy link

Thank you for letting me know @davmason, I joined the group. Indeed, we noticed some symptoms of the problem while testing compatibility of our integration (uses EventPipe) with .NET 7 Preview. I think I should have reported this issue, but I was sure the problem is somewhere on our side.

@davmason
Copy link
Member

davmason commented Nov 5, 2022

Can it be sooner than January? It is not even November and I think runtime bugs should not be treated lightly 😉

Unfortunately January is our first servicing release, we do not ship any updates in December.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants