Re: cvs head initdb hangs on unixware

Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>

From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: ohp@pyrenet.fr
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Zdenek Kotala <Zdenek.Kotala@Sun.COM>, pgsql-hackers list <pgsql-hackers@postgresql.org>
Date: 2008-12-10T11:00:31Z
Lists: pgsql-hackers
ohp@pyrenet.fr wrote:
> On Tue, 9 Dec 2008, Tom Lane wrote:
>> Hmm.  It looks to me like the compiler is getting confused by the
>> interaction between nodeno, leftnodeno, and rightnodeno.  Try this
>> patch to see if it gets around it.  (This is a tad better anyway
>> since it avoids examining the right child if not needed.)
>>
> Brillant!
> You made my day, can't wait for this patch to be committed.

I find it pretty scary to work around compiler bugs like this. Who knows 
what other code it miscompiles. Can you reduce fsm_search_avail into a 
small stand-alone test program, and file a bug report with the compiler 
vendor?

BTW, why does this work on warthog buildfarm member? Different compiler 
version?

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com