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

tarantool / tarantool / 40701480373
88%

Build:
DEFAULT BRANCH: master
Ran 28 Oct 2026 02: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

28 Oct 2026 01:58PM UTC coverage: 88.028% (+0.007%) from 88.021%
40701480373

push

github

locker
box: properly shutdown fibers running in application threads at exit

Application threads don't start the main fiber. Instead, they run the
event loop directly. As a result, we can't use the fiber shutdown
mechanism implemented for the main thread because it relies on the
event loop being available at exit. To avoid crashes at exit, we have
ugly hacks, see commit da7d43b75a6b2 ("box: destroy fiber pool before
returning from application thread") and commit 1e83842707c70 ("box: wake
up all active fibers at application thread exit"), but they aren't
enough: if there's an active net.box connection in an application
thread, we hit the assertion failure when we collect Lua objects at
exit:

```
tarantool: ./src/box/lua/net_box.c:571: netbox_transport_destroy: Assertion `transport->worker == NULL' failed.
```

This happens because the net.box worker fiber isn't stopped properly
when the application thread exits.

Come to think of it, avoiding starting the main fiber in application
threads seems pointless: it's cheap and doesn't have any side effects.
Let's start the main fiber with cord_costart() and use the existing
fiber shutdown mechanism in application threads to fix the assertion
failure and remove the aforementioned hacks.

Closes #12789

NO_DOC=bug fix
NO_CHANGELOG=relevant to debug builds only

72813 of 121809 branches covered (59.78%)

10 of 12 new or added lines in 1 file covered. (83.33%)

32 existing lines in 13 files now uncovered.

109375 of 124250 relevant lines covered (88.03%)

1451364.43 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
93.02
-2.21% src/box/app_threads.c

Coverage Regressions

Lines Coverage ∆ File
16
90.71
-0.49% src/box/box.cc
3
96.99
-0.2% src/lib/msgpuck/msgpuck.h
2
93.79
-0.41% src/box/xrow_update_field.c
2
94.31
0.11% src/lib/core/fiber.c
1
93.02
-2.21% src/box/app_threads.c
1
92.8
0.18% src/box/vinyl.c
1
88.21
0.07% src/box/vy_run.c
1
85.94
-0.04% src/box/xlog.c
1
89.82
0.03% src/box/xrow.c
1
80.0
-2.5% src/lib/core/clock.c
1
96.55
-1.15% src/lib/core/histogram.c
1
97.09
-0.05% src/lib/salad/bps_tree.h
1
79.44
-0.25% src/main.cc
Jobs
ID Job ID Ran Files Coverage
1 40701480373.1 28 Oct 2026 02:12PM UTC 528
88.03
GitHub Action Run
Source Files on build 40701480373
  • Tree
  • List 528
  • Changed 32
  • Source Changed 0
  • Coverage Changed 32
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • a1699147 on github
  • Prev Build on master (#40578381750)
  • Next Build on master (#40739747151)
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