Skip to content

panic: Name '' not found in static scope of module __unknown__ with fuzzed code #3343

@correctmost

Description

@correctmost

Describe the Bug

Starting with commit 4402008, Pyrefly crashes when checking this fuzzed code:

@:[
ERROR Thread panicked, shutting down: panicked at pyrefly/lib/binding/bindings.rs:1681:17:
Name `` not found in static scope of module `__unknown__`.

Bisection log

4402008 - Crash starts here
020a041 - No crash
0.64.1 - No crash

Version info

The crash is still reproducible with the latest main (2cfa1c5).

Sandbox Link

https://pyrefly.org/sandbox/?project=N4IgZglgNgpgziAXKOBDAdgEwEYHsAeAdAA4CeSIAAogNogA0IZATjGFKYQC64C2UFAMQACAAqlW7UsLRY8%2BYQGNc6SAHMArs1RcIKwgB10IgMowYwgBZcuxOIgD0Dlmw6FczNQ5joHmXIpwDsqqEJrauioOwmAewqgAbqjQqNiwSirqWjp66MK4xJHocIboZFyWKgC0CTDMcLnCALzCBiAAzIQAjABMbUY0dcwecAC6RhroELzEHlwwmFWYEKyKurXNwgDkYegeMFtGe1xVrACOGisLVQDWMKRVqIqK8HCbWwDuqMzoh%2BggAF9GE91jAAGLQGAUWQ4AgkcgAoA

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions