diff --git a/src/RecordTask.cc b/src/RecordTask.cc index ef2235d7a4a..aa3dac1790d 100644 --- a/src/RecordTask.cc +++ b/src/RecordTask.cc @@ -2359,7 +2359,7 @@ bool RecordTask::try_grow_map(remote_ptr addr) { remote_ptr limit_bottom; #if defined (__i386__) struct rlimit stack_limit; - int ret = prlimit(t->tid, RLIMIT_STACK, NULL, &stack_limit); + int ret = prlimit(tid, RLIMIT_STACK, NULL, &stack_limit); #else struct rlimit64 stack_limit; int ret = syscall(__NR_prlimit64, tid, RLIMIT_STACK, (void*)0, &stack_limit);