[CONPY-118] Memory leak Created: 2020-10-01  Updated: 2022-10-28  Resolved: 2020-10-02

Status: Closed
Project: MariaDB Connector/Python
Component/s: Build
Affects Version/s: 1.0.2
Fix Version/s: 1.0.3

Type: Bug Priority: Blocker
Reporter: Stefko Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

Python 3.7.4/Windows 7
Python 3.6.9/Linux Ubuntu 18.04 4.15.0-111-generic x86_64


Attachments: Text File leak_test_short.py    
Issue Links:
Relates
relates to CONPY-231 Memory Leak from cursor.fetchone() Closed

 Description   

Heavy memory leak observed while running the attached script. This script is simplified in order to demonstrate and allow for replication of the issue.

It looks like the leak is around cursor.execute/cursor.fetchall methods

This is a critical/blocker issue as shortly the script eats enormous amount of memory.
The actual project I work on uses pooled connections and intensive SQL SELECT operations. With this memory leak we can not use mariadb. Same script with mysql connector shows no memory leaks.



 Comments   
Comment by Stefko [ 2020-10-02 ]

Same problem is observed with v.1.0.3

Comment by Georg Richter [ 2020-10-02 ]

Thank you for your bug report.

Fixed in rev. bce98d74cd6e9d4917b0a75fecb3350b5d6d921c

Generated at Thu Feb 08 03:30:23 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.