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

--- Comment #7 from Sam James <sam at gentoo dot org> ---
When it's broken, in the first call to _PyFreeList_PopNoStats, `fl` points to
some offset of `object_subclasshook_doc`:
```
Breakpoint 1.7, _PyFreeList_PopNoStats (fl=0xf7e59fb8
<object_subclasshook_doc+136>) at ../Include/internal/pycore_freelist.h:76
76          void *obj = fl->freelist;
(gdb) p fl
$2 = (struct _Py_freelist *) 0xf7e59fb8 <object_subclasshook_doc+136>
(gdb) n
77          if (obj != NULL) {
(gdb) n
79              fl->freelist = *(void **)obj;
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
_PyFreeList_PopNoStats (fl=0xf7e59fb8 <object_subclasshook_doc+136>) at
../Include/internal/pycore_freelist.h:79
79              fl->freelist = *(void **)obj;
(gdb)

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
```

When it's working, in the first call to _PyFreeList_PopNoStats, `fl` points to
some offset of `_PyRuntime`:
```
Breakpoint 1.7, _PyFreeList_PopNoStats (fl=0xf7f58310 <_PyRuntime+57960>) at
../Include/internal/pycore_freelist.h:76
76          void *obj = fl->freelist;
(gdb) p fl
$1 = (struct _Py_freelist *) 0xf7f58310 <_PyRuntime+57960>
```

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

Reply via email to