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

VS Code debugger: "read memory from 0xc0 failed" #75

Open
chanced opened this issue Oct 3, 2024 · 4 comments
Open

VS Code debugger: "read memory from 0xc0 failed" #75

chanced opened this issue Oct 3, 2024 · 4 comments

Comments

@chanced
Copy link
Owner

chanced commented Oct 3, 2024

@asmello

While debugging something unrelated, I ran into this after a call to Pointer::as_str. This pointer should have been root/default. This is using vs code. I assume the debugger is not throwing bogus data but I suppose that is also a possibility?

Screenshot 2024-10-03 at 2 33 26 PM
@chanced
Copy link
Owner Author

chanced commented Oct 3, 2024

The behavior is consistent on each run of the test. It requires getting to the end and encountering my faulty logic before it manifests.

https://github.com/chanced/grill/blob/f48725f562b8972a92156a29b620d7406e4a0ce3/grill-core/src/source/walk/to.rs

@asmello
Copy link
Collaborator

asmello commented Oct 4, 2024

Hmm, interesting, Does it behave in some abnormal way otherwise? Or is it just the debugger that's throwing a fit?

@asmello
Copy link
Collaborator

asmello commented Oct 4, 2024

My only guess, assuming this is indeed a bug, is that it's a lifetime bug, and the &str is outliving the original Pointer.

@chanced
Copy link
Owner Author

chanced commented Oct 4, 2024

Hmm, interesting, Does it behave in some abnormal way otherwise? Or is it just the debugger that's throwing a fit?

It behaves normally

@chanced chanced changed the title read memory from 0xc0 failed VS Code debugger: "read memory from 0xc0 failed" Oct 4, 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

No branches or pull requests

2 participants