summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/patches/fix-addr2line.patch
blob: 96729d8d31915b8d52a4f19da38b9e4cdcd00665 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- a/Objects/codeobject.c	(index)
+++ b/Objects/codeobject.c	(working tree)
@@ -768,7 +768,7 @@ PyCode_Addr2Line(PyCodeObject *co, int addrq)
     if (co->_co_monitoring && co->_co_monitoring->lines) {
         return _Py_Instrumentation_GetLine(co, addrq/sizeof(_Py_CODEUNIT));
     }
-    assert(addrq >= 0 && addrq < _PyCode_NBYTES(co));
+    // assert(addrq >= 0 && addrq < _PyCode_NBYTES(co));
     PyCodeAddressRange bounds;
     _PyCode_InitAddressRange(co, &bounds);
     return _PyCode_CheckLineNumber(addrq, &bounds);