Skip to content

Commit c7c52aa

Browse files
committed
Stabilize legacy tap testing mode by disabling ASLR for that test run
1 parent 1b83b97 commit c7c52aa

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

run_tests.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,17 @@ if [ "$TEST_CASE" = "tap" ]; then
8484

8585
# Run tap tests
8686
echo "############### Running tap tests"
87-
make -C postgres/contrib/ptrack check || status=$?
87+
if [ "$MODE" = "legacy" ]; then
88+
# There is a known issue with attaching shared memory segment using the same
89+
# address each time, when EXEC_BACKEND mechanism is turned on. It happens due
90+
# to the ASLR address space randomization, so we are trying to attach a segment
91+
# to the already occupied location. That way we simply turning off ASLR here.
92+
#
93+
# Postgres comment: https://github.com/postgres/postgres/blob/5cbfce562f7cd2aab0cdc4694ce298ec3567930e/src/backend/postmaster/postmaster.c#L4929
94+
setarch x86_64 --addr-no-randomize make -C postgres/contrib/ptrack check || status=$?
95+
else
96+
make -C postgres/contrib/ptrack check || status=$?
97+
fi
8898

8999
else
90100

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy