You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ILStubManager::TraceManager does not correctly handle struct marshalling stubs #36248
If a managed debugger tries to place a breakpoint at the start of an IL stub, the debugger uses the ILStubManager to place the breakpoint at a location where the user would expect it. For example, for P/Invoke calls it places it at the start of the native call, and for reverse P/Invoke calls, it places it at the start of the managed method.
The ILStubManager doesn't correctly handle struct marshaling stubs. They fall down the else case at the bottom that assumes that the method at that point is a COM call. From that point on we get into a very bad state and AV down the stack, which propagates up as an ExecutionEngineException.
Activity
Handle struct marshal stubs in ILStubManager::TraceManager.
Handle struct marshal stubs in ILStubManager::TraceManager. (#36249)