Skip to content

Resolve runtime stack trace lines#435

Merged
heartwilltell merged 7 commits into
mainfrom
codex/runtime-stacktrace
Apr 26, 2026
Merged

Resolve runtime stack trace lines#435
heartwilltell merged 7 commits into
mainfrom
codex/runtime-stacktrace

Conversation

@heartwilltell

Copy link
Copy Markdown
Contributor

Summary

  • Adds source-line symbolication on top of the existing libunwind stack walk.
  • Uses atos on macOS and addr2line on Linux to populate run_stack_entry_t.file and line when debug info is available.
  • Builds runtime C code with debug line tables and generates a dSYM before macOS runtime tests so line resolution works in the test binary.
  • Tightens runtime/debug API tests to require nonzero line numbers for resolved frames.

Fixes #409

Validation

  • zig fmt build.zig
  • clang-format -i src/runtime/run_stacktrace.c src/runtime/run_stacktrace.h src/runtime/tests/test_runtime_api.c src/runtime/tests/test_debug_api.c
  • zig build
  • zig build test (passes; command prints the expected negative missing() diagnostic from the test fixture)
  • zig build test-runtime

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 25, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
runlang 13fa610 Commit Preview URL

Branch Preview URL
Apr 26 2026, 08:02 PM

@heartwilltell heartwilltell self-assigned this Apr 26, 2026
@heartwilltell heartwilltell marked this pull request as ready for review April 26, 2026 20:01
@heartwilltell heartwilltell merged commit 3fb74f4 into main Apr 26, 2026
14 checks passed
@heartwilltell heartwilltell deleted the codex/runtime-stacktrace branch April 26, 2026 21:11
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.

Implement stack traces with DWARF unwinding

1 participant