Re: FATAL: could not reattach to shared memory (Win32) - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: FATAL: could not reattach to shared memory (Win32)
Date
Msg-id 20070823143035.GP26038@alvh.no-ip.org
Whole thread Raw
In response to FATAL: could not reattach to shared memory (Win32)  (Terry Yapt <yapt@technovell.com>)
Responses Re: FATAL: could not reattach to shared memory (Win32)  (Terry Yapt <yapt@technovell.com>)
List pgsql-general
Terry Yapt wrote:

> I am looking for system errors and nothing is there.  But I have a lot of
> messages on system APP errors.  The error is the same every ten seconds or
> so.
>
> This is the main error:
> * FATAL:  could not reattach to shared memory (key=5432001, addr=01D80000):
> Invalid argument

Please run "ipcs" on a command line window and paste the results.

I see a minor problem in that code: we are invoking two system calls
(shmget and shmat) but the log does not say which one failed.  However
in this case it seems only shmget could be returning EINVAL.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: reporting tools
Next
From: Tom Lane
Date:
Subject: Re: pg_dump causes postgres crash