Skip to content

Commit 4f61aaf

Browse files
Use safe march flags for AUTOBAHN
Setting `AUTOBAHN_ARCH_TARGET=safe` will determine the autobahn nvx sources to be compiled with save march flags as per: https://github.com/crossbario/autobahn-python/blob/1c7d45cd2129b1fa6daacb0ed7051448fed3ec0d/src/autobahn/nvx/_compile_args.py#L215 In our scenario the `RH10 ARM` build compiled `_utf8validator` with `PAC` support, being tricked by the QEMU emulation under buildx. `PAC` was introduced on `ARMv8.3-A` while our arm hosts are `ARMv8.2-A` The CI built image passes the GH Actions tests under emulation, while on our ARM hosts we can see that it crashes when trying to push the `RETAA` instruction, during a `buildbot-worker` startup. ``` [buildbot@6d98845070da ~]$ twistd --pidfile= -ny /home/buildbot/buildbot.tac Illegal instruction (core dumped) => 0xfffedeb72120 <PyInit__nvx_utf8validator+184>: retaa ```
1 parent f66bed5 commit 4f61aaf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ci_build_images/pip.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Install a recent rust toolchain needed for some arch
77
# see: https://cryptography.io/en/latest/installation/
88
# then upgrade pip and install BB worker requirements
9+
ENV AUTOBAHN_ARCH_TARGET=safe
910
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs >/tmp/rustup-init.sh \
1011
# rust installer does not detect i386 arch \
1112
&& case $(getconf LONG_BIT) in \

0 commit comments

Comments
 (0)