C++ interface problem with libpq.so.3

From: Kemin Zhou <kemin(dot)zhou(at)ferring(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: C++ interface problem with libpq.so.3
Date: 2004-07-19 18:54:04
Message-ID: 40FC18CC.8030108@ferring.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 contained in the message. If you are not the addressee indicated in this message (or responsible for the delivery of the message to such person), please do not copy or deliver this message to anyone. In such case, please destroy this message and notify the sender by reply e-mail. Please advise the sender immediately if you or your employer do not consent to e-mail for messages of this kind. Opinions, conclusions and other information in this message represent the opinion of the sender and do not necessarily represent or reflect the views and opinions of Ferring.
**********************************************************************

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2004-07-19 20:04:28 Re: C++ interface problem with libpq.so.3
Previous Message Xavier Poinsard 2004-07-19 12:46:18 Re: [ADMIN] Migrate postgres databases from SQL_ASCII to UNICODE