| From: | Robert Nix <robert(at)urban4m(dot)com> | 
|---|---|
| To: | pgsql-general(at)postgresql(dot)org | 
| Subject: | Segmentation fault: pg_upgrade 9.1 to 9.3: pg_dump: row number 0 is out of range 0..-1 | 
| Date: | 2013-09-15 01:40:01 | 
| Message-ID: | CAC2EkfNf2rwoV=pLmxGfPcQsPWEr06KmwAo8P9egdKAEF6Dz-Q@mail.gmail.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-general | 
Running a pg_upgrade task is causing Segmentation fault:
command: "/usr/lib/postgresql/9.3/bin/pg_dump" --host "/var/lib/postgresql"
--port 50432 --username "postgres" --schema-only --quote-all-identifiers
--binary-upgrade --format=custom  --file="pg_upgrade_dump_6064585.custom"
"u" >> "pg_upgrade_dump_6064585.log" 2>&1
pg_dump: row number 0 is out of range 0..-1
Segmentation fault (core dumped)
Running this command:
/usr/lib/postgresql/9.3/bin/pg_upgrade \
  -b /usr/lib/postgresql/9.1/bin       \
  -d /var/lib/postgresql/9.1/main      \
  -o "-c config_file=/etc/postgresql/9.1/main/postgresql.conf" \
  -B /usr/lib/postgresql/9.3/bin       \
  -D /var/lib/postgresql/9.3/main      \
  -O "-c config_file=/etc/postgresql/9.3/main/postgresql.conf"
Any tips on how to diagnose and/or what might be the problem?
I've verified that the same extensions are present in 9.3 as exist in 9.1.
I'm not really sure how to proceed.
Performing Consistency Checks
-----------------------------
Checking cluster versions                                   ok
Checking database user is a superuser                       ok
Checking for prepared transactions                          ok
Checking for reg* system OID user data types                ok
Checking for contrib/isn with bigint-passing mismatch       ok
Creating dump of global objects                             ok
Creating dump of database schemas
It then goes through about 3 or 4 databases and then faults.
gdb doesn't seem helpful:
$ gdb /usr/lib/postgresql/9.3/bin/pg_dump core
GNU gdb (GDB) 7.5-ubuntu
Reading symbols from /usr/lib/postgresql/9.3/bin/pg_dump...(no debugging
symbols found)...done.
[New LWP 1180]
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/lib/postgresql/9.3/bin/pg_dump --host
/var/lib/postgresql --port 50432 --u'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007fd05f7c2284 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007fd05f7c2284 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fd0601c1200 in ?? ()
#2  0x00007fd0601ca405 in ?? ()
#3  0x00007fd0601b5ffb in main ()
Thanks
Linux db 3.5.0-39-generic #60-Ubuntu SMP Tue Aug 13 18:33:05 UTC 2013
x86_64 x86_64 x86_64 GNU/Linux
Distributor ID: Ubuntu
Description:    Ubuntu 12.10
Release:        12.10
Codename:       quantal
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Eric B. Ridge | 2013-09-15 16:01:29 | v9.3.0: bug with pgdump -s? | 
| Previous Message | Moshe Jacobson | 2013-09-14 22:24:19 | Rename extension? |