Skip to content

fix(ffi): prevent Zig 0.15 stack overflow in AMQP/Diode reset by using @memcpy - #74

Merged
hyperpolymath merged 2 commits into
mainfrom
fix/zig-0.15-ffi-stack-overflow
Aug 24, 2026
Merged

hyperpolymath merged 2 commits into
mainfrom
fix/zig-0.15-ffi-stack-overflow

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Resolves #22. Zig 0.15.1 allocates massive stack temporaries when assigning global \�mpty_session\ / \�mpty_gateway\ constants to array members, triggering signal 11 in tests. Explicit @memcpy\ bypasses the stack spill.

@hyperpolymath
hyperpolymath merged commit 7358f4f into main Aug 24, 2026
6 checks passed
@hyperpolymath
hyperpolymath deleted the fix/zig-0.15-ffi-stack-overflow branch August 24, 2026 11:29
@gitar-bot

gitar-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FFI test segfaults (signal 11): proven-amqp channel_open, proven-diode create — under Zig 0.15.1

1 participant