GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug]: NullPointerException with top-level `async for` · Issue #1287 · oracle/graalpython

[Bug]: NullPointerException with top-level async for #1287

New issue
Copy link
New issue
Copy link
Open
Open
[Bug]: NullPointerException with top-level async for#1287
Copy link
Labels
bugSomething isn't workingSomething isn't working

Description

@correctmost
correctmost
opened on Nov 4, 2026
Issue body actions

Describe the bug

GraalPy crashes when running this fuzzed code:

async for i in range(1):
    pass

Operating system

Linux

CPU architecture

x86_64

GraalPy version

GraalPy 3.13.14 (Oracle GraalVM Native 25.5.5.0.3)

JDK version

No response

Context configuration

No response

Steps to reproduce

Snippet listed above

Expected behavior

No crash

Stack trace

java.lang.NullPointerException: Stack trace is imprecise, the top frames are missing and/or have wrong line numbers. To get precise stack traces, build the image with option -H:-ReduceImplicitExceptionStackTraceInformation
	at org.graalvm.py/com.oracle.graal.python.compiler.ParserCallbacksImpl.raiseSyntaxError(ParserCallbacksImpl.java:126)
	at org.graalvm.py/com.oracle.graal.python.compiler.ParserCallbacksImpl.raiseSyntaxError(ParserCallbacksImpl.java:122)
	at org.graalvm.py/com.oracle.graal.python.compiler.ParserCallbacksImpl.onError(ParserCallbacksImpl.java:118)
	at org.graalvm.py/com.oracle.graal.python.compiler.bytecode_dsl.RootNodeCompiler$StatementCompiler.visit(RootNodeCompiler.java:4095)
	at org.graalvm.py/com.oracle.graal.python.compiler.bytecode_dsl.RootNodeCompiler$StatementCompiler.visit(RootNodeCompiler.java:2033)
	at org.graalvm.py/com.oracle.graal.python.pegparser.sst.StmtTy$AsyncFor.accept(StmtTy.java:307)
	at org.graalvm.py/com.oracle.graal.python.compiler.bytecode_dsl.RootNodeCompiler.visitModuleBody(RootNodeCompiler.java:1092)
	at org.graalvm.py/com.oracle.graal.python.compiler.bytecode_dsl.RootNodeCompiler.lambda$visit$0(RootNodeCompiler.java:1009)
	at org.graalvm.py/com.oracle.graal.python.nodes.bytecode_dsl.PBytecodeDSLRootNodeGen$Bytecode.create(PBytecodeDSLRootNodeGen.java:5219)
	at org.graalvm.py/com.oracle.graal.python.nodes.bytecode_dsl.PBytecodeDSLRootNodeGen.create(PBytecodeDSLRootNodeGen.java:3972)
	at org.graalvm.py/com.oracle.graal.python.compiler.bytecode_dsl.RootNodeCompiler.compileRootNode(RootNodeCompiler.java:533)
	at org.graalvm.py/com.oracle.graal.python.compiler.bytecode_dsl.RootNodeCompiler.visit(RootNodeCompiler.java:1007)
	at org.graalvm.py/com.oracle.graal.python.compiler.bytecode_dsl.RootNodeCompiler.visit(RootNodeCompiler.java:189)
	at org.graalvm.py/com.oracle.graal.python.pegparser.sst.ModTy$Module.accept(ModTy.java:68)
	at org.graalvm.py/com.oracle.graal.python.compiler.bytecode_dsl.RootNodeCompiler.compile(RootNodeCompiler.java:758)
	at org.graalvm.py/com.oracle.graal.python.compiler.bytecode_dsl.BytecodeDSLCompiler.compile(BytecodeDSLCompiler.java:90)
	at org.graalvm.py/com.oracle.graal.python.PythonLanguage.compileForBytecodeDSLInterpreter(PythonLanguage.java:675)
	at org.graalvm.py/com.oracle.graal.python.PythonLanguage.compileModule(PythonLanguage.java:647)
	at org.graalvm.py/com.oracle.graal.python.PythonLanguage.parse(PythonLanguage.java:615)
	at org.graalvm.py/com.oracle.graal.python.PythonLanguage.parse(PythonLanguage.java:602)
	at org.graalvm.py/com.oracle.graal.python.PythonLanguage.parse(PythonLanguage.java:588)
[...snip...]

Additional context

No response

Activity

  1. correctmost
    added
    bugSomething isn't workingSomething isn't working
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.