Quantcast
Channel: Intel® Software - Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2746

A feature in Fortran can make a computer down

$
0
0

What I mean is that I can use the feature of allocate to stop the system running.

For example, my machine has 62G memory. 

Then I define an array  allocatable in fortran. If i allocate the array for 62G, the allocate operation will failed. Only when I allocate 60G or less, it can be success.

And the allocate function doesn't allocate the memory for the array unless I initilize the array.

So I define two allocatable arrays, and allocate them both by 60G. The allocate operation succeed.Then I valued them one by one. My computer went down.


Viewing all articles
Browse latest Browse all 2746

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>