Skip to content

Fix NullReferenceException when accessing f_builtins of a traced frame - #2124

Merged
slozier merged 1 commit into
IronLanguages:mainfrom
BCSharp:f_builtins
Oct 29, 2026
Merged

slozier merged 1 commit into
IronLanguages:mainfrom
BCSharp:f_builtins

Conversation

@BCSharp

@BCSharp BCSharp commented Oct 29, 2026

Copy link
Copy Markdown
Member

A frame created by the trace listener has no CodeContext, and f_builtins dereferenced it, so reading f_builtins of a traced frame failed with "SystemError: Object reference not set to an instance of an object". It now gets the builtins from the listener's language context, so a traced frame has the same builtins as one that is not traced.

@slozier
slozier merged commit 387a036 into IronLanguages:main Oct 29, 2026
35 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.

2 participants