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

[Prt] Machine state becomes garbage value #37

Closed
paulthomson opened this issue Mar 4, 2016 · 2 comments
Closed

[Prt] Machine state becomes garbage value #37

paulthomson opened this issue Mar 4, 2016 · 2 comments

Comments

@paulthomson
Copy link

When compiling a test case to C, I get a read access violation. I believe the currentState field of PRT_MACHINEINST_PRIV is a garbage value, but I could be wrong. It could be a bug in Prt or in the generated code. I am not sure how to debug this. Can Visual Studio do reverse debugging? 😄

@paulthomson
Copy link
Author

PrtExecution.c line 817. The transIndex is out of bounds. Not sure why. Could add a bounds check here: PRT_DBG_ASSERT(transIndex < nTransitions, "Check Failed");

@shazqadeer
Copy link
Collaborator

Closing this issue. We determined that the bug is due to incorrect packed event set translation.

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