[CONPY-148] Core dump with named tuple cursor and information_schema Created: 2021-03-23  Updated: 2021-03-23  Resolved: 2021-03-23

Status: Closed
Project: MariaDB Connector/Python
Component/s: Generic
Affects Version/s: 1.0.6
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Luciano Barcaro Assignee: Georg Richter
Resolution: Won't Fix Votes: 0
Labels: None


 Description   

Connector is causing a coredump if I try to access any information_schema table with a named tuple cursor (dict and tuple works as expected)

import mariadb
 
db = mariadb.connect(host='10.0.0.2', user='Administrador', password='xxx', database='base')
 
qr = db.cursor(named_tuple=True)
qr.execute('select * from some_table')
rows = qr.fetchall()
print('select 1 ok')
 
qr.execute('select * from information_schema.columns')
 
# Coredump here with 
# Fatal Python error: type_traverse() called for non-heap type 'mariadb.Row'
rows = qr.fetchall()



 Comments   
Comment by Georg Richter [ 2021-03-23 ]

Which Python version do you use?

Comment by Luciano Barcaro [ 2021-03-23 ]

On my current project, 3.7.6.

But, I just tested with 3.9.2 and worked as expected.

Unfortunately, I'm tied up with 3.7 for now.

I'll try to upgrade to a newer 3.7 as soon as I can and see.

Comment by Georg Richter [ 2021-03-23 ]

I'm able to reproduce it with 3.7.6 - but not with 3.6, 3.8 or 3.9

The issue was reported as #34784 but the fix isn't in Python 3.7.6. I would suggest to upgrade to a more recent version.

Comment by Luciano Barcaro [ 2021-03-23 ]

TKS, Georg.

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