-
-
Notifications
You must be signed in to change notification settings - Fork 386
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
Unit tests fail on i686 #477
Comments
So, looking into this a bit more, it seems that in the 3 failing cases, these are the error messages returned by
So I'd say it's expected that Now, where do these bytes come from? 😕 |
That's uninitialized memory. Something is releasing the string before the C code gets a look at it. |
So, running the tests in a loop, they don't always fail. Running them in valgrind, they consistently succeed. 😕 |
That's what memory errors look like. Using valgrind on your "normal" python isn't going to work very well. You'd need a build of the python interpreter which is built with debug symbols and with valgrind support; that is, that it allocates and releases memory directly to the OS (or valgrind in this case). The python interpreter has its own allocator for speed which means valgrind is mostly useless against the default versions since it can't see what it's actually doing to the memory. |
I'm trying to update the Fedora Rawhide package ot pygit2 0.22 (we already have libgit2 0.22 there).
On x86_64, unit tests run just fine.
However, on i686, these 3 fail:
I'm still trying to investigate the root cause, so I'm not sure this is a problem in cffi, libgit2 or pygit2, so I'm reporting it here for now, in case someone has a brilliant idea. 😃
The text was updated successfully, but these errors were encountered: