Re: Unpredictable signal 11 crashes on Mac OS X (SOLVED[?])

From: Gareth Boden <gareth(dot)boden(at)egsgroup(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Unpredictable signal 11 crashes on Mac OS X (SOLVED[?])
Date: 2003-10-09 05:38:38
Message-ID: D52BDBD5-FA1A-11D7-BC9C-003065CDC6C4@egsgroup.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


On Wednesday, October 8, 2003, at 03:54 PM, Tom Lane wrote:

> Gareth Boden <gareth(dot)boden(at)egsgroup(dot)com> writes:
>> We've been having a lot of problems with unpredicatable crashes with
>> 7.3.4 on OS X Server (10.2.6 and 10.2.8 exhibit the same behaviour).
>
> Have you looked into the possibility of bad hardware? I routinely test
> PG on OS X (10.2.6 currently) and have never noticed any instability.

This is probably now solved. Time will tell, since the crashes were
unpredictable to start with.

Bizarrely, it came down to an infinite recursion in a plpgsql function
we were using which exhausted memory and crashed the db server. Is
there any way of limiting stack depth/having some sort of monitor on
these functions to prevent this behaviour in future? Intuitively it
seems to me that dodgy plpgsql functions should not be able to crash
the database server (unlike dodgy C functions, say!).

The offending function was not reported in the logs on Mac OS X for
some reason but only when we compiled a new version on an x86 linux box
(with --enable-debug --enable-cassert, admittedly).

Thanks for listening!
Gareth

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andreas Pflug 2003-10-09 09:46:00 Re: [BUGS] Degrade(character conversion problem)
Previous Message Hiroshi Saito 2003-10-09 04:59:45 Re: [BUGS] Degrade(character conversion problem) pga3?