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
cmerge: segfault #3220
Comments
I have libgit2 0.28.3 on linux and this does not work. Removing the CMERGE_ON_LINUX check in the code fixes the segfault. libelektra/src/libs/merge/kdbmerge.c Line 991 in 4ee9617
|
Thank you for reporting this problem! We should definitely fix this before 0.9.1. Maybe by simply disabling libgit2 in this case. @mpranj can you also post the gdb output, the valgrind output is not so helpful. |
I bet it's about LibGit. The library should be initialized with git_libgit2_init() according to their documentation. When not initializing LibGit on all the Linux on the build server we get no memory leaks. If we initialize, we do. However, if we don't initialize for the FreeBSD builds, we get segfaults. This is the reason why those strange ifdefs exist. I also made my first Stackoverflow post about this. Hopefully #3221 fixes this. |
Gdb output is also not very helpful. I'm not sure why, I have the debug symbols of the libraries and it's a Debug build of elektra.
I've verified that the |
@Chemin1 thank you for working on it! |
@Chemin1 thank you for fixing it so quickly. I can confirm that it works for me now. |
Thank you for testing it, @mpranj ! |
Steps to Reproduce the Problem
Configure and make libelektra.
Expected Result
All tests succeed.
Actual Result
System Information
Further Log Files and Output
cmerge.txt
The text was updated successfully, but these errors were encountered: