#3759·Pumpkin

Recursive /function calls crash the server with a stack overflow

Author: Evansch0Created Sep 27, 2026Updated Sep 27, 2026
LabelsbugJava Editionpaniccommand

Before Submitting

  • I have searched existing issues and confirmed this is not a duplicate.

Minecraft Edition

Java Edition

Server Version / Commit

0.2.0+26.3-26.51 (fc780ec/release)

Operating System

CachyOS Linux x86_64

Bug Description & Expected Behavior

A recursive datapack function aborts the entire server with a stack overflow. Pumpkin should limit the command chain and report an error instead of crashing.

Steps to Reproduce

  1. Create data/repro/function/loop.mcfunction containing function repro:loop.
  2. Enable the datapack.
  3. Run function repro:loop.

Pumpkin exits with code 134:

thread 'tokio-rt-worker' has overflowed its stack
fatal runtime error: stack overflow, aborting