delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/03/09:31:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 3 Aug 2004 15:30:58 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: Jason Tishler <jason AT tishler DOT net>
Cc: cygwin AT cygwin DOT com
Subject: Re: Initdb FATAL error shmat - Win98 Cygwin 1.5.10-3 - PostgreSQL 7.4.3
Message-ID: <20040803133058.GS31522@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: Jason Tishler <jason AT tishler DOT net>, cygwin AT cygwin DOT com
References: <6 DOT 1 DOT 2 DOT 0 DOT 0 DOT 20040802205147 DOT 02ae30f0 AT pop3 DOT club-internet DOT fr@127.0.0.1>
Mime-Version: 1.0
In-Reply-To: <6.1.2.0.0.20040802205147.02ae30f0@pop3.club-internet.fr@127.0.0.1>
User-Agent: Mutt/1.4.2i

On Aug  2 20:57, Mos wrote:
> Hi there !
> 
> 
> I have a problem to work with PostgreSQL with Cygwin.
> 
> My OS is Windows 98 and I install cygwin full package, following numerous 
> tutorials available on the Net.
> 
> All is fine except, I can not initialize a database :
> All is fine until i try to initialize the database :
> 
> ---------------
> creating directory /usr/local/pgsql/data... ok
> creating directory /usr/local/pgsql/data/base... ok
> creating directory /usr/local/pgsql/data/global... ok
> creating directory /usr/local/pgsql/data/pg_xlog... ok
> creating directory /usr/local/pgsql/data/pg_clog... ok
> selecting default max_connections... 10
> selecting default shared_buffers... 50
> creating configuration files... ok
> creating template1 database in /usr/local/pgsql/data/base/1... FATAL:
> shmat<id=
> 1179648> failed: Invalid argument

I tried it and it actually only happens on 9x.  I found that postgres
tries to shmat to an address which I have no idea about where it comes
from.  The problem with that address is, that it's neither a multiple
of SHMLBA, nor does postgres call shmat with the SHM_RND flag.  For some
reason the address is ok on NT.

So, Jason, do you have an idea why that happens?  Two questions come to mind:

- How does postgres evaluate that address and why does it only fail on 9x?

- Why does postgres use a fixed address at all, instead of using NULL to
  let the system decide which address to use?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019