Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bn9cs-0000fZ-Rl for pgsql-bugs@arkaria.postgresql.org; Thu, 22 Sep 2016 19:25:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bn9cs-0004aY-58 for pgsql-bugs@arkaria.postgresql.org; Thu, 22 Sep 2016 19:25:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bn9cE-0003ky-0Q for pgsql-bugs@postgresql.org; Thu, 22 Sep 2016 19:25:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bn9c6-0003NK-Vv for pgsql-bugs@postgresql.org; Thu, 22 Sep 2016 19:25:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u8MJOp7d010565; Thu, 22 Sep 2016 15:24:51 -0400 From: Tom Lane To: Keiko Oda cc: pgsql-bugs@postgresql.org Subject: Re: Segmentation fault with pg_restore In-reply-to: References: Comments: In-reply-to Keiko Oda message dated "Tue, 20 Sep 2016 15:30:31 -0700" Date: Thu, 22 Sep 2016 15:24:51 -0400 Message-ID: <10564.1474572291@sss.pgh.pa.us> X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Keiko Oda writes: > I'm seeing "Segmentation fault" with a following pg_restore command, with > the certain dump file (attached to this email, I had to remove some data > from the file as the dump file contains the data that cannot be shared > publicly, but I can reproduce this with full dump file also): This file is corrupt. I think what's happened to it is it went through a Unix->Windows text conversion, replacing bytes that happened to look like newlines with \r\n. The fact that pg_restore segfaulted isn't terribly nice, but the best we could do is give you some nondescript message saying there's something wrong with the file ... regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs