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

Bug#47584: libc6.1: localtime() hangs on alpha



Well, for me it seems not to hang, but just to take very long (> 50
min). Also the problem seem to be in the bigtime_test() function.

This funtion fill increasing values into all time fields up to
1073741824. On i386 the libc sees that the year is past 2038 and
simply returns -1. On Alphas, where time_t is 64 bits, those times are
representable and the libc struggles to normalize the month etc. This
seems to be slow for huge values, likely because it is optimized for
normal cases (most programs don't rely on the normalization feature, I
guess, or at least don't handle dates more than a few thousand years
in the future).

I would suggest downgrading this bug to normal or wishlist;
inefficient handling of weird arguments isn't really a bug IMHO.

	Falk


Reply to: