Re: [BUGS] SIGSEGV in PQreset(..)

2006-02-13 Thread Tom Lane
Arturs Zoldners <[EMAIL PROTECTED]> writes: > The following code raises SIGSEGV: > PGconn* conn = PQconnectdb("x"); > ConnStatusType status = PQstatus(conn); > //status == CONNECTION_BAD > PQreset(conn); PQreset assumes it's been passed a reasonably valid PGconn, whi

[BUGS] SIGSEGV in PQreset(..)

2006-02-13 Thread Arturs Zoldners
OS: FC4, 2.6.11-1.1369_FC4 PostgreSQL: postgresql-8.1.2-1PGDG (rpm install) gcc: version 4.0.2 20051125 (Red Hat 4.0.2-8) The following code raises SIGSEGV: main.cpp (gcc -lstdc++ -lpq -g main.cpp) extern "C" { #include } int main(int arch, char* argv[]) { PGconn* conn = PQconnectdb