This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: double free or corruption (while using smem)
Type: crash Stage: resolved
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel, terry.reedy, zulthan
Priority: normal Keywords:

Created on 2017-10-15 06:00 by zulthan, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
logs.txt zulthan, 2017-11-20 15:06 log files
Messages (5)
msg304418 - (view) Author: Zoltan Krajcsovics (zulthan) Date: 2017-10-15 06:00
Command executed when the crash happened:

/usr/bin/python /usr/bin/smem -t -c command pss -P /usr/lib/chromium/chromium

The attached error.log contains the backtrace and memory map printed.

This is a sporadic error, the command is called every second 0-24, and I got one such error after half a day of running. I probably had another after a few days, but I failed to save that one, so I am not sure, if they are really the same.

It would seem that using a more overloaded / older machine triggers the error more often, the machine I got it on was a

Hewlett-Packard HP Compaq dc7900 Small Form Factor/3031h, BIOS 786G1 v01.27 10/22/2015

The problem seems to have emerged after updating to Debian Stretch.

python version:
Python 2.7.13

smem version:
pool/main/s/smem/smem_1.4-2_all.deb
(could not get an internal smem version, only the debian package)
msg304665 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-10-20 17:12
The error log is not present.  Try uploading again.
msg306550 - (view) Author: Zoltan Krajcsovics (zulthan) Date: 2017-11-20 15:06
In a span of about 1 month, I had multiple errors:

*** Error in `/usr/bin/python': free(): invalid next size (normal): 0x000055f9c9e7c970 ***
*** Error in `/usr/bin/python': free(): invalid next size (normal): 0x000055e33fda3970 ***
*** Error in `/usr/bin/python': free(): invalid next size (normal): 0x0000564d42335970 ***
*** Error in `/usr/bin/python': double free or corruption (out): 0x0000561d8b9d4f80 ***
*** Error in `/usr/bin/python': double free or corruption (out): 0x0000557700e74f80 ***
*** Error in `/usr/bin/python': free(): invalid next size (normal): 0x0000564b6142e970 ***

In the same time-period, I have been running the same code on another system, with a different python version, which did not produce any error:

python version that causes issues:
python --version
Python 2.7.13

python version that is error-free:
Python 2.7.9
msg394604 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-05-27 21:09
Terry, this is a 2.7 memory management issue with not a log to go by. Would you agree that there is no chance we can do anything about this?
msg394610 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-05-27 21:53
pydev core has not touched 2.7 in a year.  Anyone else maintaining 2.7 has had a chance to grab 2.7 issues.  So all 2.7 issues should be closed unless obviously relevant to current issues (and even then have 2.7 removed).  I agree that the later does not apply here.
History
Date User Action Args
2022-04-11 14:58:53adminsetgithub: 75971
2021-05-27 21:53:07terry.reedysetstatus: pending -> closed
resolution: wont fix
messages: + msg394610

stage: resolved
2021-05-27 21:09:30iritkatrielsetstatus: open -> pending
nosy: + iritkatriel
messages: + msg394604

2017-11-20 15:06:05zulthansetfiles: + logs.txt

messages: + msg306550
2017-10-20 17:12:31terry.reedysetnosy: + terry.reedy
messages: + msg304665
2017-10-15 06:00:32zulthancreate