This is new behavior and a new limitation on THE. The old THE could read files from directories where the user had no write permissions, just read permissions. The editor should not require write permission from all directories to be read. For Linux, FreeBSD, NetBSD and OpenBSD temp directories could be created in the /tmp or /var/tmp directories and not in the in current directory. On Windows there are also temp directories which could be used too.
Slackware current has this -O3 bug and #595 Slackware 15.0 the stable version does not have these bugs. Slackware current has gcc 14.2.0 Slackware 15.0 has gcc 11.2.0 Changing the -O3 to -O2 fixed it for me too on Slackware current.
This bug does not appear in THE-3.3 (THE-3.3RC8)
THE-4.0: non-root linux user exit with return status 31
This bug is fixed and can be closed.
After looking at this problem again, I came up with a better patch. See attachment...
Same failure in California...
Signal 11 nthe of empty file on OpenBSD 5.7