Re: [HACKERS] oid failures on Alpha solved

2000-12-30 Thread Brent Verner
On 30 Dec 2000 at 12:57 (-0500), Tom Lane wrote: | Brent Verner <[EMAIL PROTECTED]> writes: | > formatting '-1040' with '%u' | > snprintf = 18446744073709550576 | > sprintf = 4294966256 | | > oidout() is where the offending call originates, FWIW. | > snprintf(result, 12, "%u", o); | | Hm.

Re: [HACKERS] oid failures on Alpha solved

2000-12-30 Thread Tom Lane
> Brent Verner <[EMAIL PROTECTED]> 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 duplicat

Re: [HACKERS] oid failures on Alpha solved

2000-12-30 Thread Tom Lane
Brent Verner <[EMAIL PROTECTED]> 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. Did I understand you correctl

[HACKERS] oid failures on Alpha solved

2000-12-30 Thread Brent Verner
Hi, It turns out the problem causing the oid failures is with our snprintf. specifically we are formatting "%u" incorrectly: using a enhanced-for-testing version of our snprintf I get. formatting '-1040' with '%lu' snprintf = 18446744073709550576 sprintf = 18446744073709550576 formatti