Skip to content

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 requested a review from vtjnash July 7, 2021 05:09
@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