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

bug: "missed_samples" integer overflow possible #206

Open
dalehamel opened this issue Apr 17, 2023 · 1 comment
Open

bug: "missed_samples" integer overflow possible #206

dalehamel opened this issue Apr 17, 2023 · 1 comment

Comments

@dalehamel
Copy link

1) Failure:
StackProfTest#test_gc [/home/runner/work/stackprof/stackprof/test/test_stackprof.rb:248]:
Expected 18446744073709551615 to be <= 25.

Since this value is computed via subtraction, it looks like it is subtracting a larger subtrahend than minuend with a storage class that does not support negatives, and thus it appears as this massive positive integer approximately equal to max int, rather than a small positive value as expected.

@dalehamel
Copy link
Author

(not sure if "integer overflow" is technically correct here, hopefully the meaning is clear)

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

1 participant