<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16711" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=487581606-24122008><FONT face=Arial color=#0000ff
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=487581606-24122008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=487581606-24122008><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=487581606-24122008><FONT face=Arial color=#0000ff size=2>Here
is my error report</FONT></SPAN></DIV>
<DIV><SPAN class=487581606-24122008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=487581606-24122008><SPAN class=622581703-24122008><FONT
face="Courier New" size=2> 86 =ERROR REPORT====
24-Dec-2008::04:06:52 ===^M<BR> 87 ** Generic server
sms_monitor_log terminating ^M<BR> 88 ** Last message in
was {'$gen_cast',{tryf,"send_flash:\"20187336005\""}}^M<BR>
89 ** When Server state ==
{state,<0.113.0>,<0.114.0>}^M<BR> 90 **
Reason for termination == ^M<BR> 91 **
{badarg,[{io,format,^M<BR>
92
[<0.113.0>,"~p ~p:~p~n",^M<BR>
93
[{2008,12,24},{4,6,52},"send_flash:\"20187336005\""]]},^M<BR>
94
{sms_monitor_log,handle_cast,2},^M<BR>
95
{gen_server,handle_msg,5},^M<BR>
96
{proc_lib,init_p,5}]}^M</FONT></SPAN></SPAN></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial color=#0000ff size=2></FONT> </P>
<P><FONT face=Arial color=#0000ff size=2></FONT> </P>
<P><SPAN class=487581606-24122008><FONT face=Arial color=#0000ff size=2>And the
part of my code that calls the io:format to write in a log
file.</FONT></SPAN></P>
<P><SPAN class=487581606-24122008><FONT face="Courier New" color=#0000ff
size=2> handle_cast({tryf,Msg}, State)
-><BR>
io:format(State#state.tryf,"~p
~p:~p~n",[date(),time(),Msg]),<BR>
{noreply, State};</FONT></SPAN></P>
<P><SPAN class=487581606-24122008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </P>
<P><SPAN class=487581606-24122008><FONT face=Arial color=#0000ff size=2>I can't
reproduce the error and I don't know why it happened in the first
place!</FONT></SPAN></P>
<P><SPAN class=487581606-24122008><FONT color=#0000ff><FONT face=Arial size=2>I
was wondering if this is a bug, I found that it was reported in <FONT
color=#000000>V5.5.3</FONT> </FONT><A
title=blocked::http://www.erlang.org/pipermail/erlang-bugs/2007-February/000311.html
href="http://www.erlang.org/pipermail/erlang-bugs/2007-February/000311.html"><FONT
face=Arial
size=2>http://www.erlang.org/pipermail/erlang-bugs/2007-February/000311.html</FONT></A><FONT
face=Arial size=2> </FONT></FONT></SPAN></P>
<DIV><FONT face="Courier New"></FONT><SPAN class=487581606-24122008></SPAN><FONT
face=Arial><FONT color=#0000ff><FONT size=2>/Ali</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=487581606-24122008></SPAN></FONT></FONT></FONT><BR> </DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Maxim Treskin [mailto:zerthurd@gmail.com]
<BR><B>Sent:</B> Wednesday, December 24, 2008 7:00 AM<BR><B>To:</B> Ali
Yakout<BR><B>Cc:</B> erlang-questions@erlang.org<BR><B>Subject:</B> Re:
[erlang-questions] io format badarg!<BR></FONT><BR></DIV>
<DIV></DIV>What is your OTP version?<BR><BR>I tried to eval it in OTP-R12B-5, it
works ok:<BR><BR>Erlang (BEAM) emulator version 5.6.5 [source] [async-threads:0]
[hipe] [kernel-poll:false]<BR><BR>Eshell V5.6.5 (abort with ^G)<BR>1>
io:format("~p ~p:~p~n",
[{2008,12,24},{4,6,52},"send_flash:\"20187336005\""]).<BR>{2008,12,24}
{4,6,52}:"send_flash:\"20187336005\""<BR>ok<BR>2><BR><BR><BR>Can you show
your source code with this error?<BR clear=all><BR>-- <BR>Maxim
Treskin<BR></BODY></HTML>