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

Fix validation of rtti debug sections in VM #1018

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

peace-maker
Copy link
Member

When enabling the line debugger feature, the .dbg.* sections emitted by the current compiler don't pass the method-verifier in the VM anymore. Fix the problems and enable validation in tests too, to prevent this from diverging again.

This path can be triggered when enabling the line debugger in sourcemod. alliedmodders/sourcemod#2240

The .dbg.locals table contains individual entries for the arguments of a function. When parsing that section, individual entries can be of arguments passed by reference.
The "address" of a constant is the constant's value itself after 0471d9e.
@@ -131,14 +131,14 @@ def find_shells(self):
if rc == 0 and 'JIT' in stdout:
self.shells.append({
'path': path,
'args': [],
'args': ['--validate-debug-sections'],
Copy link
Member

Choose a reason for hiding this comment

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

Any reason not to make this the default for the shell?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, sounds good too.

Check if we're still emitting the expected debug information format.
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