In my 1.18-pre8 worlds I can't go underground while in spectator mode because when I do the game crashes and gives me exit code 0. This happens either when I use the F3 + F4 menu or when I change gamemode via command.
Environment
Put your operating system (Windows 7, Windows XP, OSX) and Java version if you know it here
Duplicate of MC-242708.