numba/numba — pull request #438 by seibert (2014-05-20 20:09:18+00:00)
Title: Fix segfault in _helperlib.c:Numba_recreate_record() caused by incorrect use of Py_DECREF

Numba_recreate_record() segfaults if the pdata argument does not support the buffer interface because the cleanup stage tries to decrement the reference counter on null pointers. The Py_XDECREF macro checks for NULL and does nothing, otherwise it behaves like Py_DECREF.

There is still a failure of the unittest test_record_dtype.TestRecordDtype.test_record_return on Python 3.4, but with this patch, it will stop segfaulting the interpreter.