Re: InitDB: Bad system call - Mailing list pgsql-general

From Tom Lane
Subject Re: InitDB: Bad system call
Date
Msg-id 21338.1281890205@sss.pgh.pa.us
Whole thread Raw
In response to Re: InitDB: Bad system call  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: InitDB: Bad system call
List pgsql-general
I wrote:
> ... The simplest explanation
> I can think of is that it's *only* shmctl that is malfunctioning, not
> the other SysV shared memory calls.  Which is even weirder, and
> definitely seems to move the problem into the category of kernel bug
> rather than configuration mistake.

Hmmm ... Google turned up the information that FreeBSD migrated from int
to size_t variables for shared memory size between 7.0 and 8.0, and in
particular that the size of the struct used by shmctl() changed in
8.0.  So I'm now wondering if what you're dealing with is some sort of
version skew problem.  Could it be that you built Postgres against
system header files that don't match your kernel version?  I'm not
exactly sure how that would manifest as this particular signal,
but it seems worth checking.

            regards, tom lane

pgsql-general by date:

Previous
From: zhong ming wu
Date:
Subject: Re: return setof : alternatives to holder table
Next
From: Pavel Stehule
Date:
Subject: Re: .psqlrc and custom functions (mysql-like)