Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc7c52aa

Browse files
committed
Stabilize legacy tap testing mode by disabling ASLR for that test run
1 parent1b83b97 commitc7c52aa

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)

[8]ページ先頭

©2009-2025 Movatter.jp