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

tarantool / luajit / 8554012565
70%
tarantool/master: 93%

Build:
Build:
LAST BUILD BRANCH: skaplun/luajit-performance-tests
DEFAULT BRANCH: tarantool/master
Ran 04 Apr 2024 11:42AM UTC
Jobs 1
Files 89
Run time 267min
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 Apr 2024 11:30AM UTC coverage: 92.528% (-0.06%) from 92.583%
8554012565

push

github

Buristan
Handle stack reallocation in debug.setmetatable() and lua_setmetatable().

Thanks to Sergey Kaplun.

(cherry picked from commit 88ed9fdbb)

When we use the aforementioned functions to set a metatable for types
with one shared metatable, we must flush all traces since they are
specialized to base metatables. If we have enabled vmevent handlers,
they invoke a callback on trace flushing. This callback may reallocate
the Lua stack. Thus invalidates the reference to the `TValue *` object
`o` by the given index in the `lua_setmetatable()` and leads to a
heap-use-after-free error.

This patch fixes the behaviour by recalculating the address by the given
index after possible stack reallocation.

Sergey Kaplun:
* added the description and the test for the problem

Part of tarantool/tarantool#9595

Reviewed-by: Maxim Kokryashkin <m.kokryashkin@tarantool.org>
Reviewed-by: Sergey Bronnikov <sergeyb@tarantool.org>
Signed-off-by: Sergey Kaplun <skaplun@tarantool.org>
(cherry picked from commit e996ad3d7)

5638 of 5999 branches covered (93.98%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

17 existing lines in 5 files now uncovered.

21495 of 23325 relevant lines covered (92.15%)

865441.68 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
92.11
-2.63% src/lj_vmmath.c
2
96.15
-0.16% src/lj_record.c
2
91.96
-0.45% src/luajit.c
2
87.1
-0.17% src/lj_crecord.c
10
77.43
-0.99% src/lj_api.c
Jobs
ID Job ID Ran Files Coverage
1 8554012565.1 04 Apr 2024 11:42AM UTC 89
92.53
GitHub Action Run
Source Files on build 8554012565
  • Tree
  • List 89
  • Changed 87
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #8554012565
  • 2e429787 on github
  • Prev Build on tarantool/release/2.11 (#8550711818)
  • Next Build on tarantool/release/2.11 (#8554012642)
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