Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jDx2L-0006h4-0N for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 21:12:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDx2J-0005Ke-Ry for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 21:12:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jDwzC-0008J8-Di for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 21:09:23 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDwz8-0003zy-UR for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 21:09:21 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 20AE963A; Mon, 16 Mar 2020 17:09:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 16 Mar 2020 17:09:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=b b3tDOkTzPsylSZ5jkvqmJn93T1GHg9wMGKXf5ZuHoE=; b=hXS7oZCAt1pIg0kBc V3eNKERRR9lJw6t06R7431tfo7BW7DPqp73OVSJh0auI7K1yP36LakXLNdFT8l5X NqOK/yaAXmfICfmJHpz+CsxTxIzSfs40ObuYFraL6G76imyC57A5rGgD2C2Ro/o7 V4T5I6gdEqygdoY3Z3UuXmYUGMH9sEMMgAXc4OVkAoXeJAHzbnP1ZuTevIKoduNR fqo0V7v/DroYHzzf/4JCTvsPO7s5JvEFuLdsYlxBMzDt7me2R9ykM+22aFtstxCJ S9tUvqrsj5KeD7HoC7u1oSdym6E06vy2UkW5uCM7Va7T8FkQBbyLKoiLT0q4TPLZ QVigA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=bb3tDOkTzPsylSZ5jkvqmJn93T1GHg9wMGKXf5ZuH oE=; b=wOUUZyGfEgG1+paHJyoSu78KsFKFJ9+bm+54WtO1QqLtdYw6htSjaoCkl NjJdLm0imGnjul1bGIOkrHc3zDiQmjm6w/2WflIrcg90tJhvof+5qaCnZpAxJNef Er82UGRkQhcNuyNy/Sf9fGn7h6Z0q/7MSXEic77O+0Mlg+n9APxRD97hE/GCXZWe fJ4UAoStjeqo8fAvBW4mns49g44I8ApPkzETvVWY/bFvqAOL70UVNqAyW3aMel8Q 3aKsIyv+8YC9CMZ2oixa4ch8KOZuas4RCjSYJ1pHnM2/iD+uwzfDX8+vnaQbnUsD 8mAMexsW7x4M1bC+9E5+Fm8p4dMNw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeffedgudeggecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecukfhppeejuddrvdduvddruddvledrudelfeenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkh hlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id BD78B30618C1; Mon, 16 Mar 2020 17:09:15 -0400 (EDT) Subject: Re: psql crash on 9.6.16 To: Scot Kreienkamp , Tom Lane Cc: "pgsql-general@lists.postgresql.org" References: <6278.1584373211@sss.pgh.pa.us> From: Adrian Klaver Message-ID: <6f72315f-cc56-83c5-77d7-114ebd73f3ef@aklaver.com> Date: Mon, 16 Mar 2020 14:09:14 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/16/20 12:32 PM, Scot Kreienkamp wrote: > > Scot Kreienkamp writes: >> I was using psql to connect to the local database for a simple update this morning and it crashed. Here's what was printed out after the crash. I was not able to re-create it. > > Hm, the backtrace says the problem is somewhere inside libreadline, > which means it has nothing to do with any SQL-level concepts, but > rather with editing your input text. Did you do anything unusual > while typing that line of input --- say, recall it from history, > or edit it in a way that you don't usually do, or even mistype > some control character you don't usually type? > > Sadly, the visible evidence here doesn't tell us much of anything > about what provoked the crash :-( > > FWIW, there's a pretty good chance that this isn't psql's fault > per se, but a libreadline bug. You might check to see if you can > get a newer readline version installed. > > regards, tom lane > > [Scot Kreienkamp] > Nothing unusual that I can think of. I typed it in by hand, the update succeeded, and I was able to recall it and run it again from history with no crash. > How did you get to the SELECT statement that ultimately crashed the session? -- Adrian Klaver adrian.klaver@aklaver.com