[build2] std::system_error: Resource temporarily unavailable
Dane Springmeyer
dane at mapbox.com
Sat Feb 10 06:35:04 UTC 2018
>> If I run that within make I see:
>>
>> Current stack size - > 2097152
>>
>> And outside of make:
>>
>> Current stack size - > 8388608
>
> Strange, looks like make actually reduces the stack size. Could you
> re-test with stacksize.c?
In a normal shell (running ubuntu precise inside docker on a mac) gives:
stack rlimit: 8192 KB
main stack size: 8188 KB
def pthreads stack size: 8192 KB
queried stack size: 8196 KB
evaluated stack size: 8196 KB
using main stack double size (16376 KB) for pthreads ...
queried stack size: 16376 KB
evaluated stack size: 16376 KB
And run via make I get:
# make
./stacksize
stack rlimit: 18014398509481983 KB
main stack size: 91394428152 KB
def pthreads stack size: 2048 KB
queried stack size: 2052 KB
evaluated stack size: 2052 KB
using main stack double size (182788856304 KB) for pthreads ...
stacksize: stacksize.c:109: void print_stack_size(pthread_attr_t *): Assertion `pthread_create (&t, attr, stack_size_printer, attr) == 0' failed.
make: *** [release] Aborted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.build2.org/archives/users/attachments/20180209/57307eea/attachment-0001.html>
More information about the users
mailing list