https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109007
--- Comment #4 from bugreporter66 at gmail dot com --- I did the remote debugging as suggested by Andrew Pinski and it seems to fail somewhere in _GLOBAL__sub_i_eh_alloc.cc After connecting to qemu from gdb I issued step command and the program was terminated with SIGILL (illegal instruction) single stepping until exit from that function (which has no line number information). I am attaching the screenshot.