Error while running ptrans with large number of threads