Lists: | pgsql-cygwin |
---|
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 |
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>
From: | Patrick Samson <p_samson(at)yahoo(dot)com> |
---|---|
To: | pgsql-cygwin(at)postgresql(dot)org |
Subject: | Re: CVS HEAD |
Date: | 2004-04-14 07:57:09 |
Message-ID: | 20040414075709.81934.qmail@web60310.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-cygwin |
FYI, similar problem reported, 21 mar 2004, in
"How many fds can *you* open?"
http://cygwin.com/ml/cygwin/2004-03/msg00984.html
But cfg terminated the thread with rudeness. :(
--- Claudio Natoli <> wrote:
>
>
> > 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;
> }
>
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
From: | Jason Tishler <jason(at)tishler(dot)net> |
---|---|
To: | 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 11:46:52 |
Message-ID: | 20040414114652.GA2128@tishler.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-cygwin |
Claudio,
On Wed, Apr 14, 2004 at 10:55:42AM +1000, Claudio Natoli wrote:
> > 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?
>
> [snip]
Yes, I would really appreciate it. And, thanks for tracking this down.
> > and starting a new job,
>
> Congrats.
Thanks. Unfortunately, one of my compromises was significantly less
time for open source. :,(
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
From: | Jason Tishler <jason(at)tishler(dot)net> |
---|---|
To: | Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>, "'pgsql-cygwin(at)postgresql(dot)org'" <pgsql-cygwin(at)postgresql(dot)org> |
Subject: | Re: CVS HEAD |
Date: | 2004-04-16 12:15:14 |
Message-ID: | 20040416121514.GB1616@tishler.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-cygwin |
Claudio,
On Wed, Apr 14, 2004 at 07:46:52AM -0400, Jason Tishler wrote:
> On Wed, Apr 14, 2004 at 10:55:42AM +1000, Claudio Natoli wrote:
> > > 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?
> >
> > [snip]
>
> Yes, I would really appreciate it. And, thanks for tracking this down.
The following seems to indicate that the problem has been resolved in
a recent snapshot:
http://cygwin.com/ml/cygwin/2004-04/msg00560.html
Would you be willing to try out the latest one and report back?
Thanks,
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6