Re: oid failures on Alpha solved - Mailing list pgsql-hackers

From Tom Lane
Subject Re: oid failures on Alpha solved
Date
Msg-id 3744.978204278@sss.pgh.pa.us
Whole thread Raw
In response to Re: oid failures on Alpha solved  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: oid failures on Alpha solved  (Brent Verner <brent@rcfile.org>)
List pgsql-hackers
> Brent Verner <brent@rcfile.org> writes:
>> formatting '-1040' with '%u'
>> snprintf = 18446744073709550576
>> sprintf  = 4294966256

>> oidout() is where the offending call originates, FWIW.
>> snprintf(result, 12, "%u", o);

> Hm.  This is clearly a bug in snprintf.

OK, I was able to duplicate this failure on Debian Alpha after forcing
our snprintf emulation to be used instead of the system's.  Problem is
sloppy signed-vs-unsigned casting in snprintf.c.  I've committed a fix.
Another day, another bug...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: oid failures on Alpha solved
Next
From: Brent Verner
Date:
Subject: Re: oid failures on Alpha solved