Skip to content

Debugging for LTO crashes#6

Draft
azat wants to merge 28 commits intodevfrom
ch-lto-debug
Draft

Debugging for LTO crashes#6
azat wants to merge 28 commits intodevfrom
ch-lto-debug

Conversation

@azat
Copy link
Copy Markdown
Member

@azat azat commented Apr 17, 2026

No description provided.

azat and others added 28 commits April 13, 2026 20:10
When huge arena is disabled (e.g. `oversize_threshold:0`), `arena_init_huge`
updates the global `oversize_threshold` but not `a0`'s per-arena
`pac.oversize_threshold`, which was set to `OVERSIZE_THRESHOLD_DEFAULT` (8MB)
before conf parsing. This causes allocations >= 8MB through `a0` to enter
`arena_choose_huge` where `huge_arena_ind` is still 0, hitting
`assert(!malloc_initialized())`.

Update `a0`'s threshold in the disabled path, matching what the enabled path
already does.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant