Skip site navigation (1) Skip section navigation (2)

Re: BUG #4522: autovacuum working send SIGUSR1 to the wrong pid

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Zou Yong <springwell(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4522: autovacuum working send SIGUSR1 to the wrong pid
Date: 2008-11-12 10:15:03
Message-ID: 491AACA7.9010704@enterprisedb.com (view raw or flat)
Thread:
Lists: pgsql-bugs
Zou Yong wrote:
> Bug reference:      4522
> Logged by:          Zou Yong
> Email address:      springwell(at)gmail(dot)com
> PostgreSQL version: 8.3.4
> Operating system:   Linux 2.6.24
> Description:        autovacuum working send SIGUSR1 to the wrong pid
> Details: 
> 
> I was running postgres on a Linux with busybox. The autovacuum feature is
> turned on. I noticed that the autovacuum worker sent SIGUSR1 to pid 1 which
> is the init process and caused the system halt.

Hmm. The postgres user shouldn't have permission to halt the system, 
methinks.

> I did some debugging and found that the root cause is the constant
> AutoVacNumSignals is not defined correctly. It should be (AutoVacRebalance +
> 1).

Yeah, that's clearly a bug. Fixed, thanks.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

In response to

Responses

pgsql-bugs by date

Next:From: Alvaro HerreraDate: 2008-11-12 13:27:20
Subject: Re: BUG #4522: autovacuum working send SIGUSR1 to the wrongpid
Previous:From: Zou YongDate: 2008-11-12 08:34:34
Subject: BUG #4522: autovacuum working send SIGUSR1 to the wrong pid

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group