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

builtins debugging #93

Conversation

notlesh
Copy link
Collaborator

@notlesh notlesh commented Mar 22, 2024

A dump of debugging code while trying to debug an issue with selected builtins.

I think the culprit is update_builtin_ptrs (or some previous logic it depends on) because it looks like it should be finding 2 selected builtins but finds 0, and this leads to a DiffAssertValue assertion failure later on.

Comment on lines +143 to +147
let val = if (val == MaybeRelocatable::RelocatableValue(Relocatable{segment_index: -3, offset: 0})) {
MaybeRelocatable::RelocatableValue(Relocatable{segment_index: -3, offset: 1})
} else {
val
};
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This ugly hack works around the DiffAssertValues issue by modifying a specific pointer when we encounter it.

Remove this in order to reproduce the issue; with it in place we are able to progress further through the OS code.

@notlesh
Copy link
Collaborator Author

notlesh commented Mar 25, 2024

Closing as #91 solved this, also opening #96 to continue this work.

@notlesh notlesh closed this Mar 25, 2024
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.

1 participant