@bagder I have used the standard glibc backtrace() and backtrace_symbols() for this, to log which function called an API with bad arguments.