Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
P parabix-devel
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cameron
  • parabix-devel
  • Merge requests
  • !90

Closed
Created Sep 20, 2026 by cameron@cameronMaintainer
  • Report abuse
Report abuse

Fix JIT memory manager alignment bug causing multi-thread heap corruption

  • Overview 0
  • Commits 70
  • Changes 151

CPUDriverJITMemoryManager::allocate() aligned each exec/data region's base offset to the alignment of only the first block encountered, while the per-block size accumulation padded relative offsets using each block's own (possibly larger) alignment. When a later block required a stricter alignment than the first, the reserved totalSize under-counted the real placement needs, letting the last block(s) of a region spill past the reserved slab range into memory concurrently claimed by another JIT-compiling thread.

This produced widespread heap corruption under the default 4-thread JIT compilation, manifesting as misaligned-pointer assertions and garbled/duplicated/truncated icgrep output (59 of 296 greptest cases failing). Tracking the maximum block alignment per region and using that to align the base offset fixes the mismatch (down to 6 failures, caused by a separate, still-open race).

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: ORC-JIT-followup