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

tarantool / luajit / 6406140978
89%
tarantool/master: 93%

Build:
Build:
LAST BUILD BRANCH: skaplun/lj-1026-arm64-invalid-hrefk-offset-check
DEFAULT BRANCH: tarantool/master
Ran 04 Oct 2023 12:45PM CUT
Jobs 1
Files 89
Run time 5s
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 Oct 2023 12:42PM CUT coverage: 88.226% (+0.09%) from 88.14%
6406140978

push

github

fckxorg
Fix snapshot PC when linking to BC_JLOOP that was a BC_RET*.

Reported by Arseny Vakhrushev.
Fix contributed by Peter Cawley.

(cherry-picked from commit 5c46f4773)

As specified in the comment in `lj_record_stop`, all loops must
set `J->pc` to the next instruction. However, the chunk of logic
in `lj_trace_exit` expects it to be set to `BC_JLOOP` itself if
it used to be a `BC_RET`. This wrong pc results in the execution
of random data that goes after `BC_JLOOP` in the case of
restoration from the snapshot.

This patch fixes that behavior by adapting the loop recording
logic to this specific case.

NOTICE: This patch is only a part of the original commit,
and the other part is backported in the previous commit. The
patch was split into two, so the test case becomes easier to
implement since it can now depend on this assertion instead
of memory layout.

Maxim Kokryashkin:
* added the description and the test for the problem

Part of tarantool/tarantool#9145

5339 of 5973 branches covered (0.0%)

Branch coverage included in aggregate %.

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

20482 of 23294 relevant lines covered (87.93%)

2749084.93 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
72.56
-0.17% src/lj_crecord.c
4
95.75
0.05% src/lj_record.c
6
94.74
-4.31% src/lj_str.c
9
89.14
-1.64% src/lj_ffrecord.c
Jobs
ID Job ID Ran Files Coverage
1 6406140978.1 04 Oct 2023 12:45PM CUT 89
88.23
GitHub Action Run
Source Files on build 6406140978
  • Tree
  • List 89
  • Changed 86
  • Source Changed 0
  • Coverage Changed 7
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/LineBranch HitsBranch Misses
  • ►
    88.23
    src/
  • Back to Repo
  • Github Actions Build #6406140978
  • 6f34e835 on github
  • Prev Build on fckxorg/lj-624-jloop-snapshot-pc (#6406081177)
  • Next Build on fckxorg/lj-624-jloop-snapshot-pc (#6495677574)
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

© 2025 Coveralls, Inc