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

tarantool / tarantool / 38964168804
88%

Build:
DEFAULT BRANCH: master
Ran 16 Oct 2026 09:12PM UTC
Jobs 1
Files 528
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

16 Oct 2026 08:42PM UTC coverage: 87.952% (+0.003%) from 87.949%
38964168804

push

github

Gerold103
core: fix zero-size realloc leaks on macOS

CSV parsers and memtx bitset indexes, expressions and iterators release
memory by calling an allocation callback with a zero size. On Darwin,
realloc(ptr, 0) returns a new allocation, which those callers discard.

The macOS malloc(3) manual documents this in its DESCRIPTION section:

> If size is zero and ptr is not NULL, a new, minimum sized object is
> allocated and the original object is freed.

Use a nonfatal realloc callback that explicitly frees the block and
returns NULL for a zero size.

For 1000 CSV loads on macOS 15.6.1 arm64 Debug,
leaks -quiet -list -atExit reports the following before the fix:

NO_WRAP
```
leaks Report Version: 3.0
Process 17575: 6076 nodes malloced for 1136 KB
Process 17575: 1000 leaks for 16000 total leaked bytes.

Leak: 0x122605a10  size=16  zone: MallocStackLoggingLiteZone_0x10130c000   malloc in csv_destroy  C  before-tarantool
```
NO_WRAP

After the fix, the same scenario reports:

```
Process 17588: 0 leaks for 0 total leaked bytes.
```

Part of #13330
Closes #1215

NO_DOC=bugfix
NO_TEST=verified with leaks

72528 of 121507 branches covered (59.69%)

9 of 9 new or added lines in 3 files covered. (100.0%)

37 existing lines in 16 files now uncovered.

108906 of 123825 relevant lines covered (87.95%)

1420508.3 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
95.22
-1.25% src/box/vy_read_iterator.c
6
88.07
-0.26% src/box/vy_run.c
4
96.99
-0.1% src/lib/msgpuck/msgpuck.h
4
93.31
-1.27% src/lib/swim/swim_io.c
2
96.45
-0.0% src/box/iproto.cc
2
89.69
0.07% src/box/xrow.c
2
93.43
-0.39% src/box/xrow_update_field.c
2
94.3
-0.11% src/lib/core/fiber.c
2
72.17
-1.74% src/lib/core/opt_def.c
1
96.56
-0.28% src/box/lua/init.c
1
96.35
-0.17% src/box/relay.cc
1
95.22
-0.1% src/box/replication.cc
1
92.71
0.0% src/box/vinyl.c
1
85.99
0.09% src/box/xlog.c
1
92.07
-0.11% src/lib/swim/swim.c
1
98.23
-0.88% src/lib/vclock/vclock.c
Jobs
ID Job ID Ran Files Coverage
1 38964168804.1 16 Oct 2026 09:12PM UTC 528
87.95
GitHub Action Run
Source Files on build 38964168804
  • Tree
  • List 528
  • Changed 29
  • Source Changed 0
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • c0f67dbf on github
  • Prev Build on master (#38963969917)
  • Next Build on master (#39038978260)
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