NetBSD Problem Report #37169
From martin@duskware.de Sun Oct 21 22:59:01 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id E4D1E63B8FE
for <gnats-bugs@gnats.netbsd.org>; Sun, 21 Oct 2007 22:59:00 +0000 (UTC)
Message-Id: <20071021223433.A59F963B8FE@narn.NetBSD.org>
Date: Sun, 21 Oct 2007 22:34:33 +0000 (UTC)
From: degroote@netbsd.org
Reply-To: degroote@netbsd.org
To: netbsd-bugs-owner@NetBSD.org
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
>Organization:
>Environment:
NetBSD Amilo.at.home 4.99.34 NetBSD 4.99.34 (AMILO) #4: Sat Oct 20 11:55:49 CEST 2007 zul@Amilo.at.home:/home/zul/netbsd-dev/build_temp/objdir/sys/arch/i386/compile/AMILO i386
>Description:
>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
and
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).
>How-To-Repeat:
Code reading
(spotted trying to compile YARV (Yet Another Ruby VM))
>Fix:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.