Skip to content

Stack overflow in resolve_get_class_attr #3671

Closed

Description

@correctmost

Describe the Bug

Pyrefly crashes when checking this fuzzed code:

class C:
  def d() -> C:
    pass

  @d
  def __get__():
    pass

C.__get__()
thread '<unknown>' (1220800) has overflowed its stack
fatal runtime error: stack overflow, aborting

Version info

Reproducible with 1.1.0.dev1 and commit 9ef0830

Sandbox Link

https://pyrefly.org/sandbox/?project=N4IgZglgNgpgziAXKOBDAdgEwEYHsAeAdAA4CeSIAxlKnHAAQDCiAOuvfZjGJwBQCU9ALQA%2BJq3Yd6xWnDZsOAAUwLO3egH0NAcxgAXLQIlTps%2BekaEtugxoFsQAGhBkATtyilCe3AFsoFADE9AAKpO5gnvRoWHj49JS46JDaAK6uqHoQSYRswQDKMDD0ABZ6esRwiAD01W4eXriu2tUw6NWYuJRw1YnJEGkZWUnV9GBN9KgAbqjQqNiwCUkp6ZnZ7LjEw%2BhwuehkeiVJQlMwrnDr9AC89CwgAMyEAIwATHdsANpnrk1wALpsVLoCC%2BYhNPQwTBCTAQdyULKna70ADkA3QTRgyLY6L0QncAEdUrDIUIANYwUhCVCUSjwBg3ZEAd1QrnQWPQIAAvs5qQiYAAxaAwCgxHAEEjkTlAA

(Only applicable for extension issues) IDE Information

No response

Activity

  1. added
    help wantedLarger than "good first issue", but still well-defined and ready for someone to pick up
    on Jun 3, 2026
  2. mikeleppane commented on Jun 5, 2026

    @mikeleppane
    Contributor

    I can take this.

  3. added a commit that references this issue on Jun 8, 2026
    e41aeea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

crashhelp wantedLarger than "good first issue", but still well-defined and ready for someone to pick up

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions