Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nu48o-0004jC-9L for pgsql-hackers@arkaria.postgresql.org; Thu, 26 May 2022 03:26:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nu48n-0001vG-0V for pgsql-hackers@arkaria.postgresql.org; Thu, 26 May 2022 03:26:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nu48m-0001v7-JQ for pgsql-hackers@lists.postgresql.org; Thu, 26 May 2022 03:26:24 +0000 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nu48e-0002UK-Lk for pgsql-hackers@postgresql.org; Thu, 26 May 2022 03:26:23 +0000 Received: by mail-il1-x12a.google.com with SMTP id j15so319179ilo.5 for ; Wed, 25 May 2022 20:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fsE1Ktw1bAVHDRvCIBWJyHEeP6Ny4/tO6jZk/EOd1GM=; b=aj71+bbRGooxT7V4RTTtiVJHBYRzOw2ehj1oMNSYOTWzV+MPLLUNHnns6R6Nb2sdYz sQIeEY6DyOuUoa/XW5yNbPSyDrfPNw4KrCHQ5rzmDHSXkzAZxxXl7qtueimzZGt5BiZQ ZCQhXyLGo2crZx4k1DM7QzXD7A8SRQHiu758+xTxvkRuJOYAKhvaDX1w6f20iKK3HI2i GTmPIOpNzyrKz/jpKRO1efCKWd+ZkSl6I1cUra7HmC4s0oJ5fCNRGrwDtO5J8uQBFrUf NjHnb2V84y/t+3t4fN57LTkA77s6nmb/juBZOB1sY9+SnSLCDBD03KYumHXhEJcYzLWt dH/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fsE1Ktw1bAVHDRvCIBWJyHEeP6Ny4/tO6jZk/EOd1GM=; b=O4HBlo6BevHGkZJ7O5vn5D8TSLdgpvvG6hfKajO9UIfTiTUUdFYDiKJGGg+WNaFJqY xxX5RFtCD+peo5VBSEDoUaMTONZSX8x1FLTrNvGQf82Assa5Vraia1d8MGsc2tpihGcd Bw5WDyLZwT+SCRefPoZH1zwZ5aWOJ+QahdFTKjL/LOwPFiAPo32hxXQYPFEDBoBt1eq4 OF/GaRm9HJvPyeq6vvKHM4ttOS/J5q+Bwh59KhOsUB8/Nktx3FJoTEzN8fFSs/NwybgM EMSUgWRW1KhM2iJg+iKaQCUf3g8U1Z7Qdv/p3RvFlagXXAII2OEFIAi2BiFnbR9cRRuf xHeA== X-Gm-Message-State: AOAM533EgzX2Fl6jTvBw5asnogup0PTRVZe2DG6jjY5rkEuTg3RR9vgk vjz7ywtbMGhO5ZPfGg5nt7F7/g== X-Google-Smtp-Source: ABdhPJw+UuYvuABbDOPpKlguo8wjLxdScUjYFVGRBTRK5qyYL1LvyBOYJBX9/UxTzmZ5jCND4hIG8Q== X-Received: by 2002:a92:6e0b:0:b0:2c9:a276:58cc with SMTP id j11-20020a926e0b000000b002c9a27658ccmr18400303ilc.199.1653535574599; Wed, 25 May 2022 20:26:14 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id g5-20020a0566380c4500b0032eca3552fesm136998jal.143.2022.05.25.20.26.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 May 2022 20:26:14 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id EEA158008F8; Wed, 25 May 2022 22:26:12 -0500 (CDT) Date: Wed, 25 May 2022 22:26:12 -0500 From: Justin Pryzby To: Andres Freund Cc: Tom Lane , Robert Haas , Andrew Dunstan , pgsql-hackers@postgresql.org, Thomas Munro , Melanie Plageman , Peter Eisentraut , Daniel Gustafsson Subject: Re: ccache, MSVC, and meson Message-ID: <20220526032612.GW19626@telsasoft.com> References: <20220522232606.GZ19626@telsasoft.com> <20220524193059.n432rlzezckxr6x2@alap3.anarazel.de> <20220524195202.GK19626@telsasoft.com> <20220524203039.xyqjggtytsyizsbl@alap3.anarazel.de> <20220524221747.GM19626@telsasoft.com> <20220525044817.kczou2nkbtk46itj@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220525044817.kczou2nkbtk46itj@alap3.anarazel.de> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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