-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
Crash on reload every time #484
Comments
Hi, I'm wondering if this is a problem where a static singleton var is getting uninitialised. Without seeing your code I can't say much more. Let me know if you would like to TeamView. |
If that would help identifying it, surely! How do we communicate that
credentials?
|
Maybe some additional info when running with some diagnostics:
|
You can email your details to github at johnholdsworth.com. |
Hm, thanks, but maybe solved it myself. Your comment Could this be caused by Changing this:
to
doesn't crash in the same location it seems. |
Yes, when you inject, your static/top level vars get reinitialised as they live in the memory of the object file that has been injected. You can change this behaviour if you prefer by setting environment variable INJECTION_PRESERVE_STATICS then references to top level variables will always refer to their first definition. i.e. they won't get set to zero/nil. Happy you've sorted this out! |
Hi,
While developing I suddenly couldn't use it anymore as it crashes on every reload. I know I can't modify the memory but I get crashes even by just changing this:
to
How can I debug this? I just crash with
Thread 1: EXC_BAD_ACCESS (code=1, address=0x28)
Here's the stacktrace of the crash:
The text was updated successfully, but these errors were encountered: