Skip to content

Comments

[CN-exec] Better error messages#329

Merged
rbanerjee20 merged 25 commits intorems-project:mainfrom
rbanerjee20:better-error-messages
Sep 24, 2025
Merged

[CN-exec] Better error messages#329
rbanerjee20 merged 25 commits intorems-project:mainfrom
rbanerjee20:better-error-messages

Conversation

@rbanerjee20
Copy link
Contributor

@rbanerjee20 rbanerjee20 commented Aug 25, 2025

Introduces an experimental "ownership stack mode" to Fulminate, which records (and reports, in case of ownership error) the stack of source locations where ownership was taken for a given byte of memory. Invoked via --ownership-stack-mode.

This augments the value type of the ownership ghost map with a cn_source_location_stack *, which is only populated when this mode is enabled. This also adds a generic macro-based stack implementation to the Fulminate runtime library.

This feature remains experimental as there is a known issue of Fulminate no longer reporting the correct spec source location in error messages (including in this feature, for now) since the change to always preprocess input files under the hood (#111). We hope to resolve this issue imminently in a separate PR.

@rbanerjee20 rbanerjee20 marked this pull request as ready for review September 23, 2025 10:35
@rbanerjee20 rbanerjee20 merged commit 45e20d4 into rems-project:main Sep 24, 2025
11 checks passed
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.

1 participant