Re: oid failures on Alpha solved

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brent Verner <brent(at)rcfile(dot)org>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: oid failures on Alpha solved
Date: 2000-12-30 19:24:38
Message-ID: 3744.978204278@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Brent Verner <brent(at)rcfile(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Brent Verner 2000-12-30 20:04:16 Re: oid failures on Alpha solved
Previous Message Peter Eisentraut 2000-12-30 19:12:32 Re: Inheritance docs error.