Re: [HACKERS] Tom Lane's fixes in v6.4.3 - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: [HACKERS] Tom Lane's fixes in v6.4.3
Date
Msg-id 199903040843.RAA02624@srapc451.sra.co.jp
Whole thread Raw
In response to Re: [HACKERS] Tom Lane's fixes in v6.4.3  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Responses Re: [HACKERS] Tom Lane's fixes in v6.4.3
List pgsql-hackers
When I tried to start postmaster as:

postmaster -d 3 -B 1024

I got a core dump:

FindExec: searching PATH ...
ValidateBinary: can't stat "/home/httpd/html/users/t-ishii/bin/postgres"
ValidateBinary: can't stat "/usr/local/bin/postgres"
ValidateBinary: can't stat "/bin/postgres"
ValidateBinary: can't stat "/usr/bin/postgres"
ValidateBinary: can't stat "/home/httpd/html/users/t-ishii/src/pgsql/postgresql-6.4.2/src/backend./postgres"
ValidateBinary: can't stat "/usr/X11R6/bin/postgres"
FindExec: found "/usr/local/pgsql/bin/postgres" using PATH
binding ShmemCreate(key=52e2c1, size=9859300)
ERROR:  InitMultiLocks: couldnt initialize lock table
Quit (core dumped)

InitMultiLocks calls LockMethodTableInit. So I inspected
LockMethodTableInit and found that it returned 
lockMethodTable->ctl->lockmethod with value 0 which made
InitMultiLocks judge something went wrong.
Note that ipcs -m -l sais:

max number of segments = 128
max seg size (kbytes) = 16384
max total shared memory (kbytes) = 16777216
min seg size (bytes) = 1

So there should be enogh shared mems. Also note that -B 1023 runs
fine, but -B 1024 does not.

Any idea?

This is 6.4.2 + Tom Lanes fix running Linux/Mips (kernel 2.0.33) with
32MB memories.
--
Tatsuo Ishii


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: [HACKERS] Re: Tcl/Tk config (was: int 8 on FreeBSD)
Next
From: "Hiroshi Inoue"
Date:
Subject: RE: [HACKERS] copyObject() ? again