23 #include <sys/syscall.h> 26 #include "allheaders.h" 42 pixDestroy(&global_crash_pixes[thread_id]);
44 Pix* clone = pixClone(pix);
45 pixSetXRes(clone, resolution);
46 pixSetYRes(clone, resolution);
47 global_crash_pixes[thread_id] = clone;
54 tprintf(
"Received signal %d!\n", signal_code);
61 if (global_crash_pixes[thread_id] !=
nullptr) {
62 fprintf(stderr,
"Crash caused by image with resolution %d\n",
63 pixGetYRes(global_crash_pixes[thread_id]));
64 fprintf(stderr,
"<Cut here>\n");
65 pixWriteStreamPng(stderr, global_crash_pixes[thread_id], 0.0);
66 fprintf(stderr,
"\n<End cut>\n");
void set_global_loc_code(int loc_code)
void SavePixForCrash(int resolution, Pix *pix)
void signal_exit(int signal_code)
const int kMaxNumThreadPixes
DLLSYM void tprintf(const char *format,...)
void set_global_subsubloc_code(int loc_code)
void set_global_subloc_code(int loc_code)