-
Notifications
You must be signed in to change notification settings - Fork 519
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
fix: Fix the build for zig binding #2493
Conversation
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
I ran 1000 times of |
Archlinux with x86_64. Maybe related to the alignment. |
I have a manjaro x86_64 machine, I will try to reproduce as soon as I get my hands on it. |
Signed-off-by: Xuanwo <[email protected]>
cc @Ji-Xinyou, I have fixed this, PTAL. |
Signed-off-by: Xuanwo <[email protected]>
I think the memory management thing in C binding is really an error-prone thing to do. To avoid this, we could add |
Signed-off-by: Xuanwo <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, thanks!
Signed-off-by: Xuanwo <[email protected]>
Fix #2491
cc @Ji-Xinyou, zig test will failed for
Segmentation fault
while callingbinding/c
:This can also reproduced by
make test
underbinding/c
:The test itself is unstable, 10% percent to trigger:
And there also a case for
Segmentation fault (core dumped)
: