Tom Lane schrieb:

Hm... /path/to/postgres? Not initdb?

Yes; it's postgres that is failing, not initdb.

Ok.

But regardless what i use, it looks like:
#0  0x0000000800bb166c in ?? ()
#1  0x00000000005b158f in ?? ()
...
I believe that is not very helpful, is it?

Nope, it's not.  Could you reconfigure with --enable-debug, rebuild, try
again?

Hm, that was already with --enable-debug. But i believe i just missused gdb at the first time. Now i get the following result, which seems more helpful. But i have to reuse an save core-dump, because like before postgres don't create new ones. Here the result:

%gdb /usr/local/pgsql/bin/postgres /tmp/postgres.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "amd64-marcel-freebsd"...

warning: exec file is newer than core file.
Core was generated by `postgres'.
Program terminated with signal 12, Bad system call.
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x0000000800bb166c in shmctl () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800bb166c in shmctl () from /lib/libc.so.7
#1 0x00000000005b158f in PGSharedMemoryIsInUse (id1=Variable "id1" is not available.
) at pg_shmem.c:247
#2 0x00000000006a0844 in CreateLockFile (filename=0x7ea036 "postmaster.pid", amPostmaster=0 '\0', isDDLock=1 '\001', refName=0x800e0b180 "/usr/local/pgsql/data") at miscinit.c:835 #3 0x000000000049baf0 in AuxiliaryProcessMain (argc=3, argv=0x7fffffffebc8) at bootstrap.c:350
#4  0x000000000056742e in main (argc=4, argv=0x7fffffffebc0) at main.c:180
(gdb) quit

Greetings,
Torsten

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to