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.94.2) (envelope-from ) id 1qgtPb-000AaC-7O for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Sep 2023 20:58:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qgtPZ-00Aj5u-LT for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Sep 2023 20:58:05 +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.94.2) (envelope-from ) id 1qgtPY-00Aj5O-0E for pgsql-bugs@lists.postgresql.org; Thu, 14 Sep 2023 20:58:05 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qgtPN-0056mW-Vc for pgsql-bugs@lists.postgresql.org; Thu, 14 Sep 2023 20:58:02 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 4D6523200979 for ; Thu, 14 Sep 2023 16:57:50 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute6.internal (MEProxy); Thu, 14 Sep 2023 16:57:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eulerto.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1694725069; x=1694811469; bh=Dd 2MrwpHe7+5PhUBfBuI9b/+208CRc82bFXCBBRABPU=; b=mnmZdTrfsXKbBteSoc ekooZ0aI9fcY1vBMR7+kdaZGjDi/FCBdH1yywY3N0TJqJFLIUUcPPNoxUAsySPJ2 lTTJcez8ASMU6GNUpHXy7foXkVvWQraDxt5N+N6bk22Lhtxe1GECHWgyrzaAzOe9 BLBskiMMvqlJ0s1TmIsk1RSHqsD/nHyhjk53sj9wZJkF2O26QNvTXENb/DmNmxKI vbOGtktbkg2rNnxlmmaY4IsNGgZZaTy2L1vLiP+8EzkV0axBfIK/TwT/kOTthDfa FzhCdnopvXLIE4wIRbDjA/V9RuSCJC7pa9i80+5Mxg6LUC7XCPABDE2sRrQjpIxi 2Jvg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1694725069; x=1694811469; bh=Dd2MrwpHe7+5P hUBfBuI9b/+208CRc82bFXCBBRABPU=; b=nDkTTedM2U/TZVn3/PkhpYvO2sHpQ vcWFf2oasWkG3tFwP+ZMm1kczMxGO8WabdaC2/W/c6FUXdGuGDScIEjP9Ww7NCTZ tR/ocYgil22cD4Lxc7XkFum3rkWheJcHgEkOpNHgbMJBqoOqTeac1pJ0/E4+0aCZ p9Se06TMWc7ioPFeTKCEEtq8joy4vzEVf7mndBXVqXm62dAmH2QfXWw262AYw55J YD3RxScxZVZ3idT/rxjnRUWekoIi1mIOUNfPPHwITRx51/vy1lZ/1trLbeAlrClq Ln3rEigh6pBujXxURXu+o62JUAJHLAF0wLilC/ZJQHgqjRkp9S5gAH1VQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudejtddgudehfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrg dtreerreertdenucfhrhhomhepfdfguhhlvghrucfvrghvvghirhgrfdcuoegvuhhlvghr segvuhhlvghrthhordgtohhmqeenucggtffrrghtthgvrhhnpeffveeivdfhfffgtdekff egjedvjeekjeeguefhudekgeekieejgeejhefhfeefleenucffohhmrghinhepvghnthgv rhhprhhishgvuggsrdgtohhmpdhfihhlvghsrdgtrghtnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepvghulhgvrhesvghulhgvrhhtohdrtgho mh X-ME-Proxy: Feedback-ID: i0c21471d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 78AF515A0091; Thu, 14 Sep 2023 16:57:49 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-745-g95dd7bea33-fm-20230905.001-g95dd7bea Mime-Version: 1.0 Message-Id: <3c291501-31a4-4f92-b1eb-eb5e842693a6@app.fastmail.com> In-Reply-To: References: <3030992.1694649537@sss.pgh.pa.us> Date: Thu, 14 Sep 2023 17:57:29 -0300 From: "Euler Taveira" To: pgsql-bugs@lists.postgresql.org Subject: Re: Segmentation Fault Content-Type: multipart/alternative; boundary=3fb5330ada1f4be0be3e4f66576661d0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --3fb5330ada1f4be0be3e4f66576661d0 Content-Type: text/plain On Thu, Sep 14, 2023, at 4:29 PM, Robert Sanford wrote: > And now it's happening again... > > I'm trying to get a core dump but I can't seem to actually generate one. > > When I try to set ulimit -c from the command line, I get a message that I'm not allowed to do that. So I went in and updated /etc/security/limits.conf for the postgres user as follows. > postgres hard core unlimited > postgres soft core unlimited > > I then restarted the postgres server. When I look at the limits in the pid folder I see... > Limit Soft Limit Hard Limit Units > Max cpu time unlimited unlimited seconds > Max file size unlimited unlimited bytes > Max data size unlimited unlimited bytes > Max stack size 8388608 unlimited bytes > Max core file size 0 unlimited bytes Are you using systemd? If so, execute sudo systemctl show -p LimitCORE postgresql@15-main.service (Replace service name accordingly.) If it is not showing infinity as value, you need to edit the service file using the following command: sudo systemctl edit postgresql@15-main.service and add [Service] LimitCORE=infinity Restart the service after it and check again with systemctl show command. You should also check where the operating system is saving the core files. cat /proc/sys/kernel/core_pattern If it says core, it means it is storing it in PGDATA directory. Some OSes can use a command/script to send the core files to another location. -- Euler Taveira EDB https://www.enterprisedb.com/ --3fb5330ada1f4be0be3e4f66576661d0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
On Thu, Sep 14,= 2023, at 4:29 PM, Robert Sanford wrote:
=
And now it's happening again...

I'm trying to get a core dump but I can't seem t= o actually generate one. 

When I try t= o set ulimit -c from the command line, I get a message that I'm not= allowed to do that. So I went in and updated /etc/security/limits.conf = for the postgres user as follows. 
postgres      &nb= sp;  hard    core           = ; unlimited
postgres         soft  &nbs= p; core            unlimited

I then restarted the postgres server. When = I look at the limits in the pid folder I see...
Limit    &nbs= p;                Soft Limit&nbs= p;          Hard Limit      &nbs= p;    Units
Max cpu time          =     unlimited            unlimit= ed            seconds
Max file size&nbs= p;            unlimited     = ;       unlimited           = ; bytes
Max data size             = unlimited            unlimited   = ;         bytes
Max stack size     = ;       8388608            =   unlimited            bytes
Max c= ore file size        0        &n= bsp;           unlimited      &n= bsp;     bytes
<= /div>
<= br>
Are you using systemd? If so, execute

sudo systemctl show -p LimitCORE postgresql@15-main.service

<= div>(Replace service name accordingly.)

If = it is not showing infinity as value, you need to edit the service file u= sing
the following command:

s= udo systemctl edit postgre= sql@15-main.service

and add

[Service]
LimitCORE=3Dinfinity
=

Restart the service after it and check again with sy= stemctl show command.

You should also check= where the operating system is saving the core files.

=
cat /proc/sys/kernel/core_pattern

If it says core, it means it is storing it in PGDATA directory. Some O= Ses can
use a command/script to send the core files to ano= ther location.


--
Eul= er Taveira

--3fb5330ada1f4be0be3e4f66576661d0--