On Thu, Mar 03, 2011 at 07:46:27AM -0800, Nathan Froyd 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.
QEMU linux-user calls glibc functions which, while usually very conservative with memory usage, are not guaranteed not take less than 10KB (at do_syscall we are already around 5 functions deep). Our specific case we hit this is ugly, LD_PRELOAD library over glibc functions with lots messy string handling... Riku