[CONPY-131] Crash with Python3.6: type_traverse() called for non-heap type Row. Created: 2020-11-14  Updated: 2021-09-06  Resolved: 2020-11-16

Status: Closed
Project: MariaDB Connector/Python
Component/s: Generic
Affects Version/s: 1.0.4
Fix Version/s: 1.0.5

Type: Bug Priority: Major
Reporter: Georg Richter Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None


 Description   

This bug can be reproduced with Python 3.6 (but not with 3.8 or 3.9).

When running unit test suite it aborts with core dump:

test_update_bulk (test.integration.test_cursor.TestCursor) ... Fatal Python error: type_traverse() called for non-heap type 'Row'
 
Current thread 0x00007ff0b58bb180 (most recent call first):
  File "/home/georg/work/mariadb/conn/mcp_commit/testing/test/integration/test_cursor.py", line 614 in <listcomp>
  File "/home/georg/work/mariadb/conn/mcp_commit/testing/test/integration/test_cursor.py", line 614 in test_update_bulk
  File "/usr/lib/python3.6/unittest/case.py", line 605 in run
  File "/usr/lib/python3.6/unittest/case.py", line 653 in __call__
  File "/usr/lib/python3.6/unittest/suite.py", line 122 in run
  File "/usr/lib/python3.6/unittest/suite.py", line 84 in __call__
  File "/usr/lib/python3.6/unittest/suite.py", line 122 in run
  File "/usr/lib/python3.6/unittest/suite.py", line 84 in __call__
  File "/usr/lib/python3.6/unittest/suite.py", line 122 in run
  File "/usr/lib/python3.6/unittest/suite.py", line 84 in __call__
  File "/usr/lib/python3.6/unittest/runner.py", line 176 in run
  File "/usr/lib/python3.6/unittest/main.py", line 256 in runTests
  File "/usr/lib/python3.6/unittest/main.py", line 95 in __init__
  File "/usr/lib/python3.6/unittest/__main__.py", line 18 in <module>
  File "/usr/lib/python3.6/runpy.py", line 85 in _run_code
  File "/usr/lib/python3.6/runpy.py", line 193 in _run_module_as_main
Aborted (core dumped)



 Comments   
Comment by Georg Richter [ 2020-11-16 ]

fixed in rev. f6be6ba51295b685fe1c37d759f79b451b683884

Comment by Yan [ 2021-09-06 ]

It seems that I'm experiencing the same problem with version 1.0.7on Python 3.6. It happens only if I set 'named_tuple=True' on my cursor.

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