https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80035
--- Comment #6 from Tom de Vries <vries at gcc dot gnu.org> --- (In reply to Tom de Vries from comment #2) > Replacing trap with exit or ret (or adding it after trap), makes the sigsegv > go away. Nvidia suggested a workaround of adding exit after trap for this (PR81069 comment 3) bug report.