Repository navigation
Description
Is there an existing issue for the same bug?
- I searched open and recently closed MatrixOne issues for the exact test and normalized failure class. Existing OOM coverage issues concern different packages or runner-level kills; none covers this deterministic mpool test with
fatal error: runtime: cannot allocate memoryunder its process-local address-space limit.
Source PR and exact head
- PR: fix: correct information schema views metadata #27716
- Head:
40d21169e8c2883913fd3983472573b1248df792 - The PR diff does not touch
pkg/common/mpool,pkg/common/mpool/realloc_failure_linux_test.go,.ci-workflow, or the coverage harness.
Failed check
- Check: Matrixone UT Coverage / UT Coverage on Ubuntu/x86
- Run: https://github.com/matrixorigin/matrixone/actions/runs/34242721121
- Job: https://github.com/matrixorigin/matrixone/actions/runs/34242721121/job/102116860385
- Attempt: 1
Observed failure
The coverage runner reported zero build failures but two failed events for github.com/matrixorigin/matrixone/pkg/common/mpool / TestReallocPhysicalFailureRestoresOwnership. The stable signature was:
--- FAIL: TestReallocPhysicalFailureRestoresOwnership
fatal error: runtime: cannot allocate memory
...
pkg/common/mpool.(*MPool).ReallocZero
pkg/common/mpool.TestReallocPhysicalFailureRestoresOwnership
The failure occurred while the test was exercising ReallocZero after setting a process-local RLIMIT_AS limit to the current address-space pages plus 64 MiB. The stack reaches MPoolStats.RecordAlloc from ReallocZero before the test can complete its expected allocation-failure assertions. The runner diagnostics immediately afterward reported 15 GiB total memory and 13 GiB available, with no cgroup memory files available; this is a process address-space/coverage interaction, not a host-wide OOM report.
Independent evidence
- Unrelated PR fix(mpool): retire realloc address state before physical reuse #28384 introduced this mpool failure-path test and its same-day Linux/x86 UT Coverage job passed: https://github.com/matrixorigin/matrixone/actions/runs/34200209634/job/101977108458
- The current PR changes only information_schema view metadata, parser/planner protocol fencing, and related tests/BVTs; it has no dependency closure into the failing mpool test or coverage harness.
- The full failure log shows setup, cache seeding, coverage execution, failure summarization, diagnostics, and artifact uploads completing; the only product test failure is the named mpool test.
Reproduction
- Run the MatrixOne UT Coverage workflow on Linux/x86 with Go 1.26.4 and the
matrixone_testtag. - Include
pkg/common/mpoolin the coverage package set. - Observe
TestReallocPhysicalFailureRestoresOwnershipunder coverage; the test setsRLIMIT_ASand callsReallocZerowith a 1 GiB target, then may abort with the signature above instead of returning the expected allocator error.
Expected behavior
The deterministic physical-allocation-failure test should complete under the repository UT Coverage mode and assert the restored ownership/accounting state without a runtime fatal allocation error.
The failed jobs for run 34242721121 will be rerun once after this issue is recorded.
Activity
fix(mpool): avoid coverage crash in realloc failure test (#28467)
iamlinjunhong commentedon Sep 12, 2026
Recurrence evidence for PR #27716
Source PR: #27716
Issue context: #27655
The failed workflow ran against the remote PR head
fa1a80fa6c9135ac25e268af3ac5a9b63e6a12f0(attempt 1). The repair lane rebased the unchanged PR content onto officialup/mainatba2b02d2153f7ddf48bf58db9fef129731e11562; the local candidate is866c304618501e42d045e3307071e3cb9cc3e16b.Failed checks from run https://github.com/matrixorigin/matrixone/actions/runs/34690395184:
The UT coverage artifact has no build failures. The product failure is the same deterministic case covered by this issue:
The child test intentionally sets a process-local
RLIMIT_ASto its current address-space pages plus 64 MiB, then callsMPool.ReallocZerowith the 512 MiB physical-failure target. The failure occurs inside the child runtime instead of returning the expectedphysical allocator rejectederror. The runner diagnostics reported about 13 GiB available host memory and no swap, so this is not a host-wide OOM. Coverage merge and CI Required then fail as downstream consequences of the UT producer failure.Independence evidence:
up/maincontains the byte-identicalpkg/common/mpool/realloc_failure_linux_test.go, including the process-local limit and the 512 MiB target, and contains the mergedfede78e3b9coverage-crash adjustment.pkg/common/mpool, this test, or the coverage harness.pkg/sql/compile,pkg/sql/plan,pkg/sql/plan/function, parser, sysview, and v4.0.6 upgrade tests, plus two fresh public SQL rounds.Reproduction: run the UT Coverage workflow on Linux/x86 with the repository coverage mode and include
pkg/common/mpool; the named test applies its process-localRLIMIT_ASand can terminate with the signature above before its ownership-restoration assertions complete.The failed jobs for run 34690395184 will be rerun once after this evidence is recorded.
fix(mpool): avoid coverage crash in realloc failure test (matrixorigi…
fix(mpool): avoid coverage crash in realloc failure test (matrixorigi…
fix(mpool): avoid coverage crash in realloc failure test (matrixorigi…