Skip to content

Commit a3a70ae

Browse files
committed
fix: disable JIT during regression tests for ARM64 compatibility
Disable PostgreSQL JIT compilation during the PostGIS regression test phase in Alpine and master Dockerfiles. JIT causes "stuck spinlock" crashes when building under QEMU emulation for ARM64. The CI matrix already builds and tests on native ARM64 runners (ubuntu-24.04-arm), and this fix allows those builds to pass consistently. Fixes #393 Refs #216
1 parent c902fca commit a3a70ae

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

13-3.5/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ RUN set -eux \
7878
&& mkdir /tempdb \
7979
&& chown -R postgres:postgres /tempdb \
8080
&& su postgres -c 'pg_ctl -D /tempdb init' \
81-
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
81+
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o "-F --jit=off" start ' \
8282
&& cd regress \
8383
&& make -j${NPROC:-$(nproc)} check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
8484
\

14-3.5/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ RUN set -eux \
7878
&& mkdir /tempdb \
7979
&& chown -R postgres:postgres /tempdb \
8080
&& su postgres -c 'pg_ctl -D /tempdb init' \
81-
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
81+
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o "-F --jit=off" start ' \
8282
&& cd regress \
8383
&& make -j${NPROC:-$(nproc)} check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
8484
\

15-3.5/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ RUN set -eux \
7878
&& mkdir /tempdb \
7979
&& chown -R postgres:postgres /tempdb \
8080
&& su postgres -c 'pg_ctl -D /tempdb init' \
81-
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
81+
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o "-F --jit=off" start ' \
8282
&& cd regress \
8383
&& make -j${NPROC:-$(nproc)} check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
8484
\

16-3.5/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ RUN set -eux \
7878
&& mkdir /tempdb \
7979
&& chown -R postgres:postgres /tempdb \
8080
&& su postgres -c 'pg_ctl -D /tempdb init' \
81-
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
81+
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o "-F --jit=off" start ' \
8282
&& cd regress \
8383
&& make -j${NPROC:-$(nproc)} check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
8484
\

16-master/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ RUN set -ex \
403403
&& mkdir /tempdb \
404404
&& chown -R postgres:postgres /tempdb \
405405
&& su postgres -c 'pg_ctl -D /tempdb init' \
406-
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
406+
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o "-F --jit=off" start ' \
407407
&& ldconfig \
408408
&& cd regress \
409409
&& make -j${NPROC:-$(nproc)} check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \

17-3.5/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ RUN set -eux \
7878
&& mkdir /tempdb \
7979
&& chown -R postgres:postgres /tempdb \
8080
&& su postgres -c 'pg_ctl -D /tempdb init' \
81-
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
81+
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o "-F --jit=off" start ' \
8282
&& cd regress \
8383
&& make -j${NPROC:-$(nproc)} check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
8484
\

17-3.6/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ RUN set -eux \
7878
&& mkdir /tempdb \
7979
&& chown -R postgres:postgres /tempdb \
8080
&& su postgres -c 'pg_ctl -D /tempdb init' \
81-
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
81+
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o "-F --jit=off" start ' \
8282
&& cd regress \
8383
&& make -j${NPROC:-$(nproc)} check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
8484
\

17-master/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ RUN set -ex \
403403
&& mkdir /tempdb \
404404
&& chown -R postgres:postgres /tempdb \
405405
&& su postgres -c 'pg_ctl -D /tempdb init' \
406-
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
406+
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o "-F --jit=off" start ' \
407407
&& ldconfig \
408408
&& cd regress \
409409
&& make -j${NPROC:-$(nproc)} check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \

18-3.6/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ RUN set -eux \
7878
&& mkdir /tempdb \
7979
&& chown -R postgres:postgres /tempdb \
8080
&& su postgres -c 'pg_ctl -D /tempdb init' \
81-
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
81+
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o "-F --jit=off" start ' \
8282
&& cd regress \
8383
&& make -j${NPROC:-$(nproc)} check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
8484
\

Dockerfile.alpine.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ RUN set -eux \
7878
&& mkdir /tempdb \
7979
&& chown -R postgres:postgres /tempdb \
8080
&& su postgres -c 'pg_ctl -D /tempdb init' \
81-
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o '-F' start ' \
81+
&& su postgres -c 'pg_ctl -D /tempdb -c -l /tmp/logfile -o "-F --jit=off" start ' \
8282
&& cd regress \
8383
&& make -j${NPROC:-$(nproc)} check RUNTESTFLAGS="--extension --verbose" PGUSER=postgres \
8484
\

0 commit comments

Comments
 (0)