[erlang-questions] Erlang VM crashed due to io output?
Ludovic Coquelle
lcoquelle@REDACTED
Thu Jul 19 11:57:25 CEST 2007
I checked again, and it crashes again.
I'm using R11B4 and some more info on my config:
bash> cat /proc/version
Linux version 2.6.15-28-386 (buildd@REDACTED) (gcc version 4.0.3 (Ubuntu
4.0.3-1ubuntu5)) #1 PREEMPT Thu May 10 09:45:43 UTC 2007
bash> erl -version
Erlang (ASYNC_THREADS,HIPE) (BEAM) emulator version 5.5.4
On 7/19/07, Torbjorn Tornkvist <tobbe@REDACTED> wrote:
>
> Ludovic Coquelle wrote:
> > Sorry for posting again this question, but I think there is something
> > important to know and I can't figure out what.
> >
> > I run a command printing simple text on default io device (stdout):
> > bash> erl -noshell -eval "lists:foreach(fun(N) -> io:format(\"~w~n\",
> > [N]) end, lists:seq(1,5)), erlang:halt()."
> > 1
> > 2
> > 3
> > 4
> > 5
> >
> > That's the behaviour I expected.
> > But if I try to pipe the result, erlang crash:
> > bash> erl -noshell -eval "lists:foreach(fun(N) -> io:format(\"~w~n\",
> > [N]) end, lists:seq(1,5)), erlang:halt()." | head -n 3
> > 1
> > 2
> > 3
>
> I can't reproduce this behaviour.
> I'm running R11B2 on Debian and the above works perfectly.
> What OS are you running this on?
>
> --Tobbe
>
> > Crash dump was written to: erl_crash.dump
> > init terminating in do_boot ()
> >
> > What's happening?
> > Is it a normal behaviour?
> >
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070719/d0309225/attachment.htm>
More information about the erlang-questions
mailing list