bug in inets or erlang!

peter erlang@REDACTED
Sat Nov 26 15:51:54 CET 2005


After my FreeBSD server running erlang was restarted, suddenly INETS was not comming up as it was expected to. In the inets error_log I found:

> more error_log_16111
[26/Nov/2005:13:14:42 -0000] reporting error: traverse exit from apply: mod_get:
do =>
{badarg,[{erlang,universaltime_to_localtime,[{{1969,12,31},{23,59,59}}]},
         {calendar,local_time_to_universal_time_dst,1},
         {httpd_util,rfc1123_date,1},
         {mod_get,get_modification_date,1},
         {mod_get,do_get,1},
         {httpd_response,traverse_modules,2},
         {httpd_response,generate_and_send_response,1},
         {httpd_request_handler,respond,3}]}


WHY is inets calling erlang:universaltime_to_localtime/1 with  [{{1969,12,31},{23,59,59}}] ?? Looks like a potential bugg to me OR should this bug actually be located to the erlang module instead? Should this call really result in a crach?

Anyhow to get inets up and running again I had to patch the calendar.erl module catching for this crash and in that case return {{1970,1,1},{0,0,0}}. 

What need to change here erlang or some module in inets?

/PeterPeter Lund
_________________________________________________________
Sent using Mail2Forum (http://m2f.sourceforge.net)



More information about the erlang-questions mailing list