pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: pgsql-bugs@postgresql.org
Subject: pg_restore crashes passing NULL to strcmp (9.4 rc1)
Date: Sat, 6 Dec 2014 00:11:52 -0600
Message-ID: <20141206061151.GA725@telsasoft.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (3+ messages)  latest in thread

Message-ID: <20141206061151.GA725@telsasoft.com>
Permalink:  ../20141206061151.GA725@telsasoft.com/
Also on:    postgresql.org/message-id/20141206061151.GA725@telsasoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pryzby@telsasoft.com
  Subject: Re: pg_restore crashes passing NULL to strcmp (9.4 rc1)
  In-Reply-To: <20141206061151.GA725@telsasoft.com>
  References: <20141206061151.GA725@telsasoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox