This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-10-06 14:21:13

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Core dump/Segmentation fault

In Scratch 2.0, in the BYOB, what if the block calls itself over and over and over again?  In other languages, it core dumps and seg faults.  What if trolls do that?  What will happen?


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#2 2012-10-06 14:41:33

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: Core dump/Segmentation fault

I just tested it and what happens is that you get an infinite loop happening but are able to stop it with the Stop button still.

I defined it as such (naming it myblock):

scroll (10)
myblock
scroll (10)
myblock
scroll (10)
myblock

then called it with a green flag click.

Last edited by soupoftomato (2012-10-06 14:43:02)


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#3 2012-10-06 15:31:07

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Core dump/Segmentation fault

Oh.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

Board footer