https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64721

            Bug ID: 64721
           Summary: SIBAGRT turns into SIGSEGV in jit testsuite
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org

Failures of the CHECK_ macros within jit/harness.h call abort(), which ought to
appear in the logs as a FAIL with SIGABRT.

However, they actually lead to a SIGSEGV.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff76e0909 in pp_format (pp=0x0, text=0x7fffffffdac0) at
../../src/gcc/pretty-print.c:282
282      output_buffer *buffer = pp_buffer (pp);
(gdb) bt
#0  0x00007ffff76e0909 in pp_format (pp=0x0, text=0x7fffffffdac0) at
../../src/gcc/pretty-print.c:282
#1  0x00007ffff76de590 in diagnostic_report_diagnostic (context=0x7ffff7ffae40
<global_diagnostic_context>, 
    diagnostic=0x7fffffffdac0) at ../../src/gcc/diagnostic.c:862
#2  0x00007ffff76df772 in internal_error (gmsgid=0x7ffff7787c43 "%s") at
../../src/gcc/diagnostic.c:1237
#3  0x00007ffff6dcc5a6 in crash_signal (signo=6) at ../../src/gcc/toplev.c:381
#4  <signal handler called>
#5  0x0000003095835887 in __GI_raise (sig=sig@entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#6  0x0000003095836f78 in __GI_abort () at abort.c:89
#7  0x0000000000402258 in verify_code (ctxt=0x604010, result=0x63df20)
    at
/home/david/coding-3/gcc-git-jit-pypy/src/gcc/testsuite/jit.dg/test-abort.c:18
#8  0x000000000040213f in test_jit (
    argv0=0x7fffffffe6b8
"/home/david/coding-3/gcc-git-jit-pypy/build/gcc/testsuite/jit/test-abort.c.exe",
user_data=0x0)
    at
/home/david/coding-3/gcc-git-jit-pypy/src/gcc/testsuite/jit.dg/harness.h:346
#9  0x000000000040221e in main (argc=1, argv=0x7fffffffe448)
    at
/home/david/coding-3/gcc-git-jit-pypy/src/gcc/testsuite/jit.dg/harness.h:389

where context->printer is NULL (for the global_diagnostic_context).

Reply via email to