Skip to content

[iOS] SIGSEGV during mono_process_dbg_packet when applying code changes #112988

Open
@jeromelaban

Description

@jeromelaban

Apple platform

iOS

Framework version

net9.0-*

Affected platform version

9.0.102, 9.0.200-preview.0.25057.12

VS 17.11, VS 17.13

Description

Given a specific class structure, removing a method in a class will crash the app with the following stack:

0x10565f86c - /Users/jay/Library/Developer/CoreSimulator/Devices/2CFE56A9-9171-4779-990E-158E52CA28CD/data/Containers/Bundle/Application/447EFCA2-C686-45F7-AAC0-2A8EB691B050/Issue3290.app/libmonosgen-2.0.dylib : mono_dump_native_crash_info
0x10560c704 - /Users/jay/Library/Developer/CoreSimulator/Devices/2CFE56A9-9171-4779-990E-158E52CA28CD/data/Containers/Bundle/Application/447EFCA2-C686-45F7-AAC0-2A8EB691B050/Issue3290.app/libmonosgen-2.0.dylib : mono_handle_native_crash
0x1055797f0 - /Users/jay/Library/Developer/CoreSimulator/Devices/2CFE56A9-9171-4779-990E-158E52CA28CD/data/Containers/Bundle/Application/447EFCA2-C686-45F7-AAC0-2A8EB691B050/Issue3290.app/libmonosgen-2.0.dylib : mono_sigsegv_signal_handler_debug
0x104f477e0 - /usr/lib/system/libsystem_platform.dylib : _sigtramp
0x1051036e4 - /Users/jay/Library/Developer/CoreSimulator/Devices/2CFE56A9-9171-4779-990E-158E52CA28CD/data/Containers/Bundle/Application/447EFCA2-C686-45F7-AAC0-2A8EB691B050/Issue3290.app/libmono-component-debugger.dylib : mono_process_dbg_packet
0x105108fd4 - /Users/jay/Library/Developer/CoreSimulator/Devices/2CFE56A9-9171-4779-990E-158E52CA28CD/data/Containers/Bundle/Application/447EFCA2-C686-45F7-AAC0-2A8EB691B050/Issue3290.app/libmono-component-debugger.dylib : mono_debugger_agent_receive_and_process_command
0x10510b878 - /Users/jay/Library/Developer/CoreSimulator/Devices/2CFE56A9-9171-4779-990E-158E52CA28CD/data/Containers/Bundle/Application/447EFCA2-C686-45F7-AAC0-2A8EB691B050/Issue3290.app/libmono-component-debugger.dylib : debugger_thread
0x105752f08 - /Users/jay/Library/Developer/CoreSimulator/Devices/2CFE56A9-9171-4779-990E-158E52CA28CD/data/Containers/Bundle/Application/447EFCA2-C686-45F7-AAC0-2A8EB691B050/Issue3290.app/libmonosgen-2.0.dylib : start_wrapper
0x104f93414 - /usr/lib/system/libsystem_pthread.dylib : _pthread_start
0x104f8e5e0 - /usr/lib/system/libsystem_pthread.dylib : thread_start

Steps to Reproduce

  • Unzip the following app: Issue22102.zip
  • Launch the app
  • Go to TestClass.cs
  • Remove the test1 method, do not comment it, then apply the code changes
  • The app will crash

Did you find any workaround?

  • Removing the Owner property
  • Not instantiating the MainPage class

Those changes are seemingly unrelated and make changes very difficult to trust.

Build logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions