[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#200641: glibc gmtime() broken for 64bit time_t (in arch=alpha)



> On Wed, 09 Jul 2003, Tom Fernandes wrote:
> > +#if 0
> >         /* Some gmtime() implementations are broken and will return
> >          * NULL for time_ts larger than 40 bits even on 64-bit platforms
> >          * so we'll just cap it at 40 bits */
> >         if(bits > 40) bits = 40;
> > +#endif
> 
> Fix gmtime() in glibc, please.  It is about time people fix it, it makes no
> sense to cripple the app to work around such an obious bug... if time_t is
> 64bits, then gmtime must use all those 64 bits properly.
> 
> > bits). Since the above patch doesn't work, it would be nice to know why you
> 
> Oh, it DOES work. If I enable it, it will work around the issue...  I
> disabled it on purpose because I hate such fixups.  If glibc is buggy, we
> fix it and keep going, instead of just working around the problem :)
> 
> I was NOT aware glibc was broken at the time, though.  Were I, I would have
> sent an email to the alpha porters list requesting their help to fix
> glibc...

> I hope the glibc guys fix this issue...

Could you explain what the bug is?  If you have spare time to make
sample program to reproduce this issue, please let us know.

Regards,
-- gotom



Reply to: