The following example demonstrates a sequence of commands that when executed crash Stata without possibility to save data/code:

Code:
do http://www.radyakin.org/statalist/statabugs/label_crash_bug/bug_2019-08-19.do
Checked in Stata 14.0, 15.1, 16.0 for Windows. (Various Windows versions)

The command itself is not supposed to be executed this way, yet, I believe, the result should not be a crash that is observed.