Skip to content

[clr-ios] Debugger crashes with SIGSEGV in GetFuncletStartOffsets #125958

@kotlarmilos

Description

@kotlarmilos

Description

The debugger crashes with SIGSEGV when it tries to create a DebuggerJitInfo for an interpreter method. This happens when the debugger stops at a breakpoint or Debugger.Break() and needs to resolve method information.

Root cause

It skips JITComplete for interpreter methods, so DJIs are never pre-created. When the debugger later needs a DJI on-demand, the creation path calls InitFuncletAddress, which calls EECodeInfo::Init to resolve the method address. EECodeInfo::Init cannot resolve interpreter method addresses (they are not in any IJitManager), so it leaves m_pJM = NULL.

Proposed fix

https://github.com/kotlarmilos/runtime/tree/fix/ios-debugger-interpreter-crashes

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions