Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w2VWw-000LvB-1v for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Mar 2026 14:36:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2VWv-0026kb-1H for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Mar 2026 14:36:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w2VWv-0026kS-0L for pgsql-hackers@lists.postgresql.org; Tue, 17 Mar 2026 14:36:21 +0000 Received: from uucp.dinoex.org ([2a0b:f840::12]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w2VWs-00000000cK9-1dJx for pgsql-hackers@lists.postgresql.org; Tue, 17 Mar 2026 14:36:20 +0000 Received: from uucp.dinoex.org (uucp.dinoex.org [IPv6:2a0b:f840:0:0:0:0:0:12]) by uucp.dinoex.org (8.18.2/8.18.2) with ESMTPS id 62HEa7ND077590 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 17 Mar 2026 15:36:08 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) ARC-Seal: i=1; a=rsa-sha256; d=uucp.dinoex.org; s=M20221114; t=1773758170; cv=none; b=a3ysQBAT/1KdyustfzpgNJR1fsPJR4cBcaFLkvkGwSINay6zzK1Qc9kZaIsNni3WieE/fAEy8ceIKyg0eY/t30UM8+sT2QaNPkTOFKom6D2HNbJGH3oYg3RRVQF7CTNOQyCBiG3YcfCQdPqM2kojcG7NvyJOfLmL5FcjVbKgrbI= ARC-Message-Signature: i=1; a=rsa-sha256; d=uucp.dinoex.org; s=M20221114; t=1773758170; c=relaxed/simple; bh=uamk/wBOwO3FkcQLBciEi1K78L+5SC1lzoKR/dA+T90=; h=Received:Received:Received:Received:X-Authentication-Warning:Date: From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:X-Milter:X-Greylist; b=O73gyyxrmpUSECpBUs0RLB3obEPibgMuLG/zWu37bUfXrprYClrS8rctORy94fHUoDov4m0q1wbYdi8i/fqyqZTVhTIRDDnNMS4/dbFYcXaBG0sWwjbrjGx/BEJbPbiXW7jiWk2yR7J8b57iBwsofpOKgizYm192/74xvvayX6A= ARC-Authentication-Results: i=1; uucp.dinoex.org Received: (from uucp@localhost) by uucp.dinoex.org (8.18.2/8.18.2/Submit) with UUCP id 62HEa7LS077589; Tue, 17 Mar 2026 15:36:07 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) Received: from disp.intra.daemon.contact (disp-e.intra.daemon.contact [IPv6:fd00:0:0:0:0:0:0:112]) by admn.intra.daemon.contact (8.18.1/8.18.1) with ESMTPS id 62HEVLJQ007366 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Tue, 17 Mar 2026 15:31:21 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) Received: from disp.intra.daemon.contact (localhost [127.0.0.1]) by disp.intra.daemon.contact (8.18.1/8.18.1) with ESMTPS id 62HETpNL055429 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 17 Mar 2026 15:29:51 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) Received: (from pmc@localhost) by disp.intra.daemon.contact (8.18.1/8.18.1/Submit) id 62HETpul055428; Tue, 17 Mar 2026 15:29:51 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) X-Authentication-Warning: disp.intra.daemon.contact: pmc set sender to pmc@citylink.dinoex.sub.org using -f Date: Tue, 17 Mar 2026 15:29:51 +0100 From: "Peter 'PMc' Much" To: Tomas Vondra Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Need help debugging SIGBUS crashes Message-ID: References: <33d99d2f-4020-4615-9314-2f1a19927fa6@vondra.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <33d99d2f-4020-4615-9314-2f1a19927fa6@vondra.me> X-Milter: Spamilter (Reciever: uucp.dinoex.org; Sender-ip: 0:0:2a0b:f840::; Sender-helo: uucp.dinoex.org;) X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (uucp.dinoex.org [IPv6:2a0b:f840:0:0:0:0:0:12]); Tue, 17 Mar 2026 15:36:10 +0100 (CET) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Mar 17, 2026 at 02:40:24PM +0100, Tomas Vondra wrote: ! I agree it's hard to deduce anything from the backtraces with the ! interesting bits optimized out. Rebuilding the OS with -O0 might be an ! overkill, I'd probably start by building just Postgres. That'd at least ! give us some idea what happens there, you could inspect the memory ! context etc. ! ! I'm not a FreeBSD expert, but this seems a bit suspicious: ! ! frame #23: 0x0000000822ae79b6 ! libthr.so.3`handle_signal(actp=0x0000000820c5c600, sig=30, ! info=0x0000000820c5c9f0, ucp=0x0000000820c5c680) at thr_sig.c:318:3 ! frame #24: 0x0000000822ae6eba libthr.so.3`thr_sighandler(sig=30, ! info=0x0000000820c5c9f0, _ucp=0x0000000820c5c680) at thr_sig.c:261:2 ! ! I mean, libthr seems to be a 1:1 with pthreads. Are you using threads in ! some way? Perhaps an extension using threads? That could cause weird ! failures, including weird SIGBUS ones. Hi, thanks for noting this - I didn't look that far up the stack. The only extensions in this specific cluster are pg_freespacemap and plpgsql. Others may have hstore and plpython3u. I have currently no clue where this could come from, but will keep it in mind. Thank You for noticing it. PMc