Re: Bug #889: PQconnectdb SEGV

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: cmb-postgres(at)chibi(dot)ca, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #889: PQconnectdb SEGV
Date: 2003-01-29 22:20:57
Message-ID: 29930.1043878857@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)org writes:
> In the libpq C interface, PQconnectdb results in a SEGV when the conn->sock number is greater than __FD_SETSIZE (1024 on linux). The crash is caused by stack corruption when attempting to FD_SET.

<blink> Shouldn't you be filing this bug against libc? Seems to me the
left hand is not talking to the right hand, if open() can return FDs
that don't work with select().

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Jose Manuel 2003-01-30 13:49:09 Windows Ports
Previous Message pgsql-bugs 2003-01-29 21:23:40 Bug #889: PQconnectdb SEGV