https://sourceware.org/bugzilla/show_bug.cgi?id=33314

--- Comment #9 from Sam James <sam at gentoo dot org> ---
In the first call to _Py_freelists_GET..

Bad:
```
(gdb) p _Py_freelists_GET
$5 = {struct _Py_freelists *(void)} 0xf7bcda30 <new_dict+48>
(gdb) p tstate
$6 = (PyThreadState *) 0xf7f567d0 <_mi_heap_main>
```

(_mi_heap_main is from mimalloc which CPython uses by default in some
configurations now, apparently.)

Good:
```
Breakpoint 1.23, _Py_freelists_GET () at
../Include/internal/pycore_freelist.h:20
20          PyThreadState *tstate = _PyThreadState_GET();
(gdb) n
28          return &tstate->interp->object_state.freelists;
(gdb) p tstate
$1 = (PyThreadState *) 0xf7f72bd0 <_PyRuntime+166696>
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to