NetBSD Problem Report #37169

From  Sun Oct 21 22:59:01 2007
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id E4D1E63B8FE
	for <>; Sun, 21 Oct 2007 22:59:00 +0000 (UTC)
Message-Id: <>
Date: Sun, 21 Oct 2007 22:34:33 +0000 (UTC)
Subject: libpthread doesn't support PTHREAD_STACK_MIN
X-Send-Pr-Version: www-1.0

>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))

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.