[New-bugs-announce] [issue42697] 3.8.7rc1 regression: 'free(): invalid pointer' after running backports-zoneinfo test suite

Michał Górny report at bugs.python.org
Sun Dec 20 16:56:08 EST 2020

New submission from Michał Górny <mgorny at gentoo.org>:

I'm still investigating the problem and I will include more information shortly.  However, I'm filing the bug early, as I'd like to prevent this regression from hitting 3.8.7 release.

When running backports-zoneinfo-0.2.1 test suite using cpython 3.8.7rc1, all tests pass, then python segfaults:

Ran 233 tests in 2.200s

OK (skipped=27)
free(): invalid pointer
/var/tmp/portage/dev-python/backports-zoneinfo-0.2.1/temp/environment: line 3054:   167 Aborted                 (core dumped) "${EPYTHON}" -m unittest discover -v

The backtrace I got doesn't seem very useful:

#0  __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#1  0x00007fd4b6c79536 in __GI_abort () at abort.c:79
#2  0x00007fd4b6cd2bf7 in __libc_message (action=action at entry=do_abort, fmt=fmt at entry=0x7fd4b6de53b5 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#3  0x00007fd4b6cdaa7a in malloc_printerr (str=str at entry=0x7fd4b6de3593 "free(): invalid pointer") at malloc.c:5389
#4  0x00007fd4b6cdbe5c in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:4201
#5  0x00007fd4b6f00aaa in ?? () from /usr/lib64/libpython3.8.so.1.0
#6  0x00007fd4b6eb8745 in ?? () from /usr/lib64/libpython3.8.so.1.0
#7  0x00007fd4b6ece115 in ?? () from /usr/lib64/libpython3.8.so.1.0
#8  0x00007fd4b6ece2f2 in ?? () from /usr/lib64/libpython3.8.so.1.0
#9  0x0000562239cd1a60 in ?? ()
#10 0x00007fd4b7086967 in ?? () from /usr/lib64/libpython3.8.so.1.0
#11 0x00007fd4b7167e20 in ?? () from /usr/lib64/libpython3.8.so.1.0
#12 0x0000562239cd1a60 in ?? ()
#13 0x00007fd4b6f05d26 in ?? () from /usr/lib64/libpython3.8.so.1.0
#14 0x00007fd4b6fccf0d in ?? () from /usr/lib64/libpython3.8.so.1.0
#15 0x00007fd4b6fcdc1d in PyGC_Collect () from /usr/lib64/libpython3.8.so.1.0
#16 0x000056223996c670 in ?? ()
#17 0x00007fd4b6f93e8a in PyImport_Cleanup () from /usr/lib64/libpython3.8.so.1.0
#18 0x00007fd4b6faa55c in Py_NewInterpreter () from /usr/lib64/libpython3.8.so.1.0
#19 0x0000000000000000 in ?? ()

I'm going to start by trying to bisect this, and let you know the results when I manage them.

components: Interpreter Core
messages: 383464
nosy: mgorny
priority: normal
severity: normal
status: open
title: 3.8.7rc1 regression: 'free(): invalid pointer' after running backports-zoneinfo test suite
type: crash
versions: Python 3.8

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list