[CONPY-155] segmentation fault on calling connection.get_server_version() Created: 2021-06-06  Updated: 2021-06-06  Resolved: 2021-06-06

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

Type: Bug Priority: Minor
Reporter: Alex Hall Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: bug
Environment:

Python 3.9.5
Linux 5.10.36
GCC 10.2


Attachments: PNG File Screenshot_2021-06-05_18-19-19.png     PNG File Screenshot_2021-06-05_18-20-23.png    

 Description   

Calling a connection objects get_server_version function returns the version once, and then on a second or third call will segfault the interpreter.
Additionally sometimes it will return the version once, and then return garbaged data.
It is more accurate to say that get_server_version returns the version once and then goes into undefined behavior
server_version_info and server_version do not suffer from this.


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