pg_restore crashes passing NULL to strcmp (9.4 rc1)

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: pg_restore crashes passing NULL to strcmp (9.4 rc1)
Date: 2014-12-06 06:11:52
Message-ID: 20141206061151.GA725@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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(at)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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Francisco Olarte 2014-12-06 12:28:35 Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
Previous Message Ed Avis 2014-12-05 19:08:33 Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)