model-writtenrun 2829 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Kozhemyakin reported that a query involving pg_last_wal_receive_lsn() crashed LLVM-enabled PostgreSQL on Ubuntu ARM because __aarch64_swp4_acq_rel could not be resolved #1.
- Thomas Munro suspected that JIT-inlined spinlock code expected atomic helper functions absent from the executable and suggested compiler-flag experiments; a.kozhemyakin confirmed that disabling outline atomics or targeting ARMv8.1 eliminated the error and also reproduced the original failure with Debian packages #2 #3.
- Thomas considered either disabling outline atomics in bitcode or enabling them in the executable so the helper functions would be linked, noting the competing goals of faster atomics on newer ARM hardware and compatibility with older systems #4.
- Returning in November, Thomas identified differing Debian GCC and Clang defaults and submitted a conservative patch disabling outline atomics in bitcode; automatic compiler matching lacked an obvious implementation, forcing executable flags had met resistance elsewhere, and Meson needed no change because it did not generate bitcode #5.
- Thomas committed the patch with revised comments and commit explanation as 15ab513fed, with backports to all supported releases, and closed the thread by announcing that he had pushed it after hearing no objections #6.