https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83704

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> If I compile with -O2, or compile with -O0 and set the stack size limit
> to unlimited before running, the segfault disappears for me.

I can confirmed that the 'Illegal instruction' is gone if I compile the test
with -O1 or with '-Wl,-stack_size,0x100002000' (0x100001000 is not enough and
on darwin the stack size with ulimit is hard wired to 64Mb).

However this does not fix the output of

  print *, "'", ch(1:2_8**32_8+3_8), "'"

> I can compile it fine, but do not have enough memory to run it.
> So dominiq, how much RAM do you have, maybe I can find a machine of sufficient
> capacity. One has to be careful we dont take someones OS to its knees.

I have 16Gb of RAM and I have been able to run tests using up to 2_8**35
characters (I didn't tried more).

Reply via email to