aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-12-21 15:01:12 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-12-22 11:59:46 +0100
commit6f298a18e582be006780954d6b0c30cbe2f568f4 (patch)
tree4d1da6105aa63eac8d3e233ff62116112fe688d6 /executor/common_linux.h
parent7b62abdb0abadbaf7b3f3a23ab4d78485fbf9059 (diff)
pkg/csource: limit thread stacks
We always set RLIMIT_AS to 128MB. I've debugged a program with 21 syscalls. With collide it creates 42 threads. With default stack size of 8MB this requires: 42*8 = 336MB. Thread creation fails and nothing works. Limit thread stacks the same way executor does. Fixes #488
Diffstat (limited to 'executor/common_linux.h')
0 files changed, 0 insertions, 0 deletions