A possible bug in the compiler - Forrtl: severe (41): insufficient virtual memory

A possible bug in the compiler - Forrtl: severe (41): insufficient virtual memory

A possible bug in the compiler - Forrtl: severe (41): insufficient virtual memory

Note: There was a similar thread recently with a very hot discussion related to the error message 'Insufficient Virtual Memory'.

I reproduced the problem when trying to multiply two 64Kx64K matricies ( REAL(8) data type ) on a system that has 32GB of physical memory and Virtual Memory settings are as follows:

Min Size: 64GB

Max Size: 128GB

So, the system is VERY capable ( Intel Core i7-3840QM / Ivy Bridge / 4 cores ) and has lots of memory.

The Fortran test application failed when it allocated ~31GB of physical memory and it didn't try to allocate virtual memory ( greater than 32GB (!)  ). My questions are: Is there some limitation? Why doesn't it allocate more memory especially when lots of virtual memory is available?

In one of my recent test with a C/C++ test application I was able to allocate 128GB of memory ( ~31GB of physical memory and ~97GB of virtual memory ) in order to complete some processing.

Here is output from the Fortran test application ( console based ):

forrtl: severe (41): insufficient virtual memory
Image              PC                Routine            Line        Source
FortTestApp.exe    00000001400740A7  Unknown      Unknown  Unknown
FortTestApp.exe    000000014006F4B3  Unknown      Unknown  Unknown
FortTestApp.exe    00000001400336D6  Unknown      Unknown  Unknown
FortTestApp.exe    0000000140020542  Unknown      Unknown  Unknown
FortTestApp.exe    000000014001744D  Unknown      Unknown  Unknown
FortTestApp.exe    000000014000291A  Unknown      Unknown  Unknown
FortTestApp.exe    0000000140074F4C  Unknown      Unknown  Unknown
FortTestApp.exe    000000014005D4DF  Unknown      Unknown  Unknown
kernel32.dll           0000000076C2652D  Unknown      Unknown  Unknown
ntdll.dll                 000000007700C521  Unknown       Unknown  Unknown


5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

If I change Virtual Memory settings to:

Min Size: 96GB
Max Size: 128GB

the error message forrtl: severe (41): insufficient virtual memory is not displayed and the test application works ( a screenshot provided ).

It would be nice if Intel software engineers look at why the error happens when the Min Size of Virtual Memory is set to 64GB ( see previous post ).


Downloadimage/jpeg fortranvmproblem2.jpg82.78 KB

Test program, please.

Retired 12/31/2016

I will post today a complete Visual Studio 2008 project.

Please find attached a Visual Studio 2008 ( Professional Edition ) Fortran project ( very simple ) and let me know if you have any questions regarding reproducing the problem ( like, Virtual Memory settings, etc ).

Thanks in advance,


Downloadapplication/zip forttestapp.zip4.75 KB

Leave a Comment

Please sign in to add a comment. Not a member? Join today