Re: Re: [SQL] PostgreSQL crashes on me :( - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Re: [SQL] PostgreSQL crashes on me :(
Date
Msg-id 20037.977161232@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re: [SQL] PostgreSQL crashes on me :(  (Ian Lance Taylor <ian@airs.com>)
Responses Re: Re: [SQL] PostgreSQL crashes on me :(  (Mathijs Brands <mathijs@ilse.nl>)
List pgsql-hackers
Ian Lance Taylor <ian@airs.com> writes:
> Therefore, the scenario you describe is possible, but only if there
> happens to be both a timer interrupt and a SIGCHLD signal within a
> couple of instructions after the select returns.

Right.  A small failure window would explain the infrequency of the
symptom.

> Ideally, signal handlers should not make system calls.  However, if
> this is impossible, then signal handlers must save and restore errno.

I have just committed fixes to do that in current sources (7.1 branch).
I doubt we're going to make a 7.0.4 release, but if we do then this
ought to be back-patched.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Ian Lance Taylor
Date:
Subject: Re: Re: [SQL] PostgreSQL crashes on me :(
Next
From: Ian Lance Taylor
Date:
Subject: Re: Re: [SQL] PostgreSQL crashes on me :(