edit: looks like it dies in this: https://github.com/gcc-mirror/gcc/blob/master/gcc/tree-switc...
edit2: it also would've been nice to see the actual bytes being decoded when it faults, maybe it ends up spuriously writing over .text
edit3: on the LKML https://lore.kernel.org/lkml/D99589F4-BC5D-430B-87B2-72C2037...
Seems like there's already a potential answer to this on the LKML - looks like it has something to do with BTB state being shared between threads?
https://lore.kernel.org/lkml/20231010083956.GEZSUN3OKuYSyU18...
edit: looks like it dies in this: https://github.com/gcc-mirror/gcc/blob/master/gcc/tree-switc...
edit2: it also would've been nice to see the actual bytes being decoded when it faults, maybe it ends up spuriously writing over .text
edit3: on the LKML https://lore.kernel.org/lkml/D99589F4-BC5D-430B-87B2-72C2037...