-
Notifications
You must be signed in to change notification settings - Fork 403
Description
Bug description
- OS: Linux
- OS Version: Ubuntu 24.04
- Architecture: amd64
Tarantool: 56d685c
Tarantool 3.4.0-entrypoint-143-g4936d861d4
Target: Linux-x86_64-Debug
Build options: cmake . -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_BACKTRACE=TRUE
Compiler: Clang-21.0.0
C_FLAGS: -fexceptions -funwind-tables -fasynchronous-unwind-tables -fno-common -msse2 -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -fmacro-prefix-map=/home/sergeyb/sources/MRG/tarantool=. -std=c11 -Wall -Wextra -Wno-gnu-alignof-expression -Wno-cast-function-type -Werror -g -ggdb -O0
CXX_FLAGS: -fexceptions -funwind-tables -fasynchronous-unwind-tables -fno-common -msse2 -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -fmacro-prefix-map=/home/sergeyb/sources/MRG/tarantool=. -std=c++11 -Wall -Wextra -Wno-invalid-offsetof -Wno-gnu-alignof-expression -Wno-cast-function-type -Werror -g -ggdb -O0
Steps to reproduce
Apply a patch below:
(patch)
diff --git a/test/app-luatest/CMakeLists.txt b/test/app-luatest/CMakeLists.txt
index f395d4a62d..a9830ba69b 100644
--- a/test/app-luatest/CMakeLists.txt
+++ b/test/app-luatest/CMakeLists.txt
@@ -40,6 +40,7 @@ foreach(test_path ${tests})
# Disable stdout buffering,
# see https://github.com/tarantool/test-run/issues/119.
-e "io.stdout:setvbuf('no')"
+ -e "misc.sysprof.start({mode = 'C', path = '/dev/null'})"
${LUATEST_COMMAND_WITH_FLAGS}
--shuffle all:${RANDOM_SEED}
${test_title}
diff --git a/test/box-luatest/CMakeLists.txt b/test/box-luatest/CMakeLists.txt
index 18288a29d1..37787e0c35 100644
--- a/test/box-luatest/CMakeLists.txt
+++ b/test/box-luatest/CMakeLists.txt
@@ -44,6 +44,7 @@ foreach(test_path ${tests})
# Disable stdout buffering,
# see https://github.com/tarantool/test-run/issues/119.
-e "io.stdout:setvbuf('no')"
+ -e "misc.sysprof.start({mode = 'C', path = '/dev/null'})"
${LUATEST_COMMAND_WITH_FLAGS}
${test_title}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
diff --git a/test/config-luatest/CMakeLists.txt b/test/config-luatest/CMakeLists.txt
index 6c13cb8104..9a401bd84c 100644
--- a/test/config-luatest/CMakeLists.txt
+++ b/test/config-luatest/CMakeLists.txt
@@ -29,6 +29,7 @@ foreach(test_path ${tests})
# Disable stdout buffering,
# see https://github.com/tarantool/test-run/issues/119.
-e "io.stdout:setvbuf('no')"
+ -e "misc.sysprof.start({mode = 'C', path = '/dev/null'})"
${LUATEST_COMMAND_WITH_FLAGS}
--shuffle all:${RANDOM_SEED}
${test_title}
diff --git a/test/engine-luatest/CMakeLists.txt b/test/engine-luatest/CMakeLists.txt
index 554d336e67..b4025cb3ed 100644
--- a/test/engine-luatest/CMakeLists.txt
+++ b/test/engine-luatest/CMakeLists.txt
@@ -41,6 +41,7 @@ foreach(test_path ${tests})
# Disable stdout buffering,
# see https://github.com/tarantool/test-run/issues/119.
-e "io.stdout:setvbuf('no')"
+ -e "misc.sysprof.start({mode = 'C', path = '/dev/null'})"
${LUATEST_COMMAND_WITH_FLAGS}
${test_title}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
diff --git a/test/metrics-luatest/CMakeLists.txt b/test/metrics-luatest/CMakeLists.txt
index 7c02bb6b8a..d74aac2857 100644
--- a/test/metrics-luatest/CMakeLists.txt
+++ b/test/metrics-luatest/CMakeLists.txt
@@ -28,6 +28,7 @@ foreach(test_path ${tests})
# Disable stdout buffering,
# see https://github.com/tarantool/test-run/issues/119.
-e "io.stdout:setvbuf('no')"
+ -e "misc.sysprof.start({mode = 'C', path = '/dev/null'})"
${LUATEST_COMMAND_WITH_FLAGS}
--shuffle all:${RANDOM_SEED}
${test_title}
diff --git a/test/replication-luatest/CMakeLists.txt b/test/replication-luatest/CMakeLists.txt
index 9aa6083769..a46fbda760 100644
--- a/test/replication-luatest/CMakeLists.txt
+++ b/test/replication-luatest/CMakeLists.txt
@@ -28,6 +28,7 @@ foreach(test_path ${tests})
# Disable stdout buffering,
# see https://github.com/tarantool/test-run/issues/119.
-e "io.stdout:setvbuf('no')"
+ -e "misc.sysprof.start({mode = 'C', path = '/dev/null'})"
${LUATEST_COMMAND_WITH_FLAGS}
${test_title}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
diff --git a/test/sql-luatest/CMakeLists.txt b/test/sql-luatest/CMakeLists.txt
index 1cb4472c41..6e3c6b17bf 100644
--- a/test/sql-luatest/CMakeLists.txt
+++ b/test/sql-luatest/CMakeLists.txt
@@ -44,6 +44,7 @@ foreach(test_path ${tests})
# Disable stdout buffering,
# see https://github.com/tarantool/test-run/issues/119.
-e "io.stdout:setvbuf('no')"
+ -e "misc.sysprof.start({mode = 'C', path = '/dev/null'})"
${LUATEST_COMMAND_WITH_FLAGS}
${test_title}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
diff --git a/test/vinyl-luatest/CMakeLists.txt b/test/vinyl-luatest/CMakeLists.txt
index 6906f3e62f..8c4b4aed1b 100644
--- a/test/vinyl-luatest/CMakeLists.txt
+++ b/test/vinyl-luatest/CMakeLists.txt
@@ -28,6 +28,7 @@ foreach(test_path ${tests})
# Disable stdout buffering,
# see https://github.com/tarantool/test-run/issues/119.
-e "io.stdout:setvbuf('no')"
+ -e "misc.sysprof.start({mode = 'C', path = '/dev/null'})"
${LUATEST_COMMAND_WITH_FLAGS}
--shuffle all:${RANDOM_SEED}
${test_title}Build tarantool: CC=clang CXX=clang++ cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo && cmake --build build --parallel
In my case, assertion has triggered with tests test/replication-luatest/gh_9048_schema_upgrade_test.lua, test/sql-luatest/gh_5976_indexed_by_assertion_test.lua and test/replication-luatest/gh_9720_tmp_spaces_ddl_abort_applier_txs_test.lua, but I cannot reproduce the issue by running these tests separately, so I recommend executing the whole test suite:
Run test: ctest --output-on-failure -j5
Actual behavior
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x000074f585e4527e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x000074f585e288ff in __GI_abort () at ./stdlib/abort.c:79
#5 0x00005e0136973c0f in lj_assert_fail (g=0x0, file=0x5e0136d29270 "third_party/luajit/src/lj_sysprof.c", line=243, func=0x5e0136d2954f "stream_trace",
fmt=0x5e0136d2955c "(traceno)>0 && (MSize)(traceno)<J->sizetrace") at /home/sergeyb/sources/MRG/tarantool/third_party/luajit/src/lj_assert.c:25
#6 0x00005e013696e238 in stream_trace (sp=0x5e013709d610 <sysprof>, vmstate=9) at /home/sergeyb/sources/MRG/tarantool/third_party/luajit/src/lj_sysprof.c:243
#7 0x00005e013696e11a in stream_event (sp=0x5e013709d610 <sysprof>, vmstate=9) at /home/sergeyb/sources/MRG/tarantool/third_party/luajit/src/lj_sysprof.c:291
#8 0x00005e013696e015 in sysprof_record_sample (sp=0x5e013709d610 <sysprof>, info=0x7ffe03a7f0b0)
at /home/sergeyb/sources/MRG/tarantool/third_party/luajit/src/lj_sysprof.c:313
#9 0x00005e013696daf5 in sysprof_signal_handler (sig=27, info=0x7ffe03a7f0b0, ctx=0x7ffe03a7ef80)
at /home/sergeyb/sources/MRG/tarantool/third_party/luajit/src/lj_sysprof.c:329
#10 <signal handler called>
#11 0x000074f585eadda7 in __GI___libc_free (mem=0x5e014281f010) at ./malloc/malloc.c:3398
#12 0x00005e013685794a in box_lua_iproto_free () at /home/sergeyb/sources/MRG/tarantool/src/box/lua/iproto.c:663
#13 0x00005e013681def9 in box_lua_free () at /home/sergeyb/sources/MRG/tarantool/src/box/lua/init.c:1019
#14 0x00005e01365d83d2 in tarantool_free () at /home/sergeyb/sources/MRG/tarantool/src/main.cc:561
#15 0x00005e01365d7b41 in main (argc=7, argv=0x5e01427e76c8) at /home/sergeyb/sources/MRG/tarantool/src/main.cc:1106
(gdb) Expected behavior
no assertion is triggered
Metadata
Metadata
Assignees
Labels
Type
Projects
Status