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
Concurrent::Map #inspect test error #547
Comments
Thanks for pointing this out. I'll update the test with a better regex (or possibly remove the test--I'm not sure it's providing much value). |
But I'd say that the test is pointing out an error in implementation of #inspect method (at minimun), since the "0x-7db1e810" does not look healthy IMO. |
Interesting, today I met very similarly looking issue in Action View test suite:
Please note the |
@voxik hi sorry for not addressing this sooner. I could not find any to_s or inspect implementation in our code. So I am inclined to update the regexp. Could you verify that -7e78d8a0 is indeed an allowed value on ARM 32 ? |
So this error is obviously coming from [1]. And it seems to be signed/unsigned mismatch. E.g. something like this:
But in reality, this should be unpacked as unsigned:
Obviously, this is not issue for default Object#inspect, since it is using C sprintf function with pointer format [2]. |
This should be way to reproduce (be careful with the memory consumption!):
When the address crosses certain level, it becomes negative. Trying this with:
|
On the other hand, object_id appears to be signed value (see the source at [1]), which doesn't make a whole lot sense to me |
I reported the issue to Ruby upstream: |
Trying to build package for Fedora ([1] but this link will expire quite soon), I got following error:
Please note this was 32b ARM builder, so is this some wrong mapping of integers in inspect method?
[1] http://koji.fedoraproject.org/koji/taskinfo?taskID=14762876
The text was updated successfully, but these errors were encountered: