Re: CVS HEAD

Поиск
Список
Период
Сортировка
От Claudio Natoli
Тема Re: CVS HEAD
Дата
Msg-id A02DEC4D1073D611BAE8525405FCCE2B55F3F6@harris.memetrics.local
обсуждение исходный текст
Ответ на CVS HEAD  (Claudio Natoli <claudio.natoli@memetrics.com>)
Ответы Re: CVS HEAD
Re: CVS HEAD
Список 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 по дате отправления:

Предыдущее
От: "Vernon Wu"
Дата:
Сообщение: Can't open /cygwin/setup.bz2 for reading
Следующее
От: "Leeuw van der, Tim"
Дата:
Сообщение: Re: shutting down ipc-daemon2?