prim_eval:'receive'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

prim_eval:'receive'

Tony Rogvall-2
I still think this is a bit boring.

> self() ! a.
> prim_eval:'receive'(fun(X) -> prim_eval:'receive'(fun(Y) -> Y end, 500) end, 1000).
Segmentation fault: 11

Is it really that hard to fix?

It would be fun to see cool hacks that can bring down the emulator!

A list of NOT so cool hacks:

  > init:stop().
  > erlang:halt(1).
  > os:cmd(”kill ”++os:getpid()).
  > lists:seq(1, 18446744073709551616).
  - write driver or nif that crash

But anything else should be interesting to see.

How many ways can we crash the emulator in this way?

/Tony


_______________________________________________
erlang-bugs mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-bugs

signature.asc (817 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: prim_eval:'receive'

Anthony Ramine-4

> Le 13 sept. 2016 à 00:34, Tony Rogvall <[hidden email]> a écrit :
>
> Is it really that hard to fix?

Yes, just don't do that.
_______________________________________________
erlang-bugs mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-bugs
Reply | Threaded
Open this post in threaded view
|

Re: prim_eval:'receive'

Tony Rogvall-2
You said last time I was complaining about this feature that
the runtime could be brought down in a number of ways.

I would like to see a list of a least 5 ways to do that! Preferably beautiful ways.

/Tony

> On 13 sep 2016, at 14:17, Anthony Ramine <[hidden email]> wrote:
>
>
>> Le 13 sept. 2016 à 00:34, Tony Rogvall <[hidden email]> a écrit :
>>
>> Is it really that hard to fix?
>
> Yes, just don't do that.


_______________________________________________
erlang-bugs mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-bugs

signature.asc (817 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: prim_eval:'receive'

Hynek Vychodil
Send to any process
lists:foldl(fun(_,X) -> [X|X] end, [], lists:seq(1, 40))
(Do not try to look on result in shell because result is sent to the shell or change at least to 20)

On Tue, Sep 13, 2016 at 4:40 PM Tony Rogvall <[hidden email]> wrote:
You said last time I was complaining about this feature that
the runtime could be brought down in a number of ways.

I would like to see a list of a least 5 ways to do that! Preferably beautiful ways.

/Tony

> On 13 sep 2016, at 14:17, Anthony Ramine <[hidden email]> wrote:
>
>
>> Le 13 sept. 2016 à 00:34, Tony Rogvall <[hidden email]> a écrit :
>>
>> Is it really that hard to fix?
>
> Yes, just don't do that.

_______________________________________________
erlang-bugs mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-bugs

_______________________________________________
erlang-bugs mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-bugs
Reply | Threaded
Open this post in threaded view
|

Re: prim_eval:'receive'

Tony Rogvall-2
Ah, exhausting memory did not count :-)
But it is a nice example anyway.

/Tony

> On 15 sep 2016, at 17:57, Hynek Vychodil <[hidden email]> wrote:
>
> Send to any process
> lists:foldl(fun(_,X) -> [X|X] end, [], lists:seq(1, 40))
> (Do not try to look on result in shell because result is sent to the shell or change at least to 20)
>
> On Tue, Sep 13, 2016 at 4:40 PM Tony Rogvall <[hidden email]> wrote:
> You said last time I was complaining about this feature that
> the runtime could be brought down in a number of ways.
>
> I would like to see a list of a least 5 ways to do that! Preferably beautiful ways.
>
> /Tony
>
> > On 13 sep 2016, at 14:17, Anthony Ramine <[hidden email]> wrote:
> >
> >
> >> Le 13 sept. 2016 à 00:34, Tony Rogvall <[hidden email]> a écrit :
> >>
> >> Is it really that hard to fix?
> >
> > Yes, just don't do that.
>
> _______________________________________________
> erlang-bugs mailing list
> [hidden email]
> http://erlang.org/mailman/listinfo/erlang-bugs

_______________________________________________
erlang-bugs mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-bugs

signature.asc (817 bytes) Download Attachment