On 3 March 2011 15:46, Nathan Froyd <froy...@codesourcery.com> wrote: > On Thu, Mar 03, 2011 at 05:37:37PM +0200, Riku Voipio wrote: >> PTHREAD_STACK_MIN (16KB) is somewhat inadequate for a new stack. follow >> the pthread_create defaults, ie setting to RLIMIT_STACK or if unlimited >> to 2MB. > > For what sort oof cases is it inadequate? This stack is just for QEMU's > usage and QEMU shouldn't be using very much. The target thread could > use quite a bit of course, but that's handled elsewhere.
Maybe it's the fault of the alloca() usage in linux-user/syscalls.c? Some of the syscall emulations do alloca(some size determined by the target binary)... -- PMM