https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95426
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> --- gcc_jit_context_dump_reproducer_to_file runs in the testsuite, and I see it generating sane-looking reproducers (with non-empty create_code functions). Are you calling gcc_jit_context_dump_reproducer_to_file before or after calling gcc_jit_context_compile? (or when not calling gcc_jit_context_compile?) I have a feeling that calling it after an unsuccessful compile might break it ("unsuccessful" in the sense of a compile that generates a non-fatal error but doesn't crash the process). Can you attach the result of gcc_jit_context_dump_reproducer_to_file to this bug please? Another thing to try might be to use gcc_jit_context_set_logfile and to attach the resulting logfile (though you may need to flush it and close it and not call gcc_jit_context_compile).