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

Running VM in suspend=n mode might return VM_START including a NULL thread. #265

Open
lateralusX opened this issue Nov 27, 2019 · 0 comments

Comments

@lateralusX
Copy link
Member

This is mainly in embedding scenarios not running regular Main method and setting up debugger agent in suspend=n mode. If the embedder hasn't explicitly setup a main thread using mono_thread_set_main API, the VM_START returned to debugger client on attach will include a NULL thread object and when debugger client asks for more information around this object, runtime will shutdown with an error, since it consider the object to be garbage (not existing in this case).

This problem in debugger client is hard to track for embedders so we should at least handle the scenario gracefully with either an error message or handle/recover from the case where VM_START returns a NULL thread object.

mauroa pushed a commit to mauroa/debugger-libs that referenced this issue Sep 21, 2023
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

No branches or pull requests

1 participant