2024-03-21 17:40:23.935 UTC [34683][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-21 17:40:23.936 UTC [34683][postmaster] LOG: listening on Unix socket "/tmp/pg_regress-52MH6o/.s.PGSQL.55312" 2024-03-21 17:40:23.961 UTC [34690][startup] LOG: database system was shut down at 2024-03-21 17:38:20 UTC 2024-03-21 17:40:23.968 UTC [34683][postmaster] LOG: database system is ready to accept connections 2024-03-21 17:40:23.975 UTC [34701][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-03-21 17:40:23.976 UTC [34701][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-21 17:40:23.976 UTC [34701][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=postgres application_name=pg_regress 2024-03-21 17:40:23.993 UTC [34701][client backend] [pg_regress][:0] LOG: disconnection: session time: 0:00:00.018 user=postgres database=postgres host=[local] 2024-03-21 17:40:24.011 UTC [34711][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-03-21 17:40:24.012 UTC [34711][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-21 17:40:24.012 UTC [34711][client backend] [[unknown]][1/1:0] LOG: connection authorized: user=postgres database=postgres application_name=pg_regress 2024-03-21 17:40:24.076 UTC [34711][client backend] [pg_regress][:0] LOG: disconnection: session time: 0:00:00.064 user=postgres database=postgres host=[local] 2024-03-21 17:40:24.110 UTC [34729][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-03-21 17:40:24.120 UTC [34729][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-21 17:40:24.120 UTC [34729][client backend] [[unknown]][2/1:0] LOG: connection authorized: user=postgres database=contrib_regression application_name=pg_regress/test_lfind ================================================================= ==34729==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffc74da1e28 at pc 0x7f1966b9ecfc bp 0x7ffc74da12e0 sp 0x7ffc74da12d8 READ of size 16 at 0x7ffc74da1e28 thread T0 #0 0x7f1966b9ecfb in _mm_loadu_si128 /usr/lib/gcc/x86_64-linux-gnu/10/include/emmintrin.h:703 #1 0x7f1966b9ecfb in vector32_load ../../../../src/include/port/simd.h:139 #2 0x7f1966b9ecfb in pg_lfind32_helper ../../../../src/include/port/pg_lfind.h:106 #3 0x7f1966b9ecfb in pg_lfind32 ../../../../src/include/port/pg_lfind.h:177 #4 0x7f1966b9ecfb in test_lfind32 /tmp/cirrus-ci-build/src/test/modules/test_lfind/test_lfind.c:141 #5 0x55dbb420f61e in ExecInterpExpr /tmp/cirrus-ci-build/src/backend/executor/execExprInterp.c:740 #6 0x55dbb42011aa in ExecInterpExprStillValid /tmp/cirrus-ci-build/src/backend/executor/execExprInterp.c:1915 #7 0x55dbb42c3c20 in ExecEvalExprSwitchContext ../../../src/include/executor/executor.h:356 #8 0x55dbb42c3c20 in ExecProject ../../../src/include/executor/executor.h:390 #9 0x55dbb42c3c20 in ExecResult /tmp/cirrus-ci-build/src/backend/executor/nodeResult.c:135 #10 0x55dbb4235158 in ExecProcNodeFirst /tmp/cirrus-ci-build/src/backend/executor/execProcnode.c:464 #11 0x55dbb421fb33 in ExecProcNode ../../../src/include/executor/executor.h:274 #12 0x55dbb421fb33 in ExecutePlan /tmp/cirrus-ci-build/src/backend/executor/execMain.c:1644 #13 0x55dbb421fff8 in standard_ExecutorRun /tmp/cirrus-ci-build/src/backend/executor/execMain.c:363 #14 0x55dbb42201c2 in ExecutorRun /tmp/cirrus-ci-build/src/backend/executor/execMain.c:304 #15 0x55dbb473a4ca in PortalRunSelect /tmp/cirrus-ci-build/src/backend/tcop/pquery.c:924 #16 0x55dbb473e6bd in PortalRun /tmp/cirrus-ci-build/src/backend/tcop/pquery.c:768 #17 0x55dbb4735a30 in exec_simple_query /tmp/cirrus-ci-build/src/backend/tcop/postgres.c:1274 #18 0x55dbb4739618 in PostgresMain /tmp/cirrus-ci-build/src/backend/tcop/postgres.c:4680 #19 0x55dbb472bfd2 in BackendMain /tmp/cirrus-ci-build/src/backend/tcop/backend_startup.c:101 #20 0x55dbb4581161 in postmaster_child_launch /tmp/cirrus-ci-build/src/backend/postmaster/launch_backend.c:265 #21 0x55dbb4588d0a in BackendStartup /tmp/cirrus-ci-build/src/backend/postmaster/postmaster.c:3593 #22 0x55dbb458941e in ServerLoop /tmp/cirrus-ci-build/src/backend/postmaster/postmaster.c:1674 #23 0x55dbb458b6be in PostmasterMain /tmp/cirrus-ci-build/src/backend/postmaster/postmaster.c:1372 #24 0x55dbb432f526 in main /tmp/cirrus-ci-build/src/backend/main/main.c:197 #25 0x7f19751a7d09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #26 0x55dbb3cbf469 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/postgres+0x402469) Address 0x7ffc74da1e28 is located in stack of thread T0 at offset 2872 in frame #0 0x7f1966b9b79d 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: 0x10000e9ac370: f2 f2 00 00 f2 f2 00 00 f2 f2 00 00 f2 f2 00 00 0x10000e9ac380: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10000e9ac390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10000e9ac3a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10000e9ac3b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x10000e9ac3c0: 00 00 00 00 00[04]f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 0x10000e9ac3d0: f3 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 0x10000e9ac3e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10000e9ac3f0: 00 00 f1 f1 f1 f1 f1 f1 01 f2 01 f3 f3 f3 00 00 0x10000e9ac400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10000e9ac410: 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 ==34729==ABORTING 2024-03-21 17:40:24.988 UTC [34683][postmaster] LOG: received fast shutdown request 2024-03-21 17:40:24.988 UTC [34683][postmaster] LOG: aborting any active transactions 2024-03-21 17:40:25.000 UTC [34683][postmaster] LOG: background worker "logical replication launcher" (PID 34700) exited with exit code 1 2024-03-21 17:40:25.629 UTC [34683][postmaster] LOG: server process (PID 34729) was terminated by signal 6: Aborted 2024-03-21 17:40:25.629 UTC [34683][postmaster] DETAIL: Failed process was running: SELECT test_lfind32(); 2024-03-21 17:40:25.629 UTC [34683][postmaster] LOG: terminating any other active server processes 2024-03-21 17:40:25.630 UTC [34683][postmaster] LOG: abnormal database system shutdown 2024-03-21 17:40:25.644 UTC [34683][postmaster] LOG: database system is shut down