-
Notifications
You must be signed in to change notification settings - Fork 198
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
make check
segmentation fault in test-api on macOS Sierra
#461
Comments
Thanks for the bug report. What happens there is a little strange, as the actual value (in testNodeInfo/test-api.c:388) is the result of calling basename; unfortunately, I can't reproduce the problem on my machine (Fedora 25) and I don't have macOS Sierra anywhere. If you could, it would be great to look at the invocation of basename at test-api.c:383 and make sure that (a) the string |
Aha, I played with test-api.c and found an absolutely simple fix: diff --git a/tests/test-api.c b/tests/test-api.c
index 8264887b..28be3022 100644
--- a/tests/test-api.c
+++ b/tests/test-api.c
@@ -28,6 +28,7 @@
#include "internal.h"
#include <unistd.h>
+#include <libgen.h>
#include <libxml/tree.h> Seems either Clang or the dynamic linker can't handle implicit C function declarations well. |
Nice find, thanks ! Committed a fix as 51b6ec6b |
Missing that include leads to segfaults on OS X Sierra. Thanks to yan12125 for the fix Fixes #461
Just realized I never pushed that; pushed it now as e57457f |
Aha, I haven't had to to really test it either :) With the latest git-master all tests pass! |
As title, test-api crashes on Sierra:
System information:
Here's the lldb log:
The text was updated successfully, but these errors were encountered: