Skip to content

[Bug]: Native allocator abort during COUNT DISTINCT state qualification #31732

Open

Description

@VioletQwQ-0

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

Historical qualification baseline and R5 candidate; not yet attributed to a current release branch.

Commit ID

  • Historical B 68e642fdc533e96ed8f83ac44659119ad8be97af.
  • Historical R5 a87d2290ba566f77298d15e5955d25a01aaf3d4b.
  • Current performance PR head 8d74e63cfd61ef64fd3f8eb096df5af5d358e347 is a later port; do not treat the historical outcome as an exact-head failure.

Other Environment Information

  • Linux/amd64; historical Go 1.27.1, CGo/native enabled. The preserved identity records include the native library digests.
  • Original qualification used 2 CPUs, 4 GiB memory and zero swap for the test scope; no OOM was recorded for the bounded separation run.
  • The historical failing process's actual libc mapping, allocator-symbol provider, and C/C++ compiler/linker identity were not captured. A later rootfs hash/version observation does not establish them retrospectively.

Actual Behavior

Two distinct observations are retained, without asserting a shared cause:

  1. In the historical R5 fixed-width TestCountDistinctUnmarshalAcrossAccountedArenaGrowth subcase, a native allocator abort occurred during source fill/preflight near offset 4096. The matching B isolated subcase passed once. R5 ordinary test binary SHA256 94e3c58378b93352699b7e3e185039919707600d9e3a7cbadce76b1ece57c20f; B ordinary binary SHA256 1e248d0cf5f6e5c7cb48983a5b3614facdfa46cf57c2c60f281c8703d8b0b42c. The first invalid write or lifetime violation was not identified.
  2. A later B-only four-condition separation used one newly built binary SHA256 c9ba2a86f6a78978cac2d6e566c2abadd9d28c0878c5a31899f8749856980c66. Source serialization control and target-only restore each passed once; source plus target-sized buffer allocation/release without node insertion aborted once while freeing source groupHead; source plus full target restore passed once. The last free is a detection point, not a proven duplicate free or corruption origin.

Expected Behavior

COUNT DISTINCT state construction, serialization, restore, deduplication and cleanup should preserve the selected keys and complete without a native allocator abort or invalid ownership transition.

Steps to Reproduce

Recorded procedure (no rerun requested): the fixed-width subcase TestCountDistinctUnmarshalAcrossAccountedArenaGrowth/fixed-width was run once per historical version using the bound ordinary test binaries and Go/CGo/native environment. The later B allocation-only observation used a different binary; its buffer request schedule is a model, not a captured libc heap layout.

This is the recorded experiment, not a promise of deterministic reproduction. Do not repeat until it passes. The complete original local receipts and logs exist but have not been published with this draft; they should be shared through an approved artifact channel if maintainers need them.

Additional information

  • Fixture for the later separation: 160032 bytes; SHA256 ea3091c1cdb4655d1c90e587d7980f01318f4d7b1d9618368dee52149d1149b3, byte-matched to the source serializer in that run.
  • No evidence currently establishes the first invalid access, duplicate ownership, source corruption before model allocations, or a single cause for the two observations.
  • Possible avenues to falsify: earlier source write/lifetime violation; allocator/ownership mismatch; a concrete workload/environment trigger; a demonstrated R5 influence. Source identity or a failing B control alone does not exonerate R5.
  • Exact-head CI on the later PR includes successful aggregate package coverage and -race -short runs. Per-root events were not retained in the accessible artifact; these results do not resolve the historical abort.
  • The memory-forensics path is BLOCKED_OBSERVABILITY; do not rename or replay previously restricted diagnostics. Existing failures must remain visible.

Related performance PR: #31419. Per the requester's delivery decision this issue is tracked separately and is not an additional prerequisite for that PR; the root cause and any relationship to R5 remain unresolved. Normal review may still raise a concrete candidate-related defect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions