Project

General

Profile

Actions

Bug #12846

closed

delete

Added by Osanda (Osanda Jayathissa) over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:77644]

Description

We can crash a computer by making it's Disk and Memory to 100% and CPU too above 50%.

The issue is when performing illogical ranges and converting them to an array.

Proof of Concept:
('malith'..'osanda').to_a

I have tested on a 64-bit Windows 10 machine. After few minutes the whole PC would get stuck and the user will have to restart the PC.

Actions #1

Updated by Osanda (Osanda Jayathissa) over 7 years ago

  • File deleted (Screenshot_3.png)

Updated by Osanda (Osanda Jayathissa) over 7 years ago

  • Subject changed from Crash in Ranges to delete
  • ruby -v deleted (ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32])

Updated by duerst (Martin Dürst) over 7 years ago

  • Status changed from Open to Rejected

Osanda Jayathissa wrote:

We can crash a computer by making it's Disk and Memory to 100% and CPU too above 50%.

I have tested on a 64-bit Windows 10 machine. After few minutes the whole PC would get stuck and the user will have to restart the PC.

You can do this in many different ways, with most if not all programming languages, and with most operating systems.

Just generate more and more objects, or on a lower level (e.g. C), allocate more and more memory.

In general, if you wait long enough (which may be 5 or more minutes), the OS will tell the process that there is no memory anymore, and will kill the process. Then the machine will work again normally.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0