Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C57C61337B68 for ; Tue, 22 Mar 2011 17:46:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 62051-01 for ; Tue, 22 Mar 2011 20:46:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148153.authsmtp.net (outmail148153.authsmtp.net [62.13.148.153]) by mail.postgresql.org (Postfix) with ESMTP id C19F21337BA6 for ; Tue, 22 Mar 2011 17:41:05 -0300 (ADT) Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt10.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p2MKf5dk055460 for ; Tue, 22 Mar 2011 20:41:05 GMT Received: from Sidney-Stratton.local (dsl081-245-111.sfo1.dsl.speakeasy.net [64.81.245.111]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p2MKexVZ048241 for ; Tue, 22 Mar 2011 20:41:00 GMT Message-ID: <4D89095B.9050201@agliodbs.com> Date: Tue, 22 Mar 2011 13:40:59 -0700 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: psql crashes with bad history file in 9.0.3 X-Enigmail-Version: 0.97a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Server-Quench: b2ba372a-54c4-11e0-80b9-0022640b883e X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkbIhBDJB8DSAtK Gl5dNUZcKlAHXFUf XCRcFVZWTyAgG3x3 awtQfQddaE5PVQVq Hk5NXFpTCgdsBAIA Bx8BUBxwchpGNj5y GD03FhYxXEByd0J8 DE9WF29IN2UyOWMY UhFFcgcHdB5Lf0pF d1h/BnoQYWUFZHxk RwVjb2s8Ky1EMSAd SRsENlIfWg4UHyI8 DxoLEX0vHFYZQD8i ZxInLlNUHUBZYwNq dwBJ X-Authentic-SMTP: 61633136333939.1015:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.6 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201103/277 X-Sequence-Number: 29787 All, At two sites I'm not allowed to share data from (grrr), I've encountered core dumps of psql. In once case the core dump happens as soon as you run any query. In the second case, it occurs when you exit. What both sites have in common is that there's something screwy about the .psql_history file. In the first case, moving the history file fixed the issue. In the second case, the shell user has messed up permissions on their home dir and can't save the history file. I'd never encountered this before 9.0.3. Both sites are RHEL. Hopefully I'll run into it somewhere I can do a stack trace ... -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com