BUG #1928: Postgresql is terminated by signal 10 (bus error) when using prepared statements

From: "Till Toenges" <tt(at)kyon(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1928: Postgresql is terminated by signal 10 (bus error) when using prepared statements
Date: 2005-09-30 13:38:47
Message-ID: 20050930133847.E38E8F1060@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 1928
Logged by: Till Toenges
Email address: tt(at)kyon(dot)de
PostgreSQL version: 8.0.3
Operating system: Mac OS X
Description: Postgresql is terminated by signal 10 (bus error) when
using prepared statements
Details:

I use postgresql 8.0.3 with JDBC driver 8.0 to connect to the database.
Everything works most of the time. But if i make a series of queries,
greater than prepareThreshold, in a loop, it dies with signal 10.
PrepareThreshold is the number of times a query has to be executed until the
JDBC driver turns it into a server side prepared statement. Some queries
work well even above the threshold. This one dies on the (prepareThreshold +
1)th execution.

The query looks like this:

SELECT nc.name, COUNT(*) AS subscribers FROM nl_category AS nc LEFT JOIN
"nl_subscriber_categoryDispatchType" AS nsc ON (nsc.category_id = nc.id)
LEFT JOIN nl_subscriber AS ns ON (ns.id = nsc.subscriber_id) WHERE
"dateCreated" < ? GROUP BY nc.name ORDER BY nc.name

I can send more information if requested. The relevant log entries are:

LOG: server process (PID 2961) was terminated by signal 10
LOG: terminating any other active server processes
WARNING: terminating connection because of crash of another server process
DETAIL: The postmaster has commanded this server process to roll back the
current transaction and exit, because another server process exited
abnormally and possibly corrupted shared memory.
HINT: In a moment you should be able to reconnect to the database and
repeat your command.
[... and some more connections dying]

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2005-09-30 14:11:36 Re: BUG #1922: bit string of calculated length
Previous Message Deyan Chepishev 2005-09-30 08:07:42 BUG #1927: incorrect timestamp returned