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 C struct definition of LineInfoNode #46297

Merged
merged 1 commit into from
Aug 10, 2022
Merged

fix C struct definition of LineInfoNode #46297

merged 1 commit into from
Aug 10, 2022

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Aug 9, 2022

Fix regression introduced by #44548. Fix #45310.

Found via rr trace in https://buildkite.com/julialang/julia-master/builds/14475#01825f4d-8c0c-4f70-938c-cd1c8ee4d202, resulting in a compiler error test calling jlbacktrace, and dereferencing invalid memory, if the object happened not to be zero initialized. Otherwise, if the undefined memory was zero initialized, it would probably instead just be missing inlined frames.

Fix regression introduced by #44548. Fix #45310.
@vtjnash vtjnash added the backport 1.8 Change should be backported to release-1.8 label Aug 9, 2022
@gbaraldi
Copy link
Member

gbaraldi commented Aug 9, 2022

LGTM, I don't know of a way we could automatically do some checks for errors like these, but that might be something to keep in mind

@KristofferC
Copy link
Member

Sorry about that. :(

@vtjnash
Copy link
Member Author

vtjnash commented Aug 9, 2022

we can try to add some more assert(sizeof foo == jl_datatype_size foo && "layout consistency check fail"), but unsure if that would have really worked to catch this

@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Aug 9, 2022
@fredrikekre fredrikekre merged commit 4025b99 into master Aug 10, 2022
@fredrikekre fredrikekre deleted the jn/45310 branch August 10, 2022 09:59
@KristofferC
Copy link
Member

I don't think this commit is on 1.8.

@KristofferC KristofferC removed the backport 1.8 Change should be backported to release-1.8 label Aug 10, 2022
ffucci pushed a commit to ffucci/julia that referenced this pull request Aug 11, 2022
pcjentsch pushed a commit to pcjentsch/julia that referenced this pull request Aug 18, 2022
@giordano giordano removed the merge me PR is reviewed. Merge when all tests are passing label Aug 22, 2022
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.

InteractiveUtils crashed on CI
5 participants