Hi Tom, I'm starting tests using ASAN (address sanitizer) at Windows side, using msvc 2019 (built in asan support):
First test report this: 2020-08-24 10:02:33.220 -03 postmaster[6656] LOG: starting PostgreSQL 14devel, compiled by Visual C++ build 1927, 64-bit 2020-08-24 10:02:33.228 -03 postmaster[6656] LOG: listening on IPv6 address "::1", port 58080 2020-08-24 10:02:33.228 -03 postmaster[6656] LOG: listening on IPv4 address "127.0.0.1", port 58080 2020-08-24 10:02:33.415 -03 startup[1604] LOG: database system was shut down at 2020-08-24 10:02:28 -03 2020-08-24 10:02:33.495 -03 postmaster[6656] LOG: database system is ready to accept connections 2020-08-24 10:02:34.580 -03 checkpointer[5680] LOG: checkpoint starting: immediate force wait flush-all 2020-08-24 10:02:34.598 -03 checkpointer[5680] LOG: checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.006 s, sync=0.000 s, total=0.018 s; sync files=0, longest=0.000 s, average=0.000 s; distance=1 kB, estimate=1 kB 2020-08-24 10:02:35.146 -03 checkpointer[5680] LOG: checkpoint starting: immediate force wait 2020-08-24 10:02:35.155 -03 checkpointer[5680] LOG: checkpoint complete: wrote 0 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.002 s, sync=0.000 s, total=0.009 s; sync files=0, longest=0.000 s, average=0.000 s; distance=0 kB, estimate=1 kB ================================================================= ==8400==AddressSanitizer CHECK failed: D:\agent\_work\9\s\src\vctools\crt\asan\llvm\compiler-rt\lib\asan\asan_thread.cc:356 "((ptr[0] == kCurrentStackFrameMagic)) != (0)" (0x0, 0x0) #0 0x7ffe985d0148 (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\clang_rt.asan_dynamic-x86_64.dll+0x180050148) #1 0x7ffe98597f3f (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\clang_rt.asan_dynamic-x86_64.dll+0x180017f3f) #2 0x7ffe985d5129 (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\clang_rt.asan_dynamic-x86_64.dll+0x180055129) #3 0x7ffe985b1de1 (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\clang_rt.asan_dynamic-x86_64.dll+0x180031de1) #4 0x7ffe985b0dea (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\clang_rt.asan_dynamic-x86_64.dll+0x180030dea) #5 0x7ffe985b30b5 (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\clang_rt.asan_dynamic-x86_64.dll+0x1800330b5) #6 0x7ffe985ce2bb (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\clang_rt.asan_dynamic-x86_64.dll+0x18004e2bb) #7 0x7ffe985d1d11 (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\clang_rt.asan_dynamic-x86_64.dll+0x180051d11) #8 0x14123da71 in dopr C:\dll\postgres\src\port\snprintf.c:441 #9 0x14123c127 in pg_vsnprintf C:\dll\postgres\src\port\snprintf.c:195 #10 0x141214cc0 in pvsnprintf C:\dll\postgres\src\common\psprintf.c:110 #11 0x14121cefe in appendStringInfoVA C:\dll\postgres\src\common\stringinfo.c:149 #12 0x14121cd9d in appendStringInfo C:\dll\postgres\src\common\stringinfo.c:103 #13 0x1411134c6 in send_message_to_server_log C:\dll\postgres\src\backend\utils\error\elog.c:2923 #14 0x14110d4f1 in EmitErrorReport C:\dll\postgres\src\backend\utils\error\elog.c:1456 #15 0x140c7537c in PostgresMain C:\dll\postgres\src\backend\tcop\postgres.c:4079 #16 0x140a98f28 in BackendRun C:\dll\postgres\src\backend\postmaster\postmaster.c:4530 #17 0x140a932ef in SubPostmasterMain C:\dll\postgres\src\backend\postmaster\postmaster.c:5053 #18 0x14069dfab in main C:\dll\postgres\src\backend\main\main.c:186 #19 0x1412694c8 in invoke_main D:\agent\_work\9\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78 #20 0x14126941d in __scrt_common_main_seh D:\agent\_work\9\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 #21 0x1412692dd in __scrt_common_main D:\agent\_work\9\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:330 #22 0x141269538 in mainCRTStartup D:\agent\_work\9\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:16 #23 0x7ffed1d46fd3 (C:\WINDOWS\System32\KERNEL32.DLL+0x180016fd3) #24 0x7ffed30fcec0 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x18004cec0) I'm not sure if ASAN can report false positives or if this CHECK error is own asan bug? Can you take a look, please? regards, Ranier Vilela