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

tarantool / tarantool / 41792516868
88%

Build:
DEFAULT BRANCH: master
Ran 04 Nov 2026 07:43AM UTC
Jobs 1
Files 526
Run time 1min
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

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

Coverage Regressions

Lines Coverage ∆ File
8
61.49
-5.41% src/lib/core/fio.c
4
93.31
-1.27% src/lib/swim/swim_io.c
4
88.33
-6.67% src/lua/minifio.c
2
96.57
-0.09% src/box/iproto.cc
2
92.71
0.0% src/box/vinyl.c
2
93.42
-0.4% src/box/xrow_update_field.c
2
96.3
-3.7% src/lib/core/backtrace.c
2
96.15
-3.85% src/lib/core/iostream.h
2
89.02
-0.35% src/lua/init.c
1
96.34
-0.17% src/box/relay.cc
1
95.74
-0.53% src/box/vy_range.c
1
81.6
-0.3% src/lib/core/coio.c
1
92.07
-0.11% src/lib/swim/swim.c
1
22.64
-0.02% src/lib/uri/uri_parser.c
Jobs
ID Job ID Ran Files Coverage
1 41792516868.1 04 Nov 2026 07:43AM UTC 526
88.13
GitHub Action Run
Source Files on build 41792516868
  • 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 Repo
  • 027c1776 on github
  • Prev Build on master (#41635983852)
  • Next Build on master (#42005501570)
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