[PATCH] D66361: Improve behavior in the case of stack exhaustion.

Joerg Sonnenberger via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 3 12:21:31 PDT 2019


On Tue, Sep 03, 2019 at 06:02:28PM +0000, Richard Smith - zygoloid via Phabricator via cfe-commits wrote:
> rsmith added a comment.
> 
> In D66361#1655903 <https://reviews.llvm.org/D66361#1655903>, @krytarowski wrote:
> 
> > This change broke on NetBSD.
> >
> > http://lab.llvm.org:8011/builders/netbsd-amd64/builds/22003/steps/run%20unit%20tests/logs/FAIL%3A%20Clang%3A%3Astack-exhaustion.cpp
> 
> 
> Test disabled for NetBSD in r370801. If you're interested in investigating why this isn't working there, feel free, but this is only a best-effort mitigation for the case where things have already gone wrong, so there are limits to how much effort it makes sense to resolve this.
> 
> Does NetBSD set a hard stack rlimit of less than 8MB by any chance?

4MB soft limit by default, hard limit depends on the architecture, e.g.
128MB on amd64.

Joerg


More information about the cfe-commits mailing list