[erlang-bugs] Revised version: Re: leap-second-enabled FreeBSD doesn't work right with R12B4 erts/emulator/beam/erl_time_sup.c; correction patch included

Kenji Rikitake kenji.rikitake@REDACTED
Sat Nov 1 01:42:28 CET 2008


Paul (and the erlang-bugs list):

I had found the similar one (as I remember),
but the {{1969,12,31}...} part of
calendar:local_time_to_universal_time_dst/1
looks quite strange to me.
I cannot test the code since my 7.0R system
is TAI-based (zoneinfo compiled with LEAPSECOND flag).

How did you compile the program?
Mine is with the port (/usr/ports/lang/erlang),
with stock gcc-4.2.1 and HiPE disabled.
(I experienced a loading error of BEAM files
so I disabled the HiPE.)

Also I suggest you to test
erlang:localtime_to_universaltime/1
and
erlang:universaltime_to_localtime/1
for whether they provide symmetric results.

Regards,
Kenji Rikitake

In the message <9B23E0C2-40EB-4ED5-A8F4-578A332BD4D3@REDACTED>
dated Fri, Oct 31, 2008 at 06:51:52PM +0100,
Paul Guyot <pguyot@REDACTED> writes:
> I have just noticed that httpd_util:rfc1123_date/1 does not work at  
> all on FreeBSD 7.0 with erlang R12B4 unpatched.
> 
> 1> httpd_util:rfc1123_date({{2008, 10, 31}, {18, 47, 0}}).
> ** exception error: bad argument
>      in function  erlang:universaltime_to_localtime/1
>         called as erlang:universaltime_to_localtime({{1969,12,31}, 
> {23,59,59}})
>      in call from calendar:local_time_to_universal_time_dst/1
>      in call from httpd_util:rfc1123_date/1
> 
> Is it a symtom of the bug you fixed?
> 
> Paul



More information about the erlang-bugs mailing list