redis-py icon indicating copy to clipboard operation
redis-py copied to clipboard

`redis.cluster.RedisCluster` with RESP3 and hiredis causes segmentation fault

Open jakob-keller opened this issue 1 year ago • 4 comments

Version: redis-py 5.0.1 / Redis 7.1 (AWS ElastiCache)

Platform: CPython 3.11.7 on macOS Sonoma 14.2 (M2 Pro)

Description: redis.cluster.RedisCluster instances with protocol=3 (i.e. RESP3 enabled) crash the Python interpreter when performing commands and the hiredis extra dependency is installed in the local environment.

Example to reproduce:

url = "rediss://hostname:6379/0?protocol=3"
client = redis.cluster.RedisCluster.from_url(url)
client.get("test")

Process finished with exit code 139 (interrupted by signal 11:SIGSEGV)

jakob-keller avatar Dec 13 '23 13:12 jakob-keller