Tom Lane writes ("Re: Old GCC bug affecting postgresql error handling"):
> Ian Jackson <[email protected]> writes:
> > I wasn't able to do a test of the actual current postgresql with a
> > current Debian compiler.  The original report is on sparc64 which is a
> > bit difficult as I can't find any sparc64 porter box.
> 
> Well, I certainly hope current Postgres would not show the bug, regardless
> of gcc's whims ;-).  We have those extra return statements in there now,
> and also in current sources there's been an attempt to teach the compiler
> that ereport(ERROR) doesn't return anyway, via __builtin_unreachable()
> or local equivalent.  I remain concerned that there may be other places
> exhibiting bugs with the same cause, but I'm pretty sure we've masked the
> division-by-zero symptom.

Indeed.  If I had the time and resources I might try seeing if current
postgresql can be persuaded to re-exhibit this bug with a modern
compiler by reverting some of the return statements put in as a
workaround for this bug.  But I don't.

Regards,
Ian.


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to