PQmakeEmptyPQresult makes my application dumps core?

From: Adam PAPAI <wooh(at)wooh(dot)hu>
To: pgsql-bugs(at)postgresql(dot)org
Subject: PQmakeEmptyPQresult makes my application dumps core?
Date: 2007-10-10 09:20:08
Message-ID: 470C9948.9000209@wooh.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Adam PAPAI
wooh (at) wooh (dot) hu

System Configuration
---------------------
Architecture: Intel(R) Xeon(TM) CPU 2.80GHz

Operating System: Debian/GNU Linux i686 GNU/Linux

PostgreSQL version: (PostgreSQL) 7.4.7

Compiler used: gcc 3.3.6

Problem description
---------------------

Usually our program dumps core several times a day, but the reason is
unknown. All I know from the core file is the lines below.

during PQexec(db->conn, query) it dumps core.

Should it happen due to a connection problem between the pgsql server
and our program? What could be the resolution to avoid the coredumps?

(gdb) up
#1 0xb7df4cff in malloc () from /lib/tls/libc.so.6
(gdb) up
#2 0xb7eed753 in PQmakeEmptyPGresult () from /usr/lib/libpq.so.3
(gdb) up
#3 0xb7ef5818 in pqParseInput3 () from /usr/lib/libpq.so.3
(gdb) up
#4 0xb7ef566f in pqParseInput3 () from /usr/lib/libpq.so.3
(gdb) up
#5 0xb7eee8e9 in PQconsumeInput () from /usr/lib/libpq.so.3
(gdb) up
#6 0xb7eeea71 in PQgetResult () from /usr/lib/libpq.so.3
(gdb) up
#7 0xb7eeed3b in PQexecPrepared () from /usr/lib/libpq.so.3
(gdb) up
#8 0x080515ad in db_try_exec (query=0x8076468 "SELECT last_value FROM
alarm_alarm_id_seq", ntry=2) at ../db/db.c:31
31 res = PQexec(db->conn, query);

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: wooh(at)wooh(dot)hu
Phone: +36 30 33-55-735 (Hungary)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2007-10-10 11:49:02 Re: PQmakeEmptyPQresult makes my application dumps core?
Previous Message Peter Eisentraut 2007-10-10 07:07:55 Re: Provide a way to not ask for a password in psql