Subject: lib/37169: libpthread doesn't support PTHREAD_STACK_MIN
To: None <,,>
From: None <>
List: netbsd-bugs
Date: 10/21/2007 23:00:01
>Number:         37169
>Category:       lib
>Synopsis:       libpthread doesn't support PTHREAD_STACK_MIN
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 21 23:00:01 +0000 2007
>Originator:     Arnaud Degroote
>Release:        current
NetBSD 4.99.34 NetBSD 4.99.34 (AMILO) #4: Sat Oct 20 11:55:49 CEST 2007 i386

>From the single unix specification,

limits.h need to define PTHREAD_STACK_MIN as :

 Minimum size in bytes of thread stack storage. 
 Minimum Acceptable  Value: 0


  pthread_set_stacksize must check its argument agains this value. If it is lesser, the function must return EINVAL

Our current implementation doesn't respect this behaviour (particulary it doesn't expose PTHREAD_STACK_MIN).
Code reading 
(spotted trying to compile YARV (Yet Another Ruby VM))