Skip to content

SIGABRT on 32bit armhf in [batch]<xsimd::batch<unsigned char>> #1260

@drew-parsons

Description

@drew-parsons

Building xsimd 14.0.0 on debian fails on 32-bit armhf:

test 1
    Start 1: test_xsimd

1: Test command: /build/reproducible-path/xsimd-14.0.0/obj-arm-linux-gnueabihf/test/test_xsimd
1: Working Directory: /build/reproducible-path/xsimd-14.0.0/obj-arm-linux-gnueabihf/test
1: Test timeout computed to be: 10000000
1: test_xsimd: ./include/xsimd/types/xsimd_batch.hpp:596: void xsimd::batch<T, A>::store_aligned(U*) const [with U = unsigned char; T = unsigned char; A = xsimd::neon]: Assertion `((reinterpret_cast<uintptr_t>(mem) % A::alignment()) == 0) && "store location is not properly aligned"' failed.
1: [doctest] doctest version is "2.4.12"
1: [doctest] run with "--help" for options
1: ===============================================================================
1: ./test/test_batch.cpp:955:
1: TEST CASE:  [batch]<xsimd::batch<unsigned char>>
1:   horizontal_operations
1: 
1: ./test/test_batch.cpp:955: FATAL ERROR: test case CRASHED: SIGABRT - Abort (abnormal termination) signal
1: 
1: ===============================================================================
1: ./test/test_batch.cpp:955:
1: TEST CASE:  [batch]<xsimd::batch<unsigned char>>
1: 
1: DEEPEST SUBCASE STACK REACHED (DIFFERENT FROM THE CURRENT ONE):
1:   horizontal_operations
1: 
1: ===============================================================================
1: [doctest] test cases:  13 |  12 passed | 1 failed | 274 skipped
1: [doctest] assertions: 706 | 706 passed | 0 failed |
1: [doctest] Status: FAILURE!
1/1 Test #1: test_xsimd .......................Subprocess aborted***Exception:   0.01 sec
test_xsimd: ./include/xsimd/types/xsimd_batch.hpp:596: void xsimd::batch<T, A>::store_aligned(U*) const [with U = unsigned char; T = unsigned char; A = xsimd::neon]: Assertion `((reinterpret_cast<uintptr_t>(mem) % A::alignment()) == 0) && "store location is not properly aligned"' failed.

Full log at https://buildd.debian.org/status/fetch.php?pkg=xsimd&arch=armhf&ver=14.0.0-4&stamp=1771339739&raw=0

This is with no specific machine flags provided. Previously we specified -mfloat-abi=hard -mfpu=vfpv3 because of #889 , but that now fails with xsimd 14.0.0, triggering an error unrecognizable insn, see https://buildd.debian.org/status/fetch.php?pkg=xsimd&arch=armhf&ver=14.0.0-2&stamp=1771004640&raw=0

This is with PR #1177 reverted, because of the ARM64 bug #1232 (I'm not sure that that directly affects 32-bit arm)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions