Re: PostgreSQL crashes

Lists: pgsql-admin
From: "Moshe Ben-Shoham" <mosheb(at)nexperience(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>, <pgsql-admin(at)postgresql(dot)org>
Subject: PostgreSQL crashes
Date: 2009-05-27 14:00:10
Message-ID: 75E4C42D37E6A74E9FB57C2E9F1300D6013EE7D8@tiger.nexperience.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

Hi,

We're using postgresql-8.3.5-1.

Lately, once in a while, the PostgreSQL service crashes and the
following appears in the log. Any idea what could cause that?

I believe there are two problems here: one is the process 2604 exiting
with code 128, and the other one is the re-initialization failure with
the following fatal message: "BST FATAL: pre-existing shared memory
block is still in use".

2009-05-27 10:39:41 BST LOG: server process (PID 2604) exited with exit
code 128

2009-05-27 10:39:41 BST LOG: terminating any other active server
processes

2009-05-27 10:39:41 BST WARNING: terminating connection because of
crash of another server process

2009-05-27 10:39:41 BST 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.

2009-05-27 10:39:41 BST HINT: In a moment you should be able to
reconnect to the database and repeat your command.

2009-05-27 10:39:41 BST WARNING: terminating connection because of
crash of another server process

2009-05-27 10:39:41 BST 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.

2009-05-27 10:39:41 BST HINT: In a moment you should be able to
reconnect to the database and repeat your command.

2009-05-27 10:39:41 BST WARNING: terminating connection because of
crash of another server process

2009-05-27 10:39:41 BST 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.

2009-05-27 10:39:41 BST HINT: In a moment you should be able to
reconnect to the database and repeat your command.

2009-05-27 10:39:41 BST WARNING: terminating connection because of
crash of another server process

2009-05-27 10:39:41 BST 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.

2009-05-27 10:39:41 BST HINT: In a moment you should be able to
reconnect to the database and repeat your command.

2009-05-27 10:39:41 BST WARNING: terminating connection because of
crash of another server process

2009-05-27 10:39:41 BST 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.

2009-05-27 10:39:41 BST HINT: In a moment you should be able to
reconnect to the database and repeat your command.

2009-05-27 10:39:41 BST WARNING: terminating connection because of
crash of another server process

2009-05-27 10:39:41 BST 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.

2009-05-27 10:39:41 BST HINT: In a moment you should be able to
reconnect to the database and repeat your command.

2009-05-27 10:39:41 BST LOG: all server processes terminated;
reinitializing

2009-05-27 10:39:42 BST FATAL: pre-existing shared memory block is
still in use

2009-05-27 10:39:42 BST HINT: Check if there are any old server
processes still running, and terminate them.

Thanks,

Moshe.

The information contained in this message is proprietary to the sender, protected from disclosure, and may be privileged. The information is intended to be conveyed only to the designated recipient(s) of the message. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, use, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.



************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Moshe Ben-Shoham" <mosheb(at)nexperience(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: PostgreSQL crashes
Date: 2009-05-27 14:32:59
Message-ID: 9637.1243434779@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

"Moshe Ben-Shoham" <mosheb(at)nexperience(dot)com> writes:
> 2009-05-27 10:39:41 BST LOG: server process (PID 2604) exited with exit
> code 128

What platform is this on?

regards, tom lane


From: "Moshe Ben-Shoham" <mosheb(at)nexperience(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: PostgreSQL crashes
Date: 2009-05-28 04:44:03
Message-ID: 75E4C42D37E6A74E9FB57C2E9F1300D6013EE87C@tiger.nexperience.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

It's on Windows Server 2003

Thanks,
Moshe.

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Wednesday, May 27, 2009 5:33 PM
To: Moshe Ben-Shoham
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] PostgreSQL crashes

"Moshe Ben-Shoham" <mosheb(at)nexperience(dot)com> writes:
> 2009-05-27 10:39:41 BST LOG: server process (PID 2604) exited with
exit
> code 128

What platform is this on?

regards, tom lane



************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************

The information contained in this message is proprietary to the sender, protected from disclosure, and may be privileged. The information is intended to be conveyed only to the designated recipient(s) of the message. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, use, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.



************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Moshe Ben-Shoham" <mosheb(at)nexperience(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: PostgreSQL crashes
Date: 2009-05-31 16:38:45
Message-ID: 27817.1243787925@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

"Moshe Ben-Shoham" <mosheb(at)nexperience(dot)com> writes:
> I believe there are two problems here: one is the process 2604 exiting
> with code 128, and the other one is the re-initialization failure with
> the following fatal message: "BST FATAL: pre-existing shared memory
> block is still in use".

The second problem is most likely going to be resolved by this recent fix:
http://archives.postgresql.org/pgsql-committers/2009-05/msg00085.php

I have no idea what is provoking an exit(128) though.

regards, tom lane


From: "Moshe Ben-Shoham" <mosheb(at)perfectomobile(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: PostgreSQL crashes
Date: 2009-09-07 10:40:02
Message-ID: 75E4C42D37E6A74E9FB57C2E9F1300D6016A9F36@tiger.nexperience.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

Hi,

It just happened again, now with 8.4, so it seems like the fix mentioned
below didn't really help.

Does anyone have an idea what could cause it?

As a reminder, the log is below.

Thanks,
Moshe.

2009-09-07 12:15:49 IDTLOG: server process (PID 60524) exited with exit
code 128
2009-09-07 12:15:50 IDTLOG: terminating any other active server
processes
2009-09-07 12:15:50 IDTWARNING: terminating connection because of crash
of another server process
2009-09-07 12:15:50 IDTDETAIL: 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.
2009-09-07 12:15:50 IDTHINT: In a moment you should be able to
reconnect to the database and repeat your command.
2009-09-07 12:15:50 IDTWARNING: terminating connection because of crash
of another server process
2009-09-07 12:15:50 IDTDETAIL: 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.
2009-09-07 12:15:50 IDTHINT: In a moment you should be able to
reconnect to the database and repeat your command.
2009-09-07 12:15:50 IDTWARNING: terminating connection because of crash
of another server process
2009-09-07 12:15:50 IDTDETAIL: 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.
2009-09-07 12:15:50 IDTHINT: In a moment you should be able to
reconnect to the database and repeat your command.
2009-09-07 12:15:50 IDTWARNING: terminating connection because of crash
of another server process
2009-09-07 12:15:50 IDTDETAIL: 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.
2009-09-07 12:15:50 IDTHINT: In a moment you should be able to
reconnect to the database and repeat your command.
2009-09-07 12:15:50 IDTWARNING: terminating connection because of crash
of another server process
2009-09-07 12:15:50 IDTDETAIL: 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.
2009-09-07 12:15:50 IDTHINT: In a moment you should be able to
reconnect to the database and repeat your command.
2009-09-07 12:15:50 IDTWARNING: terminating connection because of crash
of another server process
2009-09-07 12:15:50 IDTDETAIL: 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.
2009-09-07 12:15:50 IDTHINT: In a moment you should be able to
reconnect to the database and repeat your command.
2009-09-07 12:15:50 IDTWARNING: terminating connection because of crash
of another server process
2009-09-07 12:15:50 IDTDETAIL: 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.
2009-09-07 12:15:50 IDTHINT: In a moment you should be able to
reconnect to the database and repeat your command.
2009-09-07 12:15:50 IDTWARNING: terminating connection because of crash
of another server process
2009-09-07 12:15:50 IDTDETAIL: 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.
2009-09-07 12:15:50 IDTHINT: In a moment you should be able to
reconnect to the database and repeat your command.
2009-09-07 12:15:50 IDTWARNING: terminating connection because of crash
of another server process
2009-09-07 12:15:50 IDTDETAIL: 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.
2009-09-07 12:15:50 IDTHINT: In a moment you should be able to
reconnect to the database and repeat your command.
2009-09-07 12:15:50 IDTWARNING: terminating connection because of crash
of another server process
2009-09-07 12:15:50 IDTDETAIL: 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.
2009-09-07 12:15:50 IDTHINT: In a moment you should be able to
reconnect to the database and repeat your command.
2009-09-07 12:15:51 IDTWARNING: terminating connection because of crash
of another server process
2009-09-07 12:15:51 IDTDETAIL: 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.
2009-09-07 12:15:51 IDTHINT: In a moment you should be able to
reconnect to the database and repeat your command.
2009-09-07 12:15:51 IDTWARNING: terminating connection because of crash
of another server process
2009-09-07 12:15:51 IDTDETAIL: 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.
2009-09-07 12:15:51 IDTHINT: In a moment you should be able to
reconnect to the database and repeat your command.
2009-09-07 12:15:51 IDTLOG: archiver process (PID 94132) exited with
exit code 1
2009-09-07 12:15:52 IDTLOG: all server processes terminated;
reinitializing
2009-09-07 12:16:02 IDTFATAL: pre-existing shared memory block is still
in use
2009-09-07 12:16:02 IDTHINT: Check if there are any old server
processes still running, and terminate them.

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Sunday, May 31, 2009 7:39 PM
To: Moshe Ben-Shoham
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] PostgreSQL crashes

"Moshe Ben-Shoham" <mosheb(at)nexperience(dot)com> writes:
> I believe there are two problems here: one is the process 2604 exiting
> with code 128, and the other one is the re-initialization failure with
> the following fatal message: "BST FATAL: pre-existing shared memory
> block is still in use".

The second problem is most likely going to be resolved by this recent
fix:
http://archives.postgresql.org/pgsql-committers/2009-05/msg00085.php

I have no idea what is provoking an exit(128) though.

regards, tom lane



************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************

The information contained in this message is proprietary to the sender, protected from disclosure, and may be privileged. The information is intended to be conveyed only to the designated recipient(s) of the message. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, use, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.



************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************