Re: [ADMIN] Streaming Replication Server Crash

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
Cc: raghu ram <raghuchennuru(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: [ADMIN] Streaming Replication Server Crash
Date: 2012-10-22 12:52:38
Message-ID: 27094.1350910358@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Craig Ringer <ringerc(at)ringerc(dot)id(dot)au> writes:
> On 10/19/2012 04:40 PM, raghu ram wrote:
>> 2012-10-19 12:26:46 IST [1338]: [18-1] user=,db= LOG: server process
>> (PID 15565) was terminated by signal 10

> That's odd. SIGUSR1 (signal 10) shouldn't terminate PostgreSQL.

> Was the server intentionally sent SIGUSR1 by an admin? Do you know what
> triggered the signal?

SIGUSR1 is used for all sorts of internal cross-process signaling
purposes. There's no need to hypothesize any external force sending
it; if somebody had broken a PG process's signal handling setup for
SIGUSR1, a crash of this sort could be expected in short order.

But having said that, are we sure 10 is SIGUSR1 on the OP's platform?
AFAIK, that signal number is not at all compatible across different
flavors of Unix. (I see SIGUSR1 is 30 on OS X for instance.)

> Are you running any procedural languages other than PL/PgSQL, or any
> custom C extensions? Anything that might have unwittingly cleared the
> signal handler for SIGUSR1?

libperl has a bad habit of thinking it can mess with the process's
signal setup ...

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Craig Ringer 2012-10-23 05:03:33 Re: [ADMIN] Streaming Replication Server Crash
Previous Message Craig Ringer 2012-10-22 07:02:22 Re: Streaming Replication Server Crash

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2012-10-22 12:52:47 Re: Revert TRUNCATE CASCADE?
Previous Message Hannes Erven 2012-10-22 11:16:50 Revert TRUNCATE CASCADE?