From: | Torsten Zühlsdorff <foo(at)meisterderspiele(dot)de> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Greg Smith <greg(at)2ndquadrant(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: InitDB: Bad system call |
Date: | 2010-08-14 19:02:24 |
Message-ID: | 4C66E840.3020004@meisterderspiele.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Eliot Gable | 2010-08-14 20:05:10 | Mammoth Replicator |
Previous Message | dennis jenkins | 2010-08-14 17:26:17 | Re: Compression on SSL links? |