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

tarantool / tarantool / 23300314891

19 Mar 2026 02:38PM UTC coverage: 87.675% (-0.01%) from 87.687%
23300314891

push

github

locker
box: free cord_buf_global at thread exit

When an application thread exits, memory allocated for cord_buf_global
isn't freed, which triggers an ASAN memory leak report:

```
Direct leak of 168 byte(s) in 1 object(s) allocated from:
    #0 0x5b410ffb86d3 in malloc (src/tarantool+0xba76d3)
    #1 0x5b4110dcb951 in cord_buf_new src/lib/core/cord_buf.c:95:25
    #2 0x5b4110dcb824 in cord_buf_take src/lib/core/cord_buf.c:134:9
    #3 0x5b4110dcb75c in cord_ibuf_take src/lib/core/cord_buf.c:151:10
    #4 0x5b4110b67f59 in luaT_tuple_new src/box/lua/tuple.c:283:22
    #5 0x5b4110b6d723 in lbox_tuple_new src/box/lua/tuple.c:311:24
    #6 0x5b4110ec73c6 in lj_BC_FUNCC third_party/luajit/src/lj_vm.S:811
```

Fix this and add a test.

Follow-up commit 95ff5defea66 ("lua: export buffer to application
threads").

NO_DOC=bug fix
NO_CHANGELOG=unreleased

70541 of 118701 branches covered (59.43%)

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

304 existing lines in 16 files now uncovered.

106068 of 120978 relevant lines covered (87.68%)

1364290.92 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

93.48
/src/lua/utils.c


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc