The "offending" code is: # if defined _POSIX_SOURCE || defined _POSIX_C_SOURCE || defined _XOPEN_SOURCE /* PTHREAD_STACK_MIN needs the above test. */ assert(stacksize >= PTHREAD_STACK_MIN); # endif PTHREAD_VERIFY(pthread_attr_setstacksize(&attr, stacksize));
Maybe we should simply skip the above assert on Hurd. The real minimum on Hurd is much smaller than on Linux and any stacksize asked for here should be larger. https://github.com/ArneBab/hurd-web/blob/master/hurd/porting/guidelines.mdwn#-pthread_stack_min- Tormod

