• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 41792516868 / 1
88%
master: 88%

Build:
DEFAULT BRANCH: master
Ran 04 Nov 2026 07:43AM UTC
Files 526
Run time 12s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Nov 2026 07:28AM UTC coverage: 88.132% (+0.007%) from 88.125%
41792516868.1

push

github

Totktonada
test: fix malloc info test on aarch64 on glibc 2.43

The `test_malloc_small` test case allocates and frees memory with a
check after each step. The check, in particular, verifies that the
overall memory held by the allocator is within a limit: it is the memory
currently in use plus 10.5MiB (110% of the maximum amount of memory the
test case allocates). See the comment in `check_malloc_info` about it.

The invariant doesn't hold for glibc 2.43 on aarch64. We met it in the
release/2.11 CI, on Ubuntu Resolute (26.04) arm64 runners. It manifests
itself as flaky test failures.

There are two reasons why it happens.

First, the per-thread cache: because of it, malloc keeps about 9.5MiB
after `test_malloc_small`.

Second, the glibc 2.43 addition: transparent huge pages (THP) is enabled
on aarch64[1], so malloc holds up to 2MiB per arena (even if THP is
disabled in the system[2]).

These two push the test over the `check_malloc_info` limit. The test
doesn't always fail, partly because the heap's start address is random
and glibc ends the heap at a huge page boundary (that's just a guess).

The fix is to disable the per-thread cache for the test case. We can do
it only at process start, so the test case now starts a separate process
for the measurements.

[1]: https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=NEWS;hb=refs/tags/glibc-2.43
[2]: https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;hb=refs/tags/glibc-2.43#l1912

Drafted by an LLM, conducted and corrected by the commit author.

NO_DOC=test
NO_CHANGELOG=test

72874 of 121732 branches covered (59.86%)

109518 of 124266 relevant lines covered (88.13%)

1452103.05 hits per line

Source Files on job 41792516868.1
  • Tree
  • List 526
  • Changed 27
  • Source Changed 0
  • Coverage Changed 27
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 41792516868
  • 027c1776 on github
  • Prev Job for on master (#41635983852.1)
  • Next Job for on master (#42005501570.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc