[issue24768] Bytearray double free or corruption
Martin Panter added the comment: Ah yes, I was confused. The bug fix isn’t actually in 3.4.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24768 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24768] Bytearray double free or corruption
New submission from pidpawel: I've managed to isolate some code whish results in core dump/heap corruption. I've tested it on Python 3.4 and 2.7. On 2.7 works fine, on 3.4.3 bug exists. Example backtraces: ⌠ aqua ~ Error! ⌡ %pidpawel time ./deltest.py *** Error in `python3': malloc(): memory corruption: 0x01ef0940 *** Then process hangs, or: ⌠ aqua ~ Error! ⌡ %pidpawel time ./deltest.py *** Error in `python3': double free or corruption (!prev): 0x009a7370 *** === Backtrace: = /lib64/libc.so.6(+0x7233b)[0x7f90baca633b] /lib64/libc.so.6(+0x7780e)[0x7f90bacab80e] /lib64/libc.so.6(+0x77ffb)[0x7f90bacabffb] /usr/lib64/libpython3.4.so.1.0(PyByteArray_Resize+0xd2)[0x7f90bb256c22] /usr/lib64/libpython3.4.so.1.0(+0x6cc82)[0x7f90bb257c82] /usr/lib64/libpython3.4.so.1.0(+0x6d5d0)[0x7f90bb2585d0] /usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0xcb5)[0x7f90bb2f9be5] /usr/lib64/libpython3.4.so.1.0(PyEval_EvalCodeEx+0x85e)[0x7f90bb3015ce] /usr/lib64/libpython3.4.so.1.0(PyEval_EvalCode+0x3b)[0x7f90bb30169b] /usr/lib64/libpython3.4.so.1.0(+0x1319e4)[0x7f90bb31c9e4] /usr/lib64/libpython3.4.so.1.0(PyRun_FileExFlags+0x9d)[0x7f90bb31e99d] /usr/lib64/libpython3.4.so.1.0(PyRun_SimpleFileExFlags+0x101)[0x7f90bb31f871] /usr/lib64/libpython3.4.so.1.0(Py_Main+0xd6c)[0x7f90bb334f5c] python3(main+0x169)[0x400b09] /lib64/libc.so.6(__libc_start_main+0xf0)[0x7f90bac547b0] python3[0x400bb6] === Memory map: 0040-00401000 r-xp 08:02 7177593 /usr/bin/python3.4 00601000-00602000 r--p 1000 08:02 7177593 /usr/bin/python3.4 00602000-00603000 rw-p 2000 08:02 7177593 /usr/bin/python3.4 008c-009d5000 rw-p 00:00 0 [heap] 7f90b94c9000-7f90b94df000 r-xp 08:02 4729096 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1 7f90b94df000-7f90b96de000 ---p 00016000 08:02 4729096 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1 7f90b96de000-7f90b96df000 r--p 00015000 08:02 4729096 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1 7f90b96df000-7f90b96e rw-p 00016000 08:02 4729096 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1 7f90b96e-7f90b96e2000 r-xp 08:02 4255845 /usr/lib64/python3.4/lib-dynload/_random.cpython-34.so 7f90b96e2000-7f90b98e2000 ---p 2000 08:02 4255845 /usr/lib64/python3.4/lib-dynload/_random.cpython-34.so 7f90b98e2000-7f90b98e3000 r--p 2000 08:02 4255845 /usr/lib64/python3.4/lib-dynload/_random.cpython-34.so 7f90b98e3000-7f90b98e4000 rw-p 3000 08:02 4255845 /usr/lib64/python3.4/lib-dynload/_random.cpython-34.so 7f90b98e4000-7f90b98f9000 r-xp 08:02 2496055 /lib64/libz.so.1.2.8 7f90b98f9000-7f90b9af8000 ---p 00015000 08:02 2496055 /lib64/libz.so.1.2.8 7f90b9af8000-7f90b9af9000 r--p 00014000 08:02 2496055 /lib64/libz.so.1.2.8 7f90b9af9000-7f90b9afa000 rw-p 00015000 08:02 2496055 /lib64/libz.so.1.2.8 7f90b9afa000-7f90b9d0d000 r-xp 08:02 4067396 /usr/lib64/libcrypto.so.1.0.0 7f90b9d0d000-7f90b9f0c000 ---p 00213000 08:02 4067396 /usr/lib64/libcrypto.so.1.0.0 7f90b9f0c000-7f90b9f2a000 r--p 00212000 08:02 4067396 /usr/lib64/libcrypto.so.1.0.0 7f90b9f2a000-7f90b9f36000 rw-p 0023 08:02 4067396 /usr/lib64/libcrypto.so.1.0.0 7f90b9f36000-7f90b9f3a000 rw-p 00:00 0 7f90b9f7-7f90b9f75000 r-xp 08:02 4218152 /usr/lib64/python3.4/lib-dynload/_hashlib.cpython-34.so 7f90b9f75000-7f90ba174000 ---p 5000 08:02 4218152 /usr/lib64/python3.4/lib-dynload/_hashlib.cpython-34.so 7f90ba174000-7f90ba175000 r--p 4000 08:02 4218152 /usr/lib64/python3.4/lib-dynload/_hashlib.cpython-34.so 7f90ba175000-7f90ba176000 rw-p 5000 08:02 4218152 /usr/lib64/python3.4/lib-dynload/_hashlib.cpython-34.so 7f90ba176000-7f90ba17e000 r-xp 08:02 4255848 /usr/lib64/python3.4/lib-dynload/math.cpython-34.so 7f90ba17e000-7f90ba37d000 ---p 8000 08:02 4255848 /usr/lib64/python3.4/lib-dynload/math.cpython-34.so 7f90ba37d000-7f90ba37e000 r--p 7000 08:02 4255848 /usr/lib64/python3.4/lib-dynload/math.cpython-34.so 7f90ba37e000-7f90ba38 rw-p 8000 08:02 4255848 /usr/lib64/python3.4/lib-dynload/math.cpython-34.so 7f90ba38-7f90ba531000 rw-p 00:00 0 7f90ba531000-7f90ba62c000 r-xp 08:02 2497839 /lib64/libm-2.21.so 7f90ba62c000-7f90ba82b000 ---p 000fb000 08:02 2497839 /lib64/libm-2.21.so 7f90ba82b000-7f90ba82c000 r--p 000fa000 08:02
[issue24768] Bytearray double free or corruption
Changes by Antoine Pitrou pit...@free.fr: -- stage: - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24768 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24768] Bytearray double free or corruption
Antoine Pitrou added the comment: This was actually fixed in 98c1201d8eea, which didn't make it into 3.4.3. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24768 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24768] Bytearray double free or corruption
Martin Panter added the comment: Reproduceable on 32 bit x86 Arch Linux. FTR this is not Issue 23985, since that was fixed in 3.4.3. I have not investigated, but maybe it shares the same cause (Issue 19087). Also, it may be helpful to build with “./configure --with-pydebug” to pinpoint the problem. -- nosy: +pitrou, vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24768 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24768] Bytearray double free or corruption
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +benjamin.peterson, yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24768 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com