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

Re: Server hangs on multiple connections

From: David Christian <davidc(at)comtechmobile(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Server hangs on multiple connections
Date: 2002-09-20 17:03:57
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
On Friday, Sep 20, 2002, at 11:30 US/Eastern, Tom Lane wrote:

> Another interesting line of attack would be to try compiling
> src/backend/storage/lmgr/lwlock.c at different optimization levels,
> to see if the problem goes away with less optimization.  We saw a
> problem on AIX (if memory serves) before 7.2 release that turned out
> to be due to overaggressive optimization by the compiler.  We thought
> we'd added enough "volatile" keywords to lwlock.c to discourage any
> code rearrangement, but maybe we still need more.

This seems to work:

$ ./configure
$ make
$ cd src/backend/storage/lmgr
$ rm lwlock.o
$ gcc -O0 -g -Wall -Wmissing-prototypes -Wmissing-declarations 
-I../../../../src/include   -c -o lwlock.o lwlock.c
$ cd -
$ make check

All tests pass except 'geometry'.
I also tried the above with -O1, and it still failed on 'make check'.

So, is it safe to proceed this way?  If this turns out to be the 
solution, is there anything I should be aware of with regard to 
stability and performance vs. a normal install?


In response to


pgsql-bugs by date

Next:From: Tom LaneDate: 2002-09-20 17:34:06
Subject: Re: Server hangs on multiple connections
Previous:From: David ChristianDate: 2002-09-20 15:49:53
Subject: Re: Server hangs on multiple connections

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