Re: cvs head initdb hangs on unixware

Andrew Dunstan <andrew@dunslane.net>

From: Andrew Dunstan <andrew@dunslane.net>
To: ohp@pyrenet.fr
Cc: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>, Zdenek Kotala <Zdenek.Kotala@Sun.COM>, pgsql-hackers list <pgsql-hackers@postgresql.org>
Date: 2008-12-03T18:13:59Z
Lists: pgsql-hackers

ohp@pyrenet.fr wrote:
>>
>> Looking at fsm_rebuild_page, I wonder if the compiler is treating 
>> "int" as an unsigned integer? That would cause an infinite loop.
>>
>>
> No, a simple printf of nodeno shows it  starting at 4096 all the way 
> down to 0, starting back at 4096...
>
> I wonder if leftchild/rightchild definitions has something to do with 
> it...

With probably no relevance at all, I notice that this routine is 
declared extern, although it is only referenced in its own file 
apparently. Don't we have a tool that checks that?

cheers

andrew