What you experience is indeed Stack Overflow.
but it is happening before your code even starts!
if it is a Console application (which I believe it is),
there are few preparations made by the OS before calling your main
method like: Creating 'argv' and 'argc', allocating the console window, redirecting stdin/out and most relevant to the question Allocating STACK for the program
the last step in the preparation code is calling your main which require a significant STACK size which apparently is larger then the default allocation made by the system...
But, it isn't true that it does not report any error! Though it does not emit to console, it should return a Non-Zero return code (and should throw Signal too).
To overcome this:
You may either allocate the block on the Heap instead int* list = new int[519276];
,
or create a new Thread with sufficient stack size. (P.S. Some OS will let you define the entry point`s stack-size.)
hope this helps.
cheers.