0.23.3 fails to compile on Fedora 23 i686 #597
Copy link
Copy link
Closed
Description
I have recently been trying to update the Fedora package in F23 to 0.23.3 since Fedora already have libgit2 0.23.4 I thought this should work fine.
Build on x86_64 is fine, but i686 fails to build, or rather fails on the unit-tests, I would appreciate some help to figure out what's going on.
The build is at: http://koji.fedoraproject.org/koji/taskinfo?taskID=13024033
The log for i686 is at: https://kojipkgs.fedoraproject.org//work/tasks/4036/13024036/build.log
There is apparently something odd going on with encoding and somehow -dirty becomes \x08. No idea why though.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
pypingou commentedon Feb 22, 2016
Note the code was added commit 57507982 and line which might be responsible may be: 99dfce9#diff-57507982bc2ad39925ca8f387e172b29R720 but I don't see anything wrong w/ it, so I wonder if the problem isn't lower down the stack, no idea.
carlosmn commentedon Feb 22, 2016
It looks like the string might not be kept alive long enough, so libgit2 ends up reading nonsense. This looks like a dupe of #592 though.
pypingou commentedon Feb 22, 2016
Indeed it's a dupe, should I close this one or do we prefer to close the other one?
pypingou commentedon Feb 23, 2016
Any idea on how we could help debugging this?
carlosmn commentedon Feb 23, 2016
There's looking at the code to see if we make sure we keep a reference to the unmanaged string. Then there's also a way to build python so it doesn't pool allocations and you can throw valgrind and friends at it.
carlosmn commentedon Feb 23, 2016
This should keep the pointer alive.
pypingou commentedon Feb 24, 2016
thanks I'll test this patch :)
pypingou commentedon Feb 24, 2016
Worked perfectly, thanks! http://koji.fedoraproject.org/koji/taskinfo?taskID=13116069
pypingou commentedon Feb 24, 2016
So as far as I am concerned this can be closed as fixed, I could build 0.23.3 for Fedora 23, 24 and rawhide successfully on all arches (i686, x86_64 and arm).
If you submit the patch for inclusion, I can vouch that it fixed the unit-tests for us.
Many thanks for your help!