2024-03-24 21:07:44.836 UTC [25405][postmaster] LOG: starting PostgreSQL 17devel on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit 2024-03-24 21:07:44.836 UTC [25405][postmaster] LOG: listening on Unix socket "/tmp/pg_regress-eSiCiq/.s.PGSQL.55312" 2024-03-24 21:07:44.871 UTC [25416][startup] LOG: database system was shut down at 2024-03-24 21:06:37 UTC 2024-03-24 21:07:44.883 UTC [25405][postmaster] LOG: database system is ready to accept connections 2024-03-24 21:07:44.900 UTC [25419][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-03-24 21:07:44.900 UTC [25419][client backend] [[unknown]][:0] FATAL: the database system is starting up 2024-03-24 21:07:44.971 UTC [25424][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-03-24 21:07:44.972 UTC [25424][client backend] [[unknown]][0/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/src/test/modules/test_lfind/tmp_check/data/pg_hba.conf:117) 2024-03-24 21:07:44.972 UTC [25424][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=postgres application_name=pg_regress 2024-03-24 21:07:45.020 UTC [25424][client backend] [pg_regress][:0] LOG: disconnection: session time: 0:00:00.055 user=postgres database=postgres host=[local] 2024-03-24 21:07:45.051 UTC [25432][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-03-24 21:07:45.052 UTC [25432][client backend] [[unknown]][1/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/src/test/modules/test_lfind/tmp_check/data/pg_hba.conf:117) 2024-03-24 21:07:45.052 UTC [25432][client backend] [[unknown]][1/1:0] LOG: connection authorized: user=postgres database=postgres application_name=pg_regress 2024-03-24 21:07:45.145 UTC [25432][client backend] [pg_regress][:0] LOG: disconnection: session time: 0:00:00.098 user=postgres database=postgres host=[local] 2024-03-24 21:07:45.194 UTC [25442][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-03-24 21:07:45.196 UTC [25442][client backend] [[unknown]][2/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/src/test/modules/test_lfind/tmp_check/data/pg_hba.conf:117) 2024-03-24 21:07:45.196 UTC [25442][client backend] [[unknown]][2/1:0] LOG: connection authorized: user=postgres database=contrib_regression application_name=pg_regress/test_lfind ================================================================= ==25442==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffd220377f8 at pc 0x7ff1f5a84cfc bp 0x7ffd22036cb0 sp 0x7ffd22036ca8 READ of size 16 at 0x7ffd220377f8 thread T0 #0 0x7ff1f5a84cfb in _mm_loadu_si128 /usr/lib/gcc/x86_64-linux-gnu/10/include/emmintrin.h:703 #1 0x7ff1f5a84cfb in vector32_load ../../../../src/include/port/simd.h:124 #2 0x7ff1f5a84cfb in pg_lfind32_helper ../../../../src/include/port/pg_lfind.h:107 #3 0x7ff1f5a84cfb in pg_lfind32 ../../../../src/include/port/pg_lfind.h:179 #4 0x7ff1f5a84cfb in test_lfind32 /tmp/cirrus-ci-build/src/test/modules/test_lfind/test_lfind.c:141 #5 0x559ea734f9e5 in ExecInterpExpr /tmp/cirrus-ci-build/src/backend/executor/execExprInterp.c:740 #6 0x559ea7341577 in ExecInterpExprStillValid /tmp/cirrus-ci-build/src/backend/executor/execExprInterp.c:1915 #7 0x559ea7404360 in ExecEvalExprSwitchContext ../../../src/include/executor/executor.h:356 #8 0x559ea7404360 in ExecProject ../../../src/include/executor/executor.h:390 #9 0x559ea7404360 in ExecResult /tmp/cirrus-ci-build/src/backend/executor/nodeResult.c:135 #10 0x559ea7375503 in ExecProcNodeFirst /tmp/cirrus-ci-build/src/backend/executor/execProcnode.c:464 #11 0x559ea735fefa in ExecProcNode ../../../src/include/executor/executor.h:274 #12 0x559ea735fefa in ExecutePlan /tmp/cirrus-ci-build/src/backend/executor/execMain.c:1644 #13 0x559ea73603bf in standard_ExecutorRun /tmp/cirrus-ci-build/src/backend/executor/execMain.c:363 #14 0x559ea7360589 in ExecutorRun /tmp/cirrus-ci-build/src/backend/executor/execMain.c:304 #15 0x559ea787b2db in PortalRunSelect /tmp/cirrus-ci-build/src/backend/tcop/pquery.c:924 #16 0x559ea787f4ce in PortalRun /tmp/cirrus-ci-build/src/backend/tcop/pquery.c:768 #17 0x559ea7876841 in exec_simple_query /tmp/cirrus-ci-build/src/backend/tcop/postgres.c:1274 #18 0x559ea787a429 in PostgresMain /tmp/cirrus-ci-build/src/backend/tcop/postgres.c:4680 #19 0x559ea786cde3 in BackendMain /tmp/cirrus-ci-build/src/backend/tcop/backend_startup.c:101 #20 0x559ea76c1fc5 in postmaster_child_launch /tmp/cirrus-ci-build/src/backend/postmaster/launch_backend.c:265 #21 0x559ea76c9b6e in BackendStartup /tmp/cirrus-ci-build/src/backend/postmaster/postmaster.c:3593 #22 0x559ea76ca282 in ServerLoop /tmp/cirrus-ci-build/src/backend/postmaster/postmaster.c:1674 #23 0x559ea76cc522 in PostmasterMain /tmp/cirrus-ci-build/src/backend/postmaster/postmaster.c:1372 #24 0x559ea746fc66 in main /tmp/cirrus-ci-build/src/backend/main/main.c:197 #25 0x7ff20408dd09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #26 0x559ea6dfe469 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/postgres+0x402469) Address 0x7ffd220377f8 is located in stack of thread T0 at offset 2872 in frame #0 0x7ff1f5a8179d in test_lfind32 /tmp/cirrus-ci-build/src/test/modules/test_lfind/test_lfind.c:121 This frame has 73 object(s): [32, 48) 'vals1' [64, 80) 'vals2' [96, 112) 'vals3' [128, 144) 'vals4' [160, 176) 'vals1' [192, 208) 'vals2' [224, 240) 'vals3' [256, 272) 'vals4' [288, 304) 'vals1' [320, 336) 'vals2' [352, 368) 'vals3' [384, 400) 'vals4' [416, 432) 'vals1' [448, 464) 'vals2' [480, 496) 'vals3' [512, 528) 'vals4' [544, 560) 'vals1' [576, 592) 'vals2' [608, 624) 'vals3' [640, 656) 'vals4' [672, 688) 'vals1' [704, 720) 'vals2' [736, 752) 'vals3' [768, 784) 'vals4' [800, 816) 'vals1' [832, 848) 'vals2' [864, 880) 'vals3' [896, 912) 'vals4' [928, 944) 'vals1' [960, 976) 'vals2' [992, 1008) 'vals3' [1024, 1040) 'vals4' [1056, 1072) 'vals1' [1088, 1104) 'vals2' [1120, 1136) 'vals3' [1152, 1168) 'vals4' [1184, 1200) 'vals1' [1216, 1232) 'vals2' [1248, 1264) 'vals3' [1280, 1296) 'vals4' [1312, 1328) 'vals1' [1344, 1360) 'vals2' [1376, 1392) 'vals3' [1408, 1424) 'vals4' [1440, 1456) 'vals1' [1472, 1488) 'vals2' [1504, 1520) 'vals3' [1536, 1552) 'vals4' [1568, 1584) 'vals1' [1600, 1616) 'vals2' [1632, 1648) 'vals3' [1664, 1680) 'vals4' [1696, 1712) 'vals1' [1728, 1744) 'vals2' [1760, 1776) 'vals3' [1792, 1808) 'vals4' [1824, 1840) 'vals1' [1856, 1872) 'vals2' [1888, 1904) 'vals3' [1920, 1936) 'vals4' [1952, 1968) 'vals1' [1984, 2000) 'vals2' [2016, 2032) 'vals3' [2048, 2064) 'vals4' [2080, 2096) 'vals1' [2112, 2128) 'vals2' [2144, 2160) 'vals3' [2176, 2192) 'vals4' [2208, 2224) 'vals1' [2240, 2256) 'vals2' [2272, 2288) 'vals3' [2304, 2320) 'vals4' [2336, 2876) 'test_array' (line 123) <== Memory access at offset 2872 partially overflows this variable HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-buffer-overflow /usr/lib/gcc/x86_64-linux-gnu/10/include/emmintrin.h:703 in _mm_loadu_si128 Shadow bytes around the buggy address: 0x1000243feea0: 00 00 f2 f2 00 00 f2 f2 00 00 f2 f2 00 00 f2 f2 0x1000243feeb0: 00 00 f2 f2 00 00 f2 f2 00 00 f2 f2 00 00 00 00 0x1000243feec0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000243feed0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000243feee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x1000243feef0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[04] 0x1000243fef00: f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 0x1000243fef10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000243fef20: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 0x1000243fef30: f1 f1 01 f2 01 f3 f3 f3 00 00 00 00 00 00 00 00 0x1000243fef40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc ==25442==ABORTING 2024-03-24 21:07:46.201 UTC [25405][postmaster] LOG: received fast shutdown request 2024-03-24 21:07:46.201 UTC [25405][postmaster] LOG: aborting any active transactions 2024-03-24 21:07:46.206 UTC [25405][postmaster] LOG: background worker "logical replication launcher" (PID 25422) exited with exit code 1 2024-03-24 21:07:46.796 UTC [25405][postmaster] LOG: server process (PID 25442) was terminated by signal 6: Aborted 2024-03-24 21:07:46.796 UTC [25405][postmaster] DETAIL: Failed process was running: SELECT test_lfind32(); 2024-03-24 21:07:46.796 UTC [25405][postmaster] LOG: terminating any other active server processes 2024-03-24 21:07:46.798 UTC [25405][postmaster] LOG: abnormal database system shutdown 2024-03-24 21:07:46.824 UTC [25405][postmaster] LOG: database system is shut down