Re: CVS HEAD

From: Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>
To: 'Jason Tishler' <jason(at)tishler(dot)net>, Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>
Cc: "'pgsql-cygwin(at)postgresql(dot)org'" <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: CVS HEAD
Date: 2004-04-14 00:55:42
Message-ID: A02DEC4D1073D611BAE8525405FCCE2B55F3F6@harris.memetrics.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

> I'm seeing PostgreSQL 7.4.2's postmaster SEGV on startup under 1.5.9-1
> too. AFAICT, the stackdump indicates the problem is in the
> Cygwin DLL.

Well, that confirms things. 7.4.2 includes a repeated call to dup(0) to get
an estimate for the max number of fds, whilst 7.4.1 does not.

Code like that below should not SEGV, IMNSHO. Want me to push this over to
the cygwin list?

#include <errno.h>

int main(void)
{
int i;
for (i = 0; ; i++)
{
printf("i = %d\n",i);
if (dup(0) < 0)
{
printf("dup failed\n");
return -1;
}
}
return 0;
}

> and starting a new job,

Congrats.

Cheers,
Claudio

---
Certain disclaimers and policies apply to all email sent from Memetrics.
For the full text of these disclaimers and policies see
<a
href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em
ailpolicy.html</a>

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Leeuw van der, Tim 2004-04-14 07:09:42 Re: shutting down ipc-daemon2?
Previous Message Vernon Wu 2004-04-13 22:47:08 Can't open /cygwin/setup.bz2 for reading