Skip to content

Commit 44a3e46

Browse files
pablogsalDinoV
authored andcommitted
fix offset in addr2line
1 parent f3f5795 commit 44a3e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3804,7 +3804,7 @@ _PyImport_LoadLazyImportTstate(PyThreadState *tstate, PyObject *lazy_import)
38043804
}
38053805

38063806
/* Resolve line number from instruction offset on demand */
3807-
int lineno = PyCode_Addr2Line((PyCodeObject *)lz->lz_code, lz->lz_instr_offset);
3807+
int lineno = PyCode_Addr2Line((PyCodeObject *)lz->lz_code, lz->lz_instr_offset*2);
38083808

38093809
/* Get strings - these can return NULL on encoding errors */
38103810
const char *filename_str = PyUnicode_AsUTF8(lz->lz_code->co_filename);

0 commit comments

Comments
 (0)