Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix nil node in sym ast of exported ref objects [backport:2.2] #24527

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Dec 10, 2024

fixes #24526, follows up #23101

The shallowCopy calls do not keep the original node's children, they just make a new seq with the same length, so the Ident "*" node from the original postfix nodes was not carried over, making it nil and causing the segfault.

@Araq Araq merged commit b529f69 into nim-lang:devel Dec 10, 2024
18 checks passed
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from b529f69

Hint: mm: orc; opt: speed; options: -d:release
178030 lines; 8.596s; 653.562MiB peakmem

narimiran pushed a commit that referenced this pull request Jan 14, 2025
fixes #24526, follows up #23101

The `shallowCopy` calls do not keep the original node's children, they
just make a new seq with the same length, so the `Ident "*"` node from
the original postfix nodes was not carried over, making it `nil` and
causing the segfault.

(cherry picked from commit b529f69)
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.

Compiling with Nim v2.2.0 gives SIGSEGV for yaml loading code
2 participants