<!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.16825" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=689521116-20042009><FONT face=Arial
color=#0000ff size=2>I don't mind slow. but why is the shell and it's supervisor
crashing when I do this. This sounds like a bug, isn't it?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=689521116-20042009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=689521116-20042009><FONT face=Arial
color=#0000ff size=2>I tried it with commas and you are right. It does compute
correctly and it returns ok.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=689521116-20042009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=689521116-20042009><FONT face=Arial
color=#0000ff size=2>When I do:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=689521116-20042009><FONT face=Arial
color=#0000ff size=2>C.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=689521116-20042009><FONT face=Arial
color=#0000ff size=2>it works fine and prints the value.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=689521116-20042009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=689521116-20042009><FONT face=Arial
color=#0000ff size=2>When I do:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=689521116-20042009><FONT face=Arial
color=#0000ff size=2>D.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=689521116-20042009><FONT face=Arial
color=#0000ff size=2>erlang almost immediately stops responding to all console
input and the processes are dead so typing does nothing and there is no CPU
usage.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=689521116-20042009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Hynek Vychodil
[mailto:vychodil.hynek@gmail.com] <BR><B>Sent:</B> Monday, April 20, 2009 9:06
AM<BR><B>To:</B> Steve Kirsch<BR><B>Cc:</B>
erlang-questions@erlang.org<BR><B>Subject:</B> Re: [erlang-questions] A simple
multiply in the shell will kill the shell and its
supervisor<BR></FONT><BR></DIV>
<DIV></DIV>It is not about number of C's. It should compute even
E=D*D*D*D*D*D*D*D*D*D*D*D*D*D,ok. but what I mean that your statements cause
print out each result. (Notice coma instead of dot.) Your terminal can be slow
for printing or there can be issue with erlang io subsystem. I have tested that
in Konsole (KDE on my Linux) I wait several seconds to print out E but for
examle in vim it will be crash reasonably. I don't know which console werl and
erl uses but I think there may be big difference.<BR><BR>
<DIV class=gmail_quote>On Mon, Apr 20, 2009 at 5:51 PM, Steve Kirsch <SPAN
dir=ltr><<A
href="mailto:steve.kirsch@propel.com">steve.kirsch@propel.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>sure, it
works with "fewer" C's in the computation. I already knew
that.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>What do
you meean a problem with io speed?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>I'm not
trying to make this computation, I was only doing it for fun and was amazed I
could crash the shell and its supervisor and nobody restarted anything doing
something as simple as a multiply.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Why does
this happen and why does it happen only with erl and not werl on the same
windows machine?</FONT></SPAN></DIV><BR>
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> Hynek Vychodil [mailto:<A
href="mailto:vychodil.hynek@gmail.com"
target=_blank>vychodil.hynek@gmail.com</A>] <BR><B>Sent:</B> Monday, April 20,
2009 6:15 AM<BR><B>To:</B> Steve Kirsch<BR><B>Cc:</B> <A
href="mailto:erlang-questions@erlang.org"
target=_blank>erlang-questions@erlang.org</A><BR><B>Subject:</B> Re:
[erlang-questions] A simple multiply in the shell will kill the shell and its
supervisor<BR></FONT><BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>
<DIV></DIV>Try do
this:<BR>B=A*A*A*A*A,C=B*B*B*B*B*B*B*B*B*B*B,D=C*C*C*C*C*C*C*C*C*C*C,ok.<BR><BR>There
can be problem is with io speed.<BR><BR>
<DIV class=gmail_quote>On Mon, Apr 20, 2009 at 9:32 AM, Steve Kirsch <SPAN
dir=ltr><<A href="mailto:steve.kirsch@propel.com"
target=_blank>steve.kirsch@propel.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">This
only seems to kill erlang's shell permanently using erl on Windows.<BR>werl
on the same machine works fine.<BR><BR>Startup erl on windows.<BR><BR>type
in one
line:<BR>A=7480957234592457928345982345987234857923589723485728347598245927385724<BR>852984.
B=A*A*A*A*A. C=B*B*B*B*B*B*B*B*B*B*B. D=C*C*C*C*C*C*C*C*C*C*C.<BR><BR>then
your erl will stop responding. It isn't in a loop and it isn't<BR>using up
cpu or crash dumping.<BR><BR>It is just completely dead.<BR><BR>I've tried
this on two completely different PC's running windows XP Pro<BR>with the
same result. You do it on werl on the same machine, everything<BR>is fine.
Do it from erl, and it hangs.<BR><BR>i am using R12B.<BR><BR>inspection via
a remote shell reveals that these processes have<BR>disappeared from i()
listing:<BR><0.26.0>
supervisor_bridge:user_sup/1
233<BR>81 0<BR>
gen_server:loop/6
9<BR><BR><0.28.0>
user:server/2
377<BR>600 0<BR>user
user:get_chars/7
21<BR><BR><0.29.0>
erlang:apply/2
4181<BR>4649 0<BR>
shell:get_command1/5
16<BR><BR><0.35.0>
erlang:apply/2
1597<BR>2550
0<BR>
shell:eval_loop/3
6<BR><BR><BR>why is this
happening?<BR>_______________________________________________<BR>erlang-questions
mailing list<BR><A href="mailto:erlang-questions@erlang.org"
target=_blank>erlang-questions@erlang.org</A><BR><A
href="http://www.erlang.org/mailman/listinfo/erlang-questions"
target=_blank>http://www.erlang.org/mailman/listinfo/erlang-questions</A><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>--Hynek (Pichi) Vychodil<BR><BR>Analyze your data in
minutes. Share your insights instantly. Thrill your boss. Be a data
hero!<BR>Try Good Data now for free: <A href="http://www.gooddata.com"
target=_blank>www.gooddata.com
</A><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR><BR clear=all><BR>--
<BR>--Hynek (Pichi) Vychodil<BR><BR>Analyze your data in minutes. Share your
insights instantly. Thrill your boss. Be a data hero!<BR>Try Good Data now
for free: <A href="http://www.gooddata.com">www.gooddata.com<!-- yyy::X-Propel-ID:BGPq094kg6r0::zzz -->
</A><BR></BODY></HTML>