dbTalk Databases Forums  

[BUGS] Unpredictable signal 11 crashes on Mac OS X

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


Discuss [BUGS] Unpredictable signal 11 crashes on Mac OS X in the mailing.database.pgsql-bugs forum.



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

Default [BUGS] Unpredictable signal 11 crashes on Mac OS X - 10-08-2003 , 04:59 AM






--Apple-Mail-8--746934721
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed

Hi,

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).
Having run with verbose logging for some time, we have not noticed any
real consistency in the types of queries which are causing the crash
recently. A few weeks ago we were noticing crashes most commonly when
processing queries with extremely large IN () lists (> 1000 entries)
but we have now removed most of these from the application and are
still seeing crashes. Some days we get none, some days they happen
every five minutes! Today we have connected to the backends with gdb to
get a bit more information and have seen the following problems:

Program received signal EXC_BAD_ACCESS, Could not access memory.
0x0012c284 in hash_search (hashp=0x0, keyPtr=0x1195b84,
action=3212837216, foundPtr=0x1195b80 "") at dynahash.c:512
512 {

Program received signal EXC_BAD_ACCESS, Could not access memory.
_copyRangeTblEntry (from=0x12836c0) at copyfuncs.c:1455
1455 {

Has anyone got any clues or suggestions? Looks like some kind of stack
corruption to me but I don't know what we can do to solve it. The
relevant background info is:

Hardware:
Apple Xserve (cluster node), 2 x 1GHz processors, 2GB RAM

Software:
Apple Computer, Inc. GCC version 1175, based on gcc version 3.1
20020420 (prerelease)
Darwin palin.egsgroup.com 6.8 Darwin Kernel Version 6.8: Wed Sep 10
15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC Power
Macintosh powerpc
PostgreSQL 7.3.4 built with: ./configure --with-includes=/sw/include/
--with-libraries=/sw/lib --prefix=/
Volumes/Palin-RAID-Array-1/pg/postgresql-7.3.4
Fink 0.13.2 distribution version 0.5.3.cvs (for readline)

Non-default postgresql.conf settings:
max_connections = 60
shared_buffers = 200 # min max_connections*2 or 16, 8KB each
sort_mem = 1024 # min 64, size in KB

Thanks in advance
Gareth Boden

eGovernment Solutions Limited
Baird House, 15-17 St Cross Street, London EC1N 8UW
t: 020 7539 2815
f: 020 7539 2829
www.egsgroup.com

--Apple-Mail-8--746934721
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
charset=US-ASCII

Hi,


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).
Having run with verbose logging for some time, we have not noticed any
real consistency in the types of queries which are causing the crash
recently. A few weeks ago we were noticing crashes most commonly when
processing queries with extremely large IN () lists (> 1000 entries)
but we have now removed most of these from the application and are
still seeing crashes. Some days we get none, some days they happen
every five minutes! Today we have connected to the backends with gdb
to get a bit more information and have seen the following problems:


Program received signal EXC_BAD_ACCESS, Could not access memory.

0x0012c284 in hash_search (hashp=0x0, keyPtr=0x1195b84,
action=3212837216, foundPtr=0x1195b80 "") at dynahash.c:512

512 {


Program received signal EXC_BAD_ACCESS, Could not access memory.

_copyRangeTblEntry (from=0x12836c0) at copyfuncs.c:1455

1455 {


Has anyone got any clues or suggestions? Looks like some kind of stack
corruption to me but I don't know what we can do to solve it. The
relevant background info is:


Hardware:

Apple Xserve (cluster node), 2 x 1GHz processors, 2GB RAM


Software:

Apple Computer, Inc. GCC version 1175, based on gcc version 3.1
20020420 (prerelease)

Darwin palin.egsgroup.com 6.8 Darwin Kernel Version 6.8: Wed Sep 10
15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC Power
Macintosh powerpc

PostgreSQL 7.3.4 built with: ./configure --with-includes=/sw/include/
--with-libraries=/sw/lib --prefix=/

Volumes/Palin-RAID-Array-1/pg/postgresql-7.3.4

Fink 0.13.2 distribution version 0.5.3.cvs (for readline)


Non-default postgresql.conf settings:

max_connections = 60

shared_buffers = 200 # min max_connections*2 or 16, 8KB each

sort_mem = 1024 # min 64, size in KB


Thanks in advance

Gareth Boden


<fontfamily><param>Arial</param>eGovernment Solutions Limited

Baird House, 15-17 St Cross Street, London EC1N 8UW

t: 020 7539 2815

f: 020 7539 2829

<underline><color><param>1919,1919,FFFF</param>www.egsgroup.com</color></underline>

</fontfamily>
--Apple-Mail-8--746934721--


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

Default Re: [BUGS] Unpredictable signal 11 crashes on Mac OS X - 10-08-2003 , 09:57 AM






Gareth Boden <gareth.boden (AT) egsgroup (DOT) com> writes:
Quote:
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.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)


Reply With Quote
  #3  
Old   
Gareth Boden
 
Posts: n/a

Default Re: [BUGS] Unpredictable signal 11 crashes on Mac OS X - 10-08-2003 , 10:20 AM



--Apple-Mail-14--727748734
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed


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.

Thanks for that, Tom. We were heading down the same path with our
thoughts and are at this moment moving the database onto a backup
server to see if we have the same problems. I will let you know how we
get on.

On a separate note I can say that, with regard to crashing on very
large IN clauses, we have seen such behaviour exhibited on several
servers. However that is no longer a problem for us since we have
removed the badly-written queries!

Regards
Gareth Boden

eGovernment Solutions Limited
Baird House, 15-17 St Cross Street, London EC1N 8UW
t: 020 7539 2815
f: 020 7539 2829
www.egsgroup.com


--Apple-Mail-14--727748734
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
charset=US-ASCII



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


<excerpt>Gareth Boden <<gareth.boden (AT) egsgroup (DOT) com> writes:

<excerpt>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).

</excerpt>

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.


</excerpt>

Thanks for that, Tom. We were heading down the same path with our
thoughts and are at this moment moving the database onto a backup
server to see if we have the same problems. I will let you know how we
get on.


On a separate note I can say that, with regard to crashing on very
large IN clauses, we have seen such behaviour exhibited on several
servers. However that is no longer a problem for us since we have
removed the badly-written queries!


Regards

Gareth Boden


<fontfamily><param>Arial</param>eGovernment Solutions Limited

Baird House, 15-17 St Cross Street, London EC1N 8UW

t: 020 7539 2815

f: 020 7539 2829

<underline><color><param>1919,1919,FFFF</param>www.egsgroup.com</color></underline>

</fontfamily>


--Apple-Mail-14--727748734--



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.