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 1p850g-00035z-7j for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Dec 2022 19:44:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p850f-0007mA-2q for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Dec 2022 19:44:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p850e-0007lv-Qs for pgsql-bugs@lists.postgresql.org; Wed, 21 Dec 2022 19:44:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p850c-0002IO-Bc for pgsql-bugs@lists.postgresql.org; Wed, 21 Dec 2022 19:44:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2BLJi8FH1583846; Wed, 21 Dec 2022 14:44:08 -0500 From: Tom Lane To: oserov@clickup.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17727: A query crashes server process: ... was terminated by signal 7: Bus error / Segmentation Fault In-reply-to: <17727-c9a10259e190c8b1@postgresql.org> References: <17727-c9a10259e190c8b1@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 21 Dec 2022 19:06:32 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1583844.1671651848.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 21 Dec 2022 14:44:08 -0500 Message-ID: <1583845.1671651848@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > I have a query that consistently results in server crash and "server pro= cess > ... was terminated by signal 7: Bus error" running on any replica or mas= ter > of the DB. I also have a more generic query that also crashes other > masters/replicas in prod environment but with 'Segmentation Fault'. I ca= n't > reproduce the same crash in other non-prod environments. I am unable to > provide repro steps that could reproduce this error on a local machine a= nd > looking for more guidance how to debug/mitigate this error. = If you can provide a stack trace from the crash, that might be enough to diagnose it. https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_= backend However ... the first thing I'd probably try is turning off JIT. We've heard some reports suggesting that that causes trouble on ARM machines. regards, tom lane