-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
test_uc_hook_cached_uaf
test fails with SIGSEGV after building on x86 with musl
#2113
Comments
test_uc_hook_cached_uaf
test fails with SIGSEGV after building on x86 with musl
What's your build script? Is it possible to reproduce within a alpine container? |
Thanks for the quick response, I was able to reproduce this locally in a
It should be possible to step inside the container for debugging by modifying the
|
Link to #2108 |
Thanks for checking this. Note that we apply this patch before running tests: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/80178/diffs @Antelox you might need this as well to get the CI builds working? |
What's the rationale of changing the endian macros? |
I'm not the original maintainer, but my guess is because the initial condition of The other part of the patch modifying
|
Hi, I'm trying to update the
unicorn
package on Alpine Linux to v2.1.2. Compilation succeeds but I'm getting persistent test failures runningtest_uc_hook_cached_uaf
(link) on x86 arch as follows:I'm a devops engineer and don't know anything about C or assembly, so I worked on it for a while with Copilot to try and narrow down where the test is failing. It helped me modify the function to add debug prints, and I managed to get it the test to pass by using a static callback function and not using the
memcpy()
call. Obviously this defeats the purpose of the test, so I added back the previous steps with debug logs as follows:This results in the following test failure during build:
I'm not familiar with tools like gdb or valgrind and don't have direct access to x86 hardware so I thought this might be a good time to stop and ask for help. Can anyone help me get past this issue? Is it related to the emulator, or could it be something to do with musl?
You can see my build attempts and log output here: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/80178
The text was updated successfully, but these errors were encountered: