Ticket #10963: debug_exception_ignored.patch

File debug_exception_ignored.patch, 447 bytes (added by vbraun, 6 years ago)

Patch for python to abort instead of ignore exception

  • Python/errors.c

    old new  
    686686        PyFile_WriteString(" in ", f);
    687687        PyFile_WriteObject(obj, f, 0);
    688688        PyFile_WriteString(" ignored\n", f);
     689        if (f != Py_None)
     690            abort();   /* crash and let gdb do its thing */
    689691        PyErr_Clear(); /* Just in case */
    690692    }
    691693    Py_XDECREF(t);