Problem
While attempting to attach to some processes, trace(CP) can coredump with an assertion failure:
Assertion failed: current_dll < num_dlls, file dll.c, line 335 abort - core dumped
Solution
This problem is fixed in OpenServer 5.0.6 Development System. The solution is to either upgrade to OpenServer 5.0.6 and the 5.0.6 Development System or to copy the /usr/bin/trace binary from a 5.0.6 system.