trussinfo->curthread must be initialized before calling enter_syscall(),
it is used by t->proc->abi->fetch_args() .
Without that truss is segfaulting and the attached program crash also.
It can be reproduced by trying to attach a binary which is doing a
while (1) usleep(1);