Re: ccache, MSVC, and meson - Mailing list pgsql-hackers

From Justin Pryzby
Subject Re: ccache, MSVC, and meson
Date
Msg-id 20220526032612.GW19626@telsasoft.com
Whole thread Raw
In response to Re: ccache, MSVC, and meson  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Tue, May 24, 2022 at 09:48:17PM -0700, Andres Freund wrote:
> > And when I pass /Oy- to "avoid omitting" frame pointers, several tests crash...
> 
> Huh. Do you get a backtrace containing anything remotely meaningful?

They are interesting, but maybe not meaningful.

I tested a bunch of different optimization cases, this is just one.  But the
other failures are similar.

https://cirrus-ci.com/task/5710595927310336
compiled with /Z7 /O1, test world fails in 15min (compared to ~18min without
/O1)

Child-SP          RetAddr               Call Site
000000b6`e27fed80 00007ffa`93b5b6ba     pg_stat_statements!pg_stat_statements_reset_1_7+0x8a98
000000b6`e27fedb0 00007ffa`93b5a731     pg_stat_statements!pg_stat_statements_reset_1_7+0x8a5e
000000b6`e27fedf0 00007ffa`93b5a48c     pg_stat_statements!pg_stat_statements_reset_1_7+0x7ad5
000000b6`e27feeb0 00007ffa`93b517b5     pg_stat_statements!pg_stat_statements_reset_1_7+0x7830
000000b6`e27feee0 00007ffa`93b52c6f     pg_stat_statements!PG_init+0x7ad
000000b6`e27fef80 00007ff6`5544ebc3     pg_stat_statements!pg_stat_statements_reset_1_7+0x13
000000b6`e27fefb0 00007ff6`5546fa07     postgres!ExecEvalXmlExpr+0x9b3
000000b6`e27ff040 00007ff6`5530639c     postgres!ExecReScanResult+0x1ef
000000b6`e27ff080 00007ff6`55306e91     postgres!ExecWithCheckOptions+0x4d0
000000b6`e27ff0c0 00007ffa`93b52f0c     postgres!standard_ExecutorRun+0x13d
000000b6`e27ff140 00007ff6`550e636d     pg_stat_statements!pg_stat_statements_reset_1_7+0x2b0
000000b6`e27ff2c0 00007ff6`550e5ba0     postgres!PortalRunFetch+0x645
000000b6`e27ff300 00007ff6`55013d31     postgres!PortalRun+0x24c
000000b6`e27ff4e0 00007ff6`55010db9     postgres!die+0x1cad
000000b6`e27ff5b0 00007ff6`5500e004     postgres!PostgresMain+0xb31
000000b6`e27ff7a0 00007ff6`55001592     postgres!SubPostmasterMain+0x230
000000b6`e27ff9d0 00007ff6`554c6ef0     postgres!main+0x2a2
000000b6`e27ffbc0 00007ffa`91217974     postgres!pg_check_dir+0x68c
000000b6`e27ffc00 00007ffa`9c84a2f1     KERNEL32!BaseThreadInitThunk+0x14
000000b6`e27ffc30 00000000`00000000     ntdll!RtlUserThreadStart+0x21

2022-05-23 09:05:28.893 GMT postmaster[6644] LOG:  server process (PID 6388) was terminated by exception 0xC0000354
2022-05-23 09:05:28.893 GMT postmaster[6644] DETAIL:  Failed process was running: SELECT pg_stat_statements_reset();

Child-SP          RetAddr               Call Site
0000004e`65ffbd40 00007ffa`93b66d3a     basebackup_to_shell!PG_init+0x5c8c
0000004e`65ffbd70 00007ffa`93b67898     basebackup_to_shell!PG_init+0x5c52
0000004e`65ffbdb0 00007ffa`93b6817e     basebackup_to_shell!PG_init+0x67b0
0000004e`65ffbe10 00007ffa`93b656bb     basebackup_to_shell!PG_init+0x7096
0000004e`65ffbe40 00007ffa`93b65441     basebackup_to_shell!PG_init+0x45d3
0000004e`65ffbea0 00007ffa`93b653d2     basebackup_to_shell!PG_init+0x4359
0000004e`65ffbee0 00007ffa`93b6556e     basebackup_to_shell!PG_init+0x42ea
0000004e`65ffbf10 00007ffa`93b657be     basebackup_to_shell!PG_init+0x4486
0000004e`65ffbf90 00007ffa`93b616ce     basebackup_to_shell!PG_init+0x46d6
0000004e`65ffc010 00007ffa`93b61041     basebackup_to_shell!PG_init+0x5e6
0000004e`65ffc040 00007ff6`5545be58     basebackup_to_shell+0x1041
0000004e`65ffc070 00007ff6`55289171     postgres!bbsink_zstd_new+0x100
0000004e`65ffc0b0 00007ff6`55288bd1     postgres!SendBaseBackup+0x2c8d
0000004e`65ffc160 00007ff6`55288b68     postgres!SendBaseBackup+0x26ed
0000004e`65ffce90 00007ff6`55288b68     postgres!SendBaseBackup+0x2684
0000004e`65ffdbc0 00007ff6`552878d1     postgres!SendBaseBackup+0x2684
0000004e`65ffe8f0 00007ff6`5528661f     postgres!SendBaseBackup+0x13ed
0000004e`65fff110 00007ff6`550ad66c     postgres!SendBaseBackup+0x13b
0000004e`65fff300 00007ff6`55010da9     postgres!exec_replication_command+0x3c0
0000004e`65fff340 00007ff6`5500e004     postgres!PostgresMain+0xb21
0000004e`65fff530 00007ff6`55001592     postgres!SubPostmasterMain+0x230
0000004e`65fff760 00007ff6`554c6ef0     postgres!main+0x2a2
0000004e`65fff950 00007ffa`91217974     postgres!pg_check_dir+0x68c
0000004e`65fff990 00007ffa`9c84a2f1     KERNEL32!BaseThreadInitThunk+0x14
0000004e`65fff9c0 00000000`00000000     ntdll!RtlUserThreadStart+0x21

2022-05-23 09:10:16.466 GMT [5404][postmaster] LOG:  server process (PID 1132) was terminated by exception 0xC0000354

-- 
Justin



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Bump MIN_WINNT to 0x0600 (Vista) as minimal runtime in 16~
Next
From: Amit Kapila
Date:
Subject: Re: bogus: logical replication rows/cols combinations