I managed to track down the segfaults on linux to this. I have no idea why this causes a segfault if it's omitted, this code is never even run. I think this is getting to the point where this needs to land to make much more forward progress, so I'm just going to leave this in for now. I can open an issue about this as well (will do so after landing, assuming that it lands).