Bug #93711 | connection_cext has a memory leak in the python mysql-connector | ||
---|---|---|---|
Submitted: | 21 Dec 2018 5:34 | Modified: | 27 Mar 2021 22:16 |
Reporter: | Alexander Stachniak | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | Connector / Python | Severity: | S1 (Critical) |
Version: | 8.0.11 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | memory leak |
[21 Dec 2018 5:34]
Alexander Stachniak
[6 Feb 2019 7:40]
Florian Becker
I stumbled across this bug yesterday and I can confirm the memory leak.
[27 Aug 2019 15:50]
Ondrej Medek
Also confirming this severe bug. We have a long running server and it increases memory until it crashes by OOM. tracemalloc diff snapshots shows lines: connection_cext.py:536 connection_cext.py:532 connection_cext.py:153 connection_cext.py:276 connection_cext.py:289 Seemed to me like some self._cmysql call bug, so I have tried the connection with use_pure = True and the problem has gone away. AFAIK such severe bugs should be fixed soon.
[27 Feb 2021 22:16]
MySQL Verification Team
Thank you for the bug report. Please check version 8.0.23. Thanks.
[28 Mar 2021 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[22 May 2024 10:22]
Shaun Hirst
I am seeing a memory leak in version 8.4.0 /usr/local/lib/python3.9/dist-packages/mysql/connector/connection_cext.py:506: size=170 KiB, count=2650, average=66 B /usr/local/lib/python3.9/dist-packages/mysql/connector/connection_cext.py:506: size=192 KiB, count=3081, average=64 B /usr/local/lib/python3.9/dist-packages/mysql/connector/connection_cext.py:506: size=214 KiB, count=3511, average=62 B