Hello,
I'm trying to use this framework for a C project on MacOS. When I run the tests without trying to debug, they execute as expected. But when I try to start a debugger, I am seeing a crash with a backtrace that asks to submit a bug report.
I'm using criterion-v2.4.2. I started lldb like so: sudo lldb <path/to/executable>
(lldb) run --debug
Process 28941 launched: '/Users/crk/Developer/ws-shoshin-c/ds/linked_list/build/tests/test_alloc_and_free' (arm64)
[----] Criterion v2.4.2
[====] Running 2 tests from CreateLinkedList:
PLEASE submit a bug report to and include the crash backtrace.
Stack dump:
0. Program arguments: boxfort-worker gdbserver *:1234 /Users/crk/Developer/ws-shoshin-c/ds/linked_list/build/tests/test_alloc_and_free
#0 0x000000011168a9f0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/nix/store/flm20szcl47aqrckiax8izs2sgnc37a8-llvm-21.1.0-rc1-lib/lib/libLLVM.dylib+0x17a9f0)
#1 0x00000001116885e8 llvm::sys::RunSignalHandlers() (/nix/store/flm20szcl47aqrckiax8izs2sgnc37a8-llvm-21.1.0-rc1-lib/lib/libLLVM.dylib+0x1785e8)
#2 0x000000011168b5a4 SignalHandler(int, __siginfo*, void*) (/nix/store/flm20szcl47aqrckiax8izs2sgnc37a8-llvm-21.1.0-rc1-lib/lib/libLLVM.dylib+0x17b5a4)
#3 0x0000000186d616a4 (/usr/lib/system/libsystem_platform.dylib+0x1804ad6a4)
#4 0x00000001000776f8 lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS::LaunchProcess() (/nix/store/0g3rdh6a5gkbd46cs08r42s5fxa5dy8z-lldb-21.1.0-rc1/bin/lldb-server+0x1000776f8)
#5 0x0000000100007efc handle_launch(lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS&, llvm::ArrayRef<llvm::StringRef>) (/nix/store/0g3rdh6a5gkbd46cs08r42s5fxa5dy8z-lldb-21.1.0-rc1/bin/lldb-server+0x100007efc)
#6 0x00000001000098b4 main_gdbserver(int, char**) (/nix/store/0g3rdh6a5gkbd46cs08r42s5fxa5dy8z-lldb-21.1.0-rc1/bin/lldb-server+0x1000098b4)
#7 0x000000010000fc10 main (/nix/store/0g3rdh6a5gkbd46cs08r42s5fxa5dy8z-lldb-21.1.0-rc1/bin/lldb-server+0x10000fc10)
#8 0x0000000186986b98
criterion: Could not spawn test instance: Protocol error
Process 28941 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: 0x0000000186cee388 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`__pthread_kill:
-> 0x186cee388 <+8>: b.lo 0x186cee3a8 ; <+40>
0x186cee38c <+12>: pacibsp
0x186cee390 <+16>: stp x29, x30, [sp, #-0x10]!
0x186cee394 <+20>: mov x29, sp
(lldb)
Hello,
I'm trying to use this framework for a C project on MacOS. When I run the tests without trying to debug, they execute as expected. But when I try to start a debugger, I am seeing a crash with a backtrace that asks to submit a bug report.
I'm using criterion-v2.4.2. I started lldb like so:
sudo lldb <path/to/executable>