C++ interface problem with libpq.so.3 - Mailing list pgsql-sql

From Kemin Zhou
Subject C++ interface problem with libpq.so.3
Date
Msg-id 40FC18CC.8030108@ferring.com
Whole thread Raw
Responses Re: C++ interface problem with libpq.so.3
List pgsql-sql
I have writte a simple program to access PGDB from a C++ program using 
the libpq++-4.0

Most of time it runs perfect.  This morning, it was working fine.  Then 
later it stopped working.
The symptom is that my program went to asleep.

The stack trace:

#0  0xffffe002 in ?? ()
#1  0x40120808 in pqSocketPoll () from /usr/local/pgsql/lib/libpq.so.3
#2  0x401206ed in pqSocketCheck () from /usr/local/pgsql/lib/libpq.so.3
#3  0x401205f7 in pqWaitTimed () from /usr/local/pgsql/lib/libpq.so.3
#4  0x401205b6 in pqWait () from /usr/local/pgsql/lib/libpq.so.3
#5  0x4011e13a in PQgetResult () from /usr/local/pgsql/lib/libpq.so.3
#6  0x4011e3fb in PQexecFinish () from /usr/local/pgsql/lib/libpq.so.3
#7  0x4001a722 in PgConnection::Exec(char const*) ()  from /usr/local/pgsql/lib/libpq++.so.4
#8  0x4001a798 in PgConnection::ExecTuplesOk(char const*) ()  from /usr/local/pgsql/lib/libpq++.so.4
#9  0x0804d695 in main (argc=9, argv=0xbfffd6d4) at tabaln.cpp:112
#10 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6

=====
looks like that it is having trouble loading a function.

Is my computer system screewed up, is my compiler (gcc 3.3) doing 
something wrong, or what?
If you have seen this behavior let me know.  I am kind of having no clue 
where to start.

Kemin



**********************************************************************
Proprietary or confidential information belonging to Ferring Holding SA or to one of its affiliated companies may be
containedin the message. If you are not the addressee indicated in this message (or responsible for the delivery of the
messageto such person), please do not copy or deliver this message to anyone. In such case, please destroy this message
andnotify the sender by reply e-mail. Please advise the sender immediately if you or your employer do not consent to
e-mailfor messages of this kind. Opinions, conclusions and other information in this message represent the opinion of
thesender and do not necessarily represent or reflect the views and opinions of Ferring.
 
**********************************************************************



pgsql-sql by date:

Previous
From: "Alexander M. Pravking"
Date:
Subject: Re: Problem in age on a dates interval
Next
From: Tom Lane
Date:
Subject: Re: C++ interface problem with libpq.so.3