Skip to content
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

big endian support #1175

Open
1 task
andreasstieger opened this issue Dec 7, 2024 · 3 comments
Open
1 task

big endian support #1175

andreasstieger opened this issue Dec 7, 2024 · 3 comments
Labels
feature-request A feature should be added or improved. p3 This is a minor priority issue

Comments

@andreasstieger
Copy link

Describe the bug

There seems to be an architecture specific build failure on s390x (zSystems). Version range is unknown, but at least 0.10.3...0.10.5, possibly longer.

Seen in https://build.opensuse.org/package/show/devel:libraries:c_c++/aws-c-common

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

test / build pass

Current Behavior

[  282s] 265/449 Test #267: sba_threaded_reallocs ................................................Subprocess aborted***Exception:   0.04 sec
[  282s] Fatal error condition occurred in /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/tests/alloc_test.c:200: 0 == memcmp(alloc, &thread_data->thread_idx, 1)
[  282s] Exiting Application
[  282s] ################################################################################
[  282s] Stack trace:
[  282s] ################################################################################
[  282s] /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/build/libaws-c-common.so.1(aws_backtrace_print+0x68) [0x3ffae12d3a0]
[  282s] /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/build/libaws-c-common.so.1(aws_fatal_assert+0x46) [0x3ffae11aafe]
[  282s] /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/build/tests/aws-c-common-tests(+0x18a64) [0x2aa06598a64]
[  282s] /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/build/libaws-c-common.so.1(+0x3386a) [0x3ffae13386a]
[  282s] /lib64/libc.so.6(+0xa868a) [0x3ffadea868a]
[  282s] /lib64/libc.so.6(+0x1292f0) [0x3ffadf292f0]
[  282s] 
[  282s] 266/449 Test #270: default_threaded_reallocs ............................................Subprocess aborted***Exception:   0.02 sec
[  282s] Fatal error condition occurred in /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/tests/alloc_test.c:200: 0 == memcmp(alloc, &thread_data->thread_idx, 1)
[  282s] Exiting Application
[  282s] ################################################################################
[  282s] Stack trace:
[  282s] ################################################################################
[  282s] /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/build/libaws-c-common.so.1(aws_backtrace_print+0x68) [0x3ffa58ad3a0]
[  282s] /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/build/libaws-c-common.so.1(aws_fatal_assert+0x46) [0x3ffa589aafe]
[  282s] /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/build/tests/aws-c-common-tests(+0x18a64) [0x2aa12598a64]
[  282s] /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/build/libaws-c-common.so.1(+0x3386a) [0x3ffa58b386a]
[  282s] /lib64/libc.so.6(+0xa868a) [0x3ffa56a868a]
[  282s] /lib64/libc.so.6(+0x1292f0) [0x3ffa57292f0]
[  282s] 
[  282s]         Start 273: aligned_threaded_allocs_and_frees
[  282s]         Start 274: test_memtrace_none
[  282s] 267/449 Test #272: aligned_threaded_reallocs ............................................Subprocess aborted***Exception:   0.03 sec
[  282s] Fatal error condition occurred in /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/tests/alloc_test.c:200: 0 == memcmp(alloc, &thread_data->thread_idx, 1)
[  282s] Exiting Application
[  282s] ################################################################################
[  282s] Stack trace:
[  282s] ################################################################################
[  282s] /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/build/libaws-c-common.so.1(aws_backtrace_print+0x68) [0x3ff8262d3a0]
[  282s] /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/build/libaws-c-common.so.1(aws_fatal_assert+0x46) [0x3ff8261aafe]
[  282s] /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/build/tests/aws-c-common-tests(+0x18a64) [0x2aa11418a64]
[  282s] /home/abuild/rpmbuild/BUILD/aws-c-common-0.10.5/build/libaws-c-common.so.1(+0x3386a) [0x3ff8263386a]
[  282s] /lib64/libc.so.6(+0xa868a) [0x3ff823a868a]
[  282s] /lib64/libc.so.6(+0x1292f0) [0x3ff824292f0]
[  282s] 
[...]
[  311s] 
[  311s] 99% tests passed, 3 tests failed out of 449
[  311s] 
[  311s] Total Test time (real) =  33.80 sec
[  311s] 
[  311s] The following tests FAILED:
[  311s] 	267 - sba_threaded_reallocs (Subprocess aborted)
[  311s] 	270 - default_threaded_reallocs (Subprocess aborted)
[  311s] 	272 - aligned_threaded_reallocs (Subprocess aborted)
[  311s] Errors while running CTest
[  311s] error: Bad exit status from /var/tmp/rpm-tmp.JkphOR (%check)
[  311s] 

Reproduction Steps

Build on s390x arch

https://build.opensuse.org/package/show/devel:libraries:c_c++/aws-c-common

Possible Solution

No response

Additional Information/Context

No response

aws-c-common version used

0.10.5

Compiler and version used

cc14-14.2.1

Operating System and version

openSUSE Tumbleweed, s390x

@andreasstieger andreasstieger added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Dec 7, 2024
@DmitriyMusatkin
Copy link
Contributor

Did it ever work? The failing tests are relatively new (maybe a year old), but the allocator behavior hasnt changed in a while. We dont officially support big-endian machines as we currently dont test on any, so i suspect allocator might be doing some big-endian unsafe assumptions,

@andreasstieger
Copy link
Author

Build history shows this never worked, first added to the distro with 0.9.12

@jmklix jmklix changed the title (short issue description) big endian support Dec 11, 2024
@jmklix jmklix added feature-request A feature should be added or improved. p3 This is a minor priority issue and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Dec 11, 2024
@jmklix
Copy link
Member

jmklix commented Dec 11, 2024

This is something that we currently don't support in aws-c-common. We do have some tests in aws-checksums to make sure that works on big endian machines. Changing this to a feature request.

Please 👍 the original issue above if you would like this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. p3 This is a minor priority issue
Projects
None yet
Development

No branches or pull requests

3 participants