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

Initialize n_uninitialized for Symbol and SimpleVector #41496

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

tkf
Copy link
Member

@tkf tkf commented Jul 7, 2021

When I try to build julia with ASAN, I get

julia-debug: /.../src/datatype.c:353: void jl_compute_field_offsets(jl_datatype_t *): Assertion `st->name->n_uninitialized <= nfields' failed.

This assertion was tweaked in de6f62a#diff-e21748de252a5b69a0efe2c249a4c2cf4f844b9cd86503cc0c7e25fb654fc34cR353 in PR #41018. Bisection points to this commit.

Looking at the PR and how ->name->n_uninitialized is initialized for jl_datatype_type, jl_typename_type and jl_methtable_type, it seems that we'd want to to add jl_symbol_type->name->n_uninitialized = 0 and jl_simplevector_type->name->n_uninitialized = 0 as well?

@tkf tkf merged commit 6240d35 into JuliaLang:master Jul 7, 2021
@tkf tkf deleted the init-n_uninitialized branch July 7, 2021 19:24
KristofferC pushed a commit that referenced this pull request Jul 19, 2021
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.

3 participants