Tatsuo Ishii <t-ishii@sra.co.jp> writes:
> When I recompiled with LOCK_DEBUG and trace_lwlocks = true, it *works*
> (and saw lots of lock debugging messages, of course). However if I
> turn trace_lwlocks to off, the backend stucks again.
Ugh ... ye classic Heisenbug ...
> Is there anything I can do?
Apparently the problem is timing-sensitive, which is hardly surprising
for a lock issue. You might find that it occurs some of the time if
you repeat the test over and over.
> Note the machine has 4 processors. Is that related to?
Hard to tell at this point, but considering that no one else has
reported a problem so far, it does seem like multiple CPUs at least
help to make the failure more probable. But it could just be a
portability problem. Do you have another machine with identical OS
and fewer processors to try for comparison?
Andreas, have you tried CVS tip lately on AIX? What's your results?
regards, tom lane