function tracing: fix wrong position computing of stack_trace