[LLVMdev] setrlimit vs ulimt

Evgeniy Stepanov eugenis at google.com
Thu May 29 02:34:32 PDT 2014


execv(argv[0]) is a canonical way to restart the process, it's sad
that the emulator interferes with that.

ulimit does not work for me because it needs to run on the device, in
the same shell as the test binary.
Propagating ulimit setting in %run wrapper sounds wrong.


On Wed, May 28, 2014 at 11:43 PM, Greg Fitzgerald <garious at gmail.com> wrote:
> Hi Evgeniy,
>
> This fix causes me trouble in the emulator because of the execv(argv[0]):
>
> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140217/205359.html
>
> Instead using setrlimit from within the C++ code, can you set the
> stack limit using ulimit on the RUN lines?  Also, should this test be
> moved to the Posix or Linux directory?
>
> Thanks,
> Greg



More information about the llvm-dev mailing list