Re: CVS HEAD - Mailing list pgsql-cygwin

From Claudio Natoli
Subject Re: CVS HEAD
Date
Msg-id A02DEC4D1073D611BAE8525405FCCE2B55F3F6@harris.memetrics.local
Whole thread Raw
In response to CVS HEAD  (Claudio Natoli <claudio.natoli@memetrics.com>)
Responses Re: CVS HEAD  (Patrick Samson <p_samson@yahoo.com>)
Re: CVS HEAD  (Jason Tishler <jason@tishler.net>)
List 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>

pgsql-cygwin by date:

Previous
From: "Vernon Wu"
Date:
Subject: Can't open /cygwin/setup.bz2 for reading
Next
From: "Leeuw van der, Tim"
Date:
Subject: Re: shutting down ipc-daemon2?