[erlang-questions] io format BUG?

Ali Yakout ali.yakout@REDACTED
Wed Dec 24 07:27:39 CET 2008


Hi,
 
My Erlang version is V5.6.3, and the io:format works fine with it, but
at some point it crashed and stopped the running release.
 
Here is my error report
 
    86  =ERROR REPORT==== 24-Dec-2008::04:06:52 ===^M
    87  ** Generic server sms_monitor_log terminating ^M
    88  ** Last message in was
{'$gen_cast',{tryf,"send_flash:\"20187336005\""}}^M
    89  ** When Server state == {state,<0.113.0>,<0.114.0>}^M
    90  ** Reason for termination == ^M
    91  ** {badarg,[{io,format,^M
    92                  [<0.113.0>,"~p ~p:~p~n",^M
    93
[{2008,12,24},{4,6,52},"send_flash:\"20187336005\""]]},^M
    94              {sms_monitor_log,handle_cast,2},^M
    95              {gen_server,handle_msg,5},^M
    96              {proc_lib,init_p,5}]}^M

 

 

And the part of my code that calls the io:format to write in a log file.

    handle_cast({tryf,Msg}, State) ->
        io:format(State#state.tryf,"~p ~p:~p~n",[date(),time(),Msg]),
        {noreply, State};

 

I can't reproduce the error and I don't know why it happened in the
first place!

I was wondering if this is a bug, I found that it was reported in V5.5.3
http://www.erlang.org/pipermail/erlang-bugs/2007-February/000311.html
<http://www.erlang.org/pipermail/erlang-bugs/2007-February/000311.html>


/Ali

 
________________________________

From: Maxim Treskin [mailto:zerthurd@REDACTED] 
Sent: Wednesday, December 24, 2008 7:00 AM
To: Ali Yakout
Cc: erlang-questions@REDACTED
Subject: Re: [erlang-questions] io format badarg!


What is your OTP version?

I tried to eval it in OTP-R12B-5, it works ok:

Erlang (BEAM) emulator version 5.6.5 [source] [async-threads:0] [hipe]
[kernel-poll:false]

Eshell V5.6.5  (abort with ^G)
1> io:format("~p ~p:~p~n",
[{2008,12,24},{4,6,52},"send_flash:\"20187336005\""]).
{2008,12,24} {4,6,52}:"send_flash:\"20187336005\""
ok
2>


Can you show your source code with this error?

-- 
Maxim Treskin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081224/647695db/attachment.htm>


More information about the erlang-questions mailing list