Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xx8b8-00065v-Ai for pgsql-bugs@arkaria.postgresql.org; Sat, 06 Dec 2014 06:12:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xx8b6-0005tt-Tn for pgsql-bugs@arkaria.postgresql.org; Sat, 06 Dec 2014 06:12:04 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xx8b4-0005tk-Sv for pgsql-bugs@postgresql.org; Sat, 06 Dec 2014 06:12:03 +0000 Received: from omta01.potomac.co.businessclass.comcast.net ([76.96.107.71]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Xx8aw-0005XG-Rd for pgsql-bugs@postgresql.org; Sat, 06 Dec 2014 06:12:00 +0000 Received: from charmander.telsasoft ([50.244.222.1]) by omta01.potomac.co.businessclass.comcast.net with bizsmtp id Q6Bs1p00M02RK5N016BsNi; Sat, 06 Dec 2014 06:11:53 +0000 Received: from pryzbyj (pryzbyj.dhcp.telsasoft [10.0.0.194]) by charmander.telsasoft (Postfix) with ESMTPS id 3E3E05605E2 for ; Sat, 6 Dec 2014 00:11:52 -0600 (CST) Received: by pryzbyj (Postfix, from userid 1000) id 1838780207E; Sat, 6 Dec 2014 00:11:52 -0600 (CST) Date: Sat, 6 Dec 2014 00:11:52 -0600 From: Justin Pryzby To: pgsql-bugs@postgresql.org Subject: pg_restore crashes passing NULL to strcmp (9.4 rc1) Message-ID: <20141206061151.GA725@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) 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 I'm not sure what's wrong with this dump file; I remember copying it with rsync some months ago, experiencing the crash, and recopying it, not able to break off and go into debugging postgres at that point. $ dpkg-query -W postgresql-client-9.4 postgresql-client-9.4 9.4~rc1-1 (gdb) r Starting program: /usr/lib/postgresql/9.4/bin/pg_restore /home/pryzbyj/clientdb/ptci.d/ptci.segv [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. ReadToc (AH=AH@entry=0x55555577b3b0) at /build/buildd/postgresql-9.4-9.4~rc1/build/../src/bin/pg_dump/pg_backup_archiver.c:2426 2426 /build/buildd/postgresql-9.4-9.4~rc1/build/../src/bin/pg_dump/pg_backup_archiver.c: No such file or directory. 2422 te->owner = ReadStr(AH); 2423 if (AH->version >= K_VERS_1_9) 2424 { 2425 if (strcmp(ReadStr(AH), "true") == 0) 2426 te->withOids = true; 2427 else 2428 te->withOids = false; 2429 } 2430 else 2431 te->withOids = true; (gdb) p ReadStr(AH) $1 = 0x0 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs