Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <41B8679F.2030902@x-ray.at>
Date: Thu, 09 Dec 2004 15:56:31 +0100
From: Reini Urban <rurban@x-ray.at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8a4) Gecko/20040927
MIME-Version: 1.0
To: Markus Hoenicka <markus.hoenicka@mhoenicka.de>
CC: cygwin@cygwin.com
Subject: Re: PostgreSQL: Bad system call
References: <1102602847.41b8625f63844@www.domainfactory-webmail.de>
In-Reply-To: <1102602847.41b8625f63844@www.domainfactory-webmail.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Markus Hoenicka schrieb:
  once again I've hosed my PostgreSQL installation. I've more or less 
accidentally
> upgraded PostgreSQL to the latest version and it would start no more. I've
> perused the archives and collected all remedies I've found. Most notably:
> 
> - I had fixed the / and /bin permissions previously and made sure they're still
> ok
> - I made my postgres user account own the binary
> - I've removed the cygipc and cygipc2 services
> - I've installed cygserver and made sure it is actually started
> - Needless to say, I've rebooted the box too
> 
> No matter what I do, I'm now stuck with the following error. For test purposes I
> logged in to my postgres account and started postmaster manually with
> postmaster -d5 -D /usr/share/postgresql/data
> 
> [lots of DEBUG messages]
> DEBUG:  invoking IpcMemoryCreate(size=10461184)
> Bad system call
> 
> As I got stuck here I desperately tried various things, among them removing
> cygserver and starting cygipc2 again and downgrading to the previous PostgreSQL
> version. All this does not help a bit. I've not yet tried to downgrade
> cygwin1.dll to the previous version (1.5.11 vs. 1.5.12).
> 
> Can anyone throw me a ring here?

So finally someone else got the same cygserver problem as me!

The cause is that the internal cygserver msg buffer is allocated 
read-only. (IsBadWritePtr() fails)
Reason unknown. gcc? cygwin?
Solution pending.

Szteps to reproduce:
cygserver &
ipcs
=> Bad system call
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

--
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/

