Fix account page SIGSEGV: el_img extern arity mismatch #144

Merged
will.anderson merged 1 commits from fix/magic-link-flow into dev 2026-05-13 17:20:10 +00:00
Owner

Root cause

account.el declared el_img as a 1-arg extern (attrs: String). Every other file and the runtime C implementation use 3 args (src, alt, attrs). When the compiled binary tried to call the 1-arg variant, it passed garbage on the stack → signal 11 (SIGSEGV) on the first HTTP request. The TCP startup probe passed because the server bound to 8080 fine; the crash only hit on request processing.

Fix

  • Corrected extern declaration to el_img(src: String, alt: String, attrs: String)
  • Updated the one call site in account_nav() to 3-arg form

Test

Stage: /account should load (previously 503 on every hit)

## Root cause account.el declared `el_img` as a 1-arg extern (`attrs: String`). Every other file and the runtime C implementation use 3 args (`src, alt, attrs`). When the compiled binary tried to call the 1-arg variant, it passed garbage on the stack → signal 11 (SIGSEGV) on the first HTTP request. The TCP startup probe passed because the server bound to 8080 fine; the crash only hit on request processing. ## Fix - Corrected extern declaration to `el_img(src: String, alt: String, attrs: String)` - Updated the one call site in `account_nav()` to 3-arg form ## Test Stage: /account should load (previously 503 on every hit)
will.anderson added 1 commit 2026-05-13 17:19:59 +00:00
Fix account page SIGSEGV: el_img extern signature mismatch
Dev — Build & local smoke test / build-smoke (pull_request) Successful in 1m46s
4ca793ee2c
account.el declared el_img with 1 arg (attrs only) while the runtime
implementation and all other files use 3 args (src, alt, attrs).
The arity mismatch caused the server to crash with signal 11 on every
request — TCP probe passed (bind was fine) but first HTTP hit segfaulted.
will.anderson merged commit d7bb92c37f into dev 2026-05-13 17:20:10 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: neuron-technologies/neuron-web#144