crash libEngine14_test ARM-linux CMake+Clang
code :
https://github.com/notesoft/SQLfb/tree/work-SQLfb-CMake-LLVMactions:
https://github.com/notesoft/SQLfb/actions/runs/25995796316/job/76409943847libEngine14_test crash if build with CMake+Clang, but run without errors if build with CC=clang CXX=clang++ ./code/autogen.sh --enable-binreloc --prefix=/opt/firebird --enable-developer
Other build (ubuntu-latest, windows-latest, macos-latest, windows-11-arm, macos-26-intel) run without errors
crash LockUnlockWaitTest
Under debugger I am not find clearly-not-correct variables.
Option -O0 not correct problem.
On compare outputs of autogen.sh AMD and ARM I`m not find solved of problem.
Please, help...
under build (ubuntu-24.04-arm, Release, clang, clang++) :
[100%] Built target copy_files
Running 108 test cases...
*** No errors detected
Fatal error: length accounting in _dl_exception_create_format
gmake[3]: *** [src/CMakeFiles/run_tests.dir/build.make:71: src/CMakeFiles/run_tests] Error 127
gmake[2]: *** [CMakeFiles/Makefile2:2332: src/CMakeFiles/run_tests.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:2339: src/CMakeFiles/run_tests.dir/rule] Error 2
gmake: *** [Makefile:813: run_tests] Error 2
Error: Process completed with exit code 2.
under mac-M1-VirtualBox-Debian-13 build:
[100%] Built target employee_db
[build] [100%] Built target copy_files
[build] Running 108 test cases...
[build]
[build] [1;32;49m*** No errors detected
[build] Running 12 test cases...
[build] unknown location(0): [4;31;49mfatal error: in "EngineSuite/LockManagerSuite/LockManagerTests/LockUnlockWaitTest": memory access violation at address: 0xffffd9c1d8e0: invalid permissions [0;39;49m
[build] /home/khalyutin/WORK/source/COMPONENTS/SQLfb/code/src/lock/tests/LockManagerTest.cpp(80): [1;36;49mlast checkpoint: "LockUnlockWaitTest" test entry [0;39;49m
[build] [0;39;49m
[build] Segmentation fault (core dumped)
[build] gmake[3]: *** [code/src/CMakeFiles/run_tests.dir/build.make:71: code/src/CMakeFiles/run_tests] Error 139
[build] gmake[2]: *** [CMakeFiles/Makefile2:2416: code/src/CMakeFiles/run_tests.dir/all] Error 2
[build] gmake[1]: *** [CMakeFiles/Makefile2:2423: code/src/CMakeFiles/run_tests.dir/rule] Error 2
[build] gmake: *** [Makefile:884: run_tests] Error 2
under mac-M1-VirtualBox-Debian-13 debugger:
96 std::latch latch(THREAD_COUNT);
Loaded '/lib/aarch64-linux-gnu/libnss_systemd.so.2'. Symbols loaded.
Loaded '/lib/aarch64-linux-gnu/libcap.so.2'. Symbols loaded.
Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger)
[New Thread 0xfffff72df060 (LWP 21399)]
[New Thread 0xfffff6acf060 (LWP 21400)]
[New Thread 0xfffff62bf060 (LWP 21401)]
[New Thread 0xfffff5aaf060 (LWP 21402)]
[New Thread 0xfffff529f060 (LWP 21403)]
[New Thread 0xfffff4a8f060 (LWP 21404)]
[New Thread 0xfffff427f060 (LWP 21405)]
[New Thread 0xfffff3a6f060 (LWP 21406)]
Thread 7 "libEngine14_tes" received signal SIGBUS, Bus error.
[Switching to Thread 0xfffff4a8f060 (LWP 21404)]
0x0000fffff782374c in ?? () from /lib/aarch64-linux-gnu/libc.so.6
if (micro_seconds > 0)
{
ret = pthread_cond_timedwait(event->event_cond, event->event_mutex, &timer); <------------------------ problem here
if (ret == ETIMEDOUT)
{
// The timer expired - see if the event occurred and return
// FB_SUCCESS or FB_FAILURE accordingly.
if (event_blocked(event, value))
ret = FB_FAILURE;
else
ret = FB_SUCCESS;
break;
}
}