-
Notifications
You must be signed in to change notification settings - Fork 78
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 failures on big endian. #137
Comments
Thanks for the PR and analysis of the issue! I didn't even know this package was in the Debian repos. Anyway, I'm having difficulty setting virtualizing an s390x or any other big ending platform with qemu-system. I had I noticed that the only big endian image available for download from debian is s390x. Do you have any instructions/links/recommendations on acquiring another archicture big endian image OR tips on emulating s390x? I adapted some tips on running a Fedora s390x image from this blog (including pulling the kernel from the ISO): But I get a boot error:
|
These types of failures are usually a bug in the upstream capstone C library. Could you verify if the underlying C library shows the expected value? The cstool program can be used to test. Per my comment above, I don't have a big endian system to test on at the moment. For example, on my amd64 Ubuntu machine, we can see the expected behavior from the Building cstool:
Run test case:
|
I was able to get a s390x virtualized using multiarch/qemu-user-static container as mentioned in these docs: It looks like the upstream C library has a bug when running on a big endian host:
|
Automated testing in debian showed that the tests for the capstone crate failed on s390x (64-bit big endian)
https://ci.debian.net/data/autopkgtest/testing/s390x/r/rust-capstone/27661170/log.gz
failures:
To determine whether these issues were still present in the latest git version of the capstone crate, whether these tests were specific to s390x or more general endian issues and whether 32-bit vs 64 made any difference I ran manual tests on powerpc (32-bit big endian) and ppc64 (64-bit big endian) with the latest version of capstone-rs from git.
The tests on ppc64 gave the same results as the automatic tests from Debian. The tests on powerpc gave a very different failure, a much larger number of tests failed, but they all failed with the same error.
All tests were performed with rustc 1.61 from Debian.
The text was updated successfully, but these errors were encountered: