Re: BUG #4962: Pre-existing shared memory block is still in use

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Carlos Alonso <calonso(at)ictel(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4962: Pre-existing shared memory block is still in use
Date: 2009-08-04 14:32:05
Message-ID: 9837222c0908040732k2256d329l7e7f060915de5cdf@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, Aug 4, 2009 at 12:49, Carlos Alonso<calonso(at)ictel(dot)com> wrote:
>
> The following bug has been logged online:
>
> Bug reference:      4962
> Logged by:          Carlos Alonso
> Email address:      calonso(at)ictel(dot)com
> PostgreSQL version: 8.3.6
> Operating system:   Windows XP Home Edition Version 2002 Service Pack 3
> Description:        Pre-existing shared memory block is still in use
> Details:
>
> 2009-08-01 15:36:08 CEST LOG:  server process (PID 5892) was terminated by
> exception 0xC0000142
> 2009-08-01 15:36:08 CEST HINT:  See C include file "ntstatus.h" for a
> description of the hexadecimal value.
> 2009-08-01 15:36:08 CEST LOG:  terminating any other active server
> processes
> 2009-08-01 15:36:08 CEST WARNING:  terminating connection because of crash
> of another server process
> 2009-08-01 15:36:08 CEST 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-08-01 15:36:08 CEST HINT:  In a moment you should be able to reconnect
> to the database and repeat your command.
> 2009-08-01 15:36:08 CEST WARNING:  terminating connection because of crash
> of another server process
> 2009-08-01 15:36:08 CEST 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-08-01 15:36:08 CEST HINT:  In a moment you should be able to reconnect
> to the database and repeat your command.
> [...]
> 2009-08-01 15:36:08 CEST WARNING:  terminating connection because of crash
> of another server process
> 2009-08-01 15:36:08 CEST 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-08-01 15:36:08 CEST HINT:  In a moment you should be able to reconnect
> to the database and repeat your command.
> 2009-08-01 15:36:08 CEST FATAL:  the database system is in recovery mode
> 2009-08-01 15:36:08 CEST FATAL:  the database system is in recovery mode
> 2009-08-01 15:36:08 CEST LOG:  all server processes terminated;
> reinitializing
> 2009-08-01 15:36:09 CEST FATAL:  pre-existing shared memory block is still
> in use
> 2009-08-01 15:36:09 CEST HINT:  Check if there are any old server processes
> still running, and terminate them.
>
> There was no old server processes running.
> This has happened twice in two weeks, the system was working for five
> months.
>
> It is enough rebooting the computer in one case, and starting the postgres
> service by windows's services.msc in the other.

The standard question when this happens is - any antivirus or firewall
software on the machine? They are known to cause just this type of
issues. If so, try uninstalling them (not just disabling, but actually
uninstalling is often required) and see if the problem goes away.

--
Magnus Hagander
Self: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Luke Koops 2009-08-04 15:17:20 Re: BUG #4958: Stats collector hung on WaitForMultipleObjectsEx while attempting to recv a datagram
Previous Message wader2 2009-08-04 13:26:35 Re: BUG #4961: pg_standby.exe crashes with no args