apache / apache/arrow

[Python] Windows 10 Access Violation exit(5) application crashes when mysql-connector-python==9.1.0 is used and pyarrow installed

Open
#45,065 1 comment 0 reactions 0 assignees View on GitHub
Component: Python Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the bug, including details regarding any error messages, version, and platform.

As I have seen some issues ( like #40100 ) related to Access Violation on Windows in pyarrow I have decided to open this issue here. Maybe for other not reproducible issues with the same crash reason it is related to conflicts with other dependencies.

We have a Python (3.12.5) Flask application which uses `Flask==3.1.0` and `Flask-SQLAlchemy==3.1.1`.

As a connection driver, we had `mysql-connector-python==9.1.0`.

On Windows 10, when `pyarrow` is installed (I have tested all versions from pyarrow 15, and Python 3.12 and 3.13, PyPi) application crashes when SQLAlchemy tries to open connection to MySQL (in our case just localhost with standard 3306 port).

Here is faulthandler traces:

image

We have changed `mysql-connector-python` to `mysqlclient` and issue disappear.

### Component(s)

Python

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.