Skip to content

Scripting memory capture static field byte reporting legacy bugfix #1081

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

Conversation

realek
Copy link

@realek realek commented Nov 15, 2018

*mirrored walking of all class fields from Mono 4.0 pr (#1065)
*added missing include which caused the function signature to be int for mono_vtable_get_static_field_data thus down casting the pointer from 64 bit to 32 bit and causing crashes (there might be some fog bugz cases related to this...I'll add them to the unity repo PR as I verify)

* uninitialized classes are also reported
* added handling for class fields that are array type
looks like corrupted symbols as the 64bit address ends up getting downcasted to 32bit
*added missing include which caused the function signature to be int thus downcasting the pointer from 64 bit to 32
@realek realek self-assigned this Nov 15, 2018
@realek realek requested a review from joncham November 15, 2018 17:57
@@ -11,7 +11,7 @@
#include <libgc/include/gc.h>
#include <libgc/include/private/gc_priv.h>
#include <mono/metadata/gc-internal.h>

#include <mono/metadata/mono-debug-debugger.h>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will probably need to check what happened to the definition of mono_vtable_get_static_field_data in mono 4.0 and if it needs the same include in here

realek added a commit that referenced this pull request Nov 16, 2018
*mirrored walking of all class fields from Mono 4.0
*added missing include which caused the function signature to be int for mono_vtable_get_static_field_data thus down casting the pointer from 64 bit to 32 bit and causing crashes
@realek realek merged commit de478cc into unity-trunk Nov 16, 2018
realek added a commit that referenced this pull request Nov 16, 2018
…ture_static_field_byte_reporting_legacy_bugfix_2018.3

[Backport][PR #1081] Scripting memory capture static field byte reporting legacy bugfix 2018.3
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

Successfully merging this pull request may close these issues.

2 participants