You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cases when it crashes set_id and cl_id are negative while the source addr is positive, I get the feeling that shouldn't be the case.
Cache__get_cacheline_id takes addr as a long long, shifts it to the right, then returns it as a long. This can result in a negative return value, is that ok?
thanks for the issue!
From what I can see it looks like you are right and we have to take care of some type conversions or data types, respectively.
Could you provide some test cases or sample code snippets to reproduce the segfaults?
I see that 64bit support was added pretty recently. I get a lot of nondeterministic segfaults when trying to use the backend.c by itself.
Randomly on these line:
pycachesim/cachesim/backend.c
Line 187 in 1741d35
pycachesim/cachesim/backend.c
Line 154 in 1741d35
In cases when it crashes set_id and cl_id are negative while the source addr is positive, I get the feeling that shouldn't be the case.
Cache__get_cacheline_id takes addr as a long long, shifts it to the right, then returns it as a long. This can result in a negative return value, is that ok?
pycachesim/cachesim/backend.c
Lines 109 to 111 in 1741d35
The text was updated successfully, but these errors were encountered: