On Tuesday, 10 July 2018 at 21:09:23 UTC, Steven Schveighoffer wrote:
[...]
As far as the OS is concerned, a[2 .. $] is within the process memory limit.

Of course, that's an out of bounds access, so the compiler or the bounds check *should* complain.

It complains at runtime

   > ./dumpme2
   core.exception.RangeError@dumpme2.d(4): Range violation
   ----------------
   ??:? _d_arrayboundsp [0x42bb1e]
   dumpme2.d:4 _Dmain [0x42ba42]

but how do I force the runtime to generate a coredump for real post-mortem analysis?

Reply via email to