PQmakeEmptyPQresult makes my application dumps core? - Mailing list pgsql-bugs

From Adam PAPAI
Subject PQmakeEmptyPQresult makes my application dumps core?
Date
Msg-id 470C9948.9000209@wooh.hu
Whole thread Raw
Responses Re: PQmakeEmptyPQresult makes my application dumps core?
Re: PQmakeEmptyPQresult makes my application dumps core?
List 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@wooh.hu
Phone: +36 30 33-55-735 (Hungary)

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Provide a way to not ask for a password in psql
Next
From: Tom Lane
Date:
Subject: Re: PQmakeEmptyPQresult makes my application dumps core?