Subject: postgres 8.2.5 core dumps on 4.0 RC2 mipsel
To: NetBSD Cobalt <port-cobalt@netbsd.org>
From: Andy Ruhl <acruhl@gmail.com>
List: pkgsrc-bugs
Date: 10/17/2007 14:44:04
Sorry if I copied too many lists.

I just built postgresql82 from pkgsrc, which builds 8.2.5 now. I used
CFLAGS -mips2, but I think this problem happens no matter if I do that
or not. The system is a Cobalt Qube2 which previously ran postgresql
8.2.4 OK.

Here's what I see. I'm not a good debugger, so if someone wants to
help me go through gdb I can get whatever is needed:

/etc/rc.d # ./pgsql start

Starting pgsql.
[1]   Segmentation fault      "/usr/pkg/bin/po...
fgets failure: No such file or directory
The program "postgres" is needed by pg_ctl but was not found in the
same directory as "/usr/pkg/bin/pg_ctl".
Check your installation.
/etc/rc.d # gdb /usr/pkg/bin/postgres postgres.core

GNU gdb 5.3nb1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "mipsel--netbsd"...(no debugging symbols found)...
Core was generated by `postgres'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libintl.so.0...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libintl.so.0
Reading symbols from /usr/lib/libssl.so.4...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libssl.so.4
Reading symbols from /usr/lib/libcrypt.so.0...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libcrypt.so.0
Reading symbols from /usr/lib/libcrypto.so.3...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libcrypto.so.3
Reading symbols from /usr/lib/libm.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libm.so.0
Reading symbols from /usr/lib/libc.so.12...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)...
done.
Loaded symbols for /usr/libexec/ld.elf_so
#0  0x005e961c in main ()
(gdb) bt
#0  0x005e961c in main ()
#1  0x0042fb98 in _start ()
(gdb) quit

I'm not 100% sure that my machine is sane as far as libraries, but
other stuff is working and has been for a while now.

Andy