Tarantool development patches archive
 help / color / mirror / Atom feed
From: Sergey Kaplun via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: mandesero@gmail.com, tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH v3 luajit 1/2] cmake: run tests with Valgrind
Date: Thu, 14 Nov 2024 18:54:25 +0300	[thread overview]
Message-ID: <ZzYdMb0v4UcpFCUe@root> (raw)
In-Reply-To: <ZzYDhbTDBwcXya9R@root>

On 14.11.24, Sergey Kaplun via Tarantool-patches wrote:
> Hi, Maksim!
> Thanks for the patch!
> Please consider my comments below.
> 
> On 11.11.24, mandesero@gmail.com wrote:

<snipped>

> >   - test/tarantool-tests/lj-512-profiler-hook-finalizers.test.lua
> >   - test/tarantool-tests/lj-726-profile-flush-close.test.lua
> >   - test/tarantool-tests/misclib-sysprof-lapi.test.lua

I also get the following error locally:

| test/tarantool-tests/profilers/gh-5688-tool-cli-flag.test.lua (SIGPROF)

So, it looks like all sysprof's tests should be disabled.

> > 
> > Timed out due to running under Valgrind:
> >   - test/tarantool-tests/gh-7745-oom-on-trace.test.lua
> >   - test/tarantool-tests/lj-1034-tabov-error-frame.test.lua
> > 

Also, I've found that tests from LuaJIT-tests suite reports tons of the
assertions, but still the suite passes. This should be fixed:

I suppose that we need to set `--error-exitcode` option as well.

The option `--exit-on-first-error` may be also considered.

| ctest --verbose -L LuaJIT-tests
| ...
| 2: ==20374== Command: /home/burii/reviews/luajit/valgrind-ci/src/luajit -e dofile[[/home/burii/reviews/luajit/valgrind-ci/test/luajit-test-init.lua]] /home/burii/reviews/luajit/valgrind-ci/test/LuaJIT-tests/test.lua +slow +ffi +bit +jit
| 2: ==20374==
| 2: ==20374== Invalid read of size 4
| 2: ==20374==    at 0x137059: lj_getu32 (lj_def.h:244)

Same for PUC-Rio-Lua-5.1-tests, lua-Harness-test.
Also, I see these warnings for tarantool-tests suite as well, see
| ctest --verbose -R test/tarantool-tests/fix-jit-dump-ir-conv.test.lua
for example:
| 82: ==25641== Conditional jump or move depends on uninitialised value(s)
| 82: ==25641==    at 0x1BCD8F: lj_BC_ADDVN (/home/burii/reviews/luajit/valgrind-ci/src/lj_vm.S:252)
| 82: ==25641==    by 0x1445F3: lj_vmevent_call (lj_vmevent.c:46)
| 82: ==25641==    by 0x186EB5: trace_stop (lj_trace.c:555)
| 82: ==25641==    by 0x184422: trace_state (lj_trace.c:726)
| 82: ==25641==    by 0x1BE97D: lj_vm_cpcall (/home/burii/reviews/luajit/valgrind-ci/src/lj_vm.S:1266)
| 82: ==25641==    by 0x183CA1: lj_trace_ins (lj_trace.c:757)
| 82: ==25641==    by 0x1263C4: lj_dispatch_ins (lj_dispatch.c:430)
| 82: ==25641==    by 0x1C0D69: lj_vm_inshook (/home/burii/reviews/luajit/valgrind-ci/src/lj_vm.S:2649)
| 82: ==25641==    by 0x11FCCA: lua_pcall (lj_api.c:1173)
| 82: ==25641==    by 0x112A84: docall (luajit.c:133)
| 82: ==25641==    by 0x112620: handle_script (luajit.c:304)
| 82: ==25641==    by 0x111B9C: pmain (luajit.c:604)

Also, I confused with the Command content,
It looks like the valgrind with its options is missed.

Also, it would be nice to run all tarantool-c-tests under valgrind.

Also, what do you think about enabling option `--track-fds` for the CI
(maybe in the separate patch set).

-- 
Best regards,
Sergey Kaplun

  reply	other threads:[~2024-11-14 15:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-18  8:50 [Tarantool-patches] [PATCH v3 luajit 0/2] Enable running tests with Valgrind, add CI Valgrind testing workflow mandesero--- via Tarantool-patches
2024-09-18  8:50 ` [Tarantool-patches] [PATCH v3 luajit 1/2] cmake: run tests with Valgrind mandesero--- via Tarantool-patches
2024-11-01 14:05   ` Sergey Bronnikov via Tarantool-patches
2024-11-11 11:03     ` mandesero--- via Tarantool-patches
2024-11-14 14:04       ` Sergey Kaplun via Tarantool-patches
2024-11-14 15:54         ` Sergey Kaplun via Tarantool-patches [this message]
2024-11-29 15:35           ` mandesero--- via Tarantool-patches
2024-09-18  8:50 ` [Tarantool-patches] [PATCH v3 luajit 2/2] ci: add Valgrind testing workflow mandesero--- via Tarantool-patches
2024-11-01 14:17   ` Sergey Bronnikov via Tarantool-patches
2024-11-11 13:04     ` mandesero--- via Tarantool-patches
2024-11-01 12:51 ` [Tarantool-patches] [PATCH v3 luajit 0/2] Enable running tests with Valgrind, add CI " Sergey Bronnikov via Tarantool-patches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZzYdMb0v4UcpFCUe@root \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=mandesero@gmail.com \
    --cc=skaplun@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v3 luajit 1/2] cmake: run tests with Valgrind' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox