X-Original-To: pgsql-general-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 170F29FA612 for ; Wed, 16 Aug 2006 09:33:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 37706-01 for ; Wed, 16 Aug 2006 09:33:20 -0300 (ADT) X-Greylist: delayed 00:33:01.564714 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id AE03A9FB344 for ; Wed, 16 Aug 2006 09:33:12 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from kjeld.care4all.dk (cpe.atm2-0-52453.0x50a4a22a.esnxx3.customer.tele.dk [80.164.162.42]) by svr4.postgresql.org (Postfix) with ESMTP id 831765AF895 for ; Wed, 16 Aug 2006 12:00:05 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by kjeld.care4all.dk (Postfix) with ESMTP id B053E4205CD for ; Wed, 16 Aug 2006 13:59:12 +0200 (CEST) Received: from kjeld.care4all.dk ([127.0.0.1]) by localhost (kjeld.care4all.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21575-04 for ; Wed, 16 Aug 2006 13:59:05 +0200 (CEST) Received: from [127.0.0.1] (x1-6-00-80-c8-03-a6-d7.k438.webspeed.dk [83.89.23.114]) by kjeld.care4all.dk (Postfix) with ESMTP for ; Wed, 16 Aug 2006 13:59:05 +0200 (CEST) Message-ID: <44E308B2.8030008@pbnet.dk> Date: Wed, 16 Aug 2006 13:59:46 +0200 From: =?ISO-8859-1?Q?Poul_M=F8ller_Hansen?= User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Segmentation Fault Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-2.3.3 (20050822) (Debian) at care4all.dk X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.204 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, SPF_NEUTRAL X-Spam-Level: * X-Archive-Number: 200608/706 X-Sequence-Number: 99477 Last night one of my databases broke down temporary because of a segmentation fault. It has only happended this time and the database was fully recovered afterwards, but I was wondering what I can do anything to prevent it from happening again It happened while the backup was running (pg_dump & pgdumpall) Here are some details from the logs etc. The system is running Ubuntu Linux and I'm using the PostgreSQL package from the dapper repository: uname -a Linux db 2.6.15-26-amd64-server #1 SMP Fri Jul 7 20:02:26 UTC 2006 x86_64 GNU/Linux select version() PostgreSQL 8.1.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.0.gcc-opt (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5) pgsql log 2006-08-16 00:38:22 CEST - LOG: server process (PID 4792) was terminated by sig nal 11 2006-08-16 00:38:22 CEST - LOG: terminating any other active server processes 2006-08-16 00:38:22 CEST - WARNING: terminating connection because of crash of another server process 2006-08-16 00:38:22 CEST - DETAIL: The postmaster has commanded this server pro cess to roll back the current transaction and exit, because another server proce ss exited abnormally and possibly corrupted shared memory. 2006-08-16 00:38:22 CEST - HINT: In a moment you should be able to reconnect to the database and repeat your command. DETAIL and HINT repeated for every connection 2006-08-16 00:38:23 CEST - LOG: all server processes terminated; reinitializing 2006-08-16 00:38:23 CEST - LOG: database system was interrupted at 2006-08-16 0 0:36:21 CEST 2006-08-16 00:38:23 CEST - LOG: checkpoint record is at 5/4F9FDC00 2006-08-16 00:38:23 CEST - LOG: redo record is at 5/4F9B3558; undo record is at 0/0; shutdown FALSE 2006-08-16 00:38:23 CEST - LOG: next transaction ID: 5408607; next OID: 30199 2006-08-16 00:38:23 CEST - LOG: next MultiXactId: 1; next MultiXactOffset: 0 2006-08-16 00:38:23 CEST - LOG: database system was not properly shut down; aut omatic recovery in progress 2006-08-16 00:38:23 CEST - FATAL: the database system is starting up 2006-08-16 00:38:23 CEST - LOG: redo starts at 5/4F9B3558 2006-08-16 00:38:23 CEST - LOG: record with zero length at 5/4FB63C18 2006-08-16 00:38:23 CEST - LOG: redo done at 5/4FB63BE8 2006-08-16 00:38:26 CEST - LOG: database system is ready 2006-08-16 00:38:26 CEST - LOG: transaction ID wrap limit is 1073864149, limite d by database "db" At 00:36:21 this was happening in the pgsql log 2006-08-16 00:36:21 CEST - LOG: duration: 14673.110 ms statement: EXECUTE [PREPARE: select * from app.insert_unitstat($1,$2,$3,$4,$5,$6,$7, $8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21) as result] 2006-08-16 00:36:21 CEST - LOG: duration: 8730.029 ms statement: EXECUTE [PREPARE: select * from app.insert_unitstat($1,$2,$3,$4,$5,$6,$7,$ 8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21) as result] 2006-08-16 00:36:21 CEST - LOG: duration: 5982.330 ms statement: EXECUTE [PREPARE: select * from app.insert_unitstat($1,$2,$3,$4,$5,$6,$7,$ 8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21) as result] 2006-08-16 00:36:21 CEST - LOG: duration: 10404.601 ms statement: EXECUTE [PREPARE: select * from app.insert_unitstat($1,$2,$3,$4,$5,$6,$7, $8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21) as result] These statements are called in a plpgsql function and the function is called via JDBC using postgresql-8.1-407.jdbc3.jar dmesg [2425253.737383] postmaster[4792]: segfault at 00002aaab6f0e000 rip 00002aaaab73795b rsp 00007fffff8c9228 error 4 Any suggestions ? Thanks, Poul