Bug #104860 | import numpy before mysql.connector, connect will Segmentation Fault | ||
---|---|---|---|
Submitted: | 7 Sep 2021 17:59 | Modified: | 3 May 2022 21:49 |
Reporter: | john grabner | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | Connector / Python | Severity: | S3 (Non-critical) |
Version: | 8.0.26 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[7 Sep 2021 17:59]
john grabner
[7 Sep 2021 18:05]
john grabner
changed RUN pip install --user numpy to RUN pip install numpy No impact, Seg fault occurs as described.
[7 Sep 2021 18:25]
john grabner
Bug reproduced in RUN pip install mysql-connector-python==8.0.20 RUN pip install mysql-connector-python==8.0.21 RUN pip install mysql-connector-python==8.0.22 RUN pip install mysql-connector-python==8.0.26 Bug not present in RUN pip install mysql-connector-python==8.0.19 RUN pip install mysql-connector-python==8.0.18 RUN pip install mysql-connector-python==8.0.16 RUN pip install mysql-connector-python==8.0.5 Some other bug present in the release that causes a program crash but not segment fault RUN pip install mysql-connector-python==8.0.17 # image_worker_1 | Traceback (most recent call last): # image_worker_1 | File "./crash.py", line 15, in <module> # image_worker_1 | cnx = mysql.connector.connect( user='root', password='108885', host='mysql-ancient-db', port=3306, database='ancient_script_db') # image_worker_1 | File "/usr/local/lib/python3.8/dist-packages/mysql/connector/__init__.py", line 173, in connect # image_worker_1 | return MySQLConnection(*args, **kwargs) # image_worker_1 | File "/usr/local/lib/python3.8/dist-packages/mysql/connector/connection.py", line 104, in __init__ # image_worker_1 | self.connect(**kwargs) # image_worker_1 | File "/usr/local/lib/python3.8/dist-packages/mysql/connector/abstracts.py", line 777, in connect # image_worker_1 | self.config(**kwargs) # image_worker_1 | File "/usr/local/lib/python3.8/dist-packages/mysql/connector/abstracts.py", line 404, in config # image_worker_1 | self._add_default_conn_attrs() # image_worker_1 | File "/usr/local/lib/python3.8/dist-packages/mysql/connector/connection.py", line 126, in _add_default_conn_attrs # image_worker_1 | os_ver = "-".join(platform.linux_distribution()[0:2]) # pylint: disable=W1505 # image_worker_1 | AttributeError: module 'platform' has no attribute 'linux_distribution'
[9 Sep 2021 8:15]
MySQL Verification Team
Hello john grabner, Thank you for the report and test case. regards, Umesh
[21 Oct 2021 9:05]
Nuno Mariz
Posted by developer: Thanks for reporting it. This is a duplicate of BUG#30429284.