dbTalk Databases Forums  

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

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] Unpredictable signal 11 crashes on Mac OS X (SOLVED[?]) in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gareth Boden
 
Posts: n/a

Default Re: [BUGS] Unpredictable signal 11 crashes on Mac OS X (SOLVED[?]) - 10-09-2003 , 12:40 AM







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

Quote:
Gareth Boden <gareth.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


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] Unpredictable signal 11 crashes on Mac OS X (SOLVED[?]) - 10-13-2003 , 07:33 PM






Gareth Boden <gareth.boden (AT) egsgroup (DOT) com> writes:
Quote:
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?
There's been some talk of this, but the sticking point has been to
figure out a reasonably portable way to measure and enforce stack
usage...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.