Skip to content

uv-resolver stack overflow #19672

@akx

Description

@akx

Summary

The resolution is impossible (boto3<1.36 can't work with botocore>=1.43.14), but this probably shouldn't crash.
I suspect this has to do with boto3 and botocore both having a ton of versions.

~/b/uvbug $ uv self version
uv 0.11.18 (e32666915 2026-06-01 aarch64-apple-darwin)
~/b/uvbug $ uname -orsm
Darwin 24.6.0 arm64
~/b/uvbug $ cat constraints.txt
botocore>=1.43.14
~/b/uvbug $ cat requirements.in
boto3<1.36
~/b/uvbug $ uv pip compile requirements.in -c constraints.txt
⠴ boto3==0.0.1
thread 'uv-resolver' (54765019) has overflowed its stack
fatal runtime error: stack overflow, aborting
fish: Job 1, 'uv pip compile requirements.in …' terminated by signal SIGABRT (Abort)

The same can be reproduced on the same system by attempting to uv lock on

[project]
name = "uvbug"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.14"
dependencies = ["boto3<1.36"]

[tool.uv]
constraint-dependencies = ["botocore>=1.43.14"]

Platform

Darwin 24.6.0 arm64

Version

uv 0.11.18 (e326669 2026-06-01 aarch64-apple-darwin)

Python version

Python 3.14.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions