diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-12-21 15:01:12 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-12-22 11:59:46 +0100 |
| commit | 6f298a18e582be006780954d6b0c30cbe2f568f4 (patch) | |
| tree | 4d1da6105aa63eac8d3e233ff62116112fe688d6 /prog/encodingexec.go | |
| parent | 7b62abdb0abadbaf7b3f3a23ab4d78485fbf9059 (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 'prog/encodingexec.go')
0 files changed, 0 insertions, 0 deletions
