We have been trying to trace an already running process using drrun -attach and detach from it again using drconfig -detach but DynamoRIO crashes during the detach.
Using debug builds I have seen a few asserts failing including:
core/unix/signal.c:2826 mc != NULL && sc != NULL
core/unix/signal.c:1512 sigsegv_handler_is_ours() || removed_sig_handler
This was discovered on AArch64 Linux but might effect other platforms too.
This can be reproduced with simple applications. I have been using the linux.infloop test app:
cd dynamorio-build-dir
suite/tests/bin/linux.infloop &
bin64/drrun -attach $(jobs -p %1) &
bin64/drconfig -detach $(jobs -p %1)