From nobody Thu Dec 02 08:06:52 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BCE6318B21F3 for ; Thu, 2 Dec 2021 08:06:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J4T7c2NN0z3sNb for ; Thu, 2 Dec 2021 08:06:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 25F8219BB5 for ; Thu, 2 Dec 2021 08:06:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1B286qsO020098 for ; Thu, 2 Dec 2021 08:06:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B286qQQ020097 for bugs@FreeBSD.org; Thu, 2 Dec 2021 08:06:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 234775] PTHREAD_STACK_MIN is too small on amd64 Date: Thu, 02 Dec 2021 08:06:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pjfloyd@wanadoo.fr X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638432412; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fVmwUPerhGWtMLrIb6zox2satNzQos02na4ISq3WEhs=; b=Qlpochl9jU/uv8b5hGKzY0vyRz5UU/941wnSETJcXqbCOjXJT3q6G2+zjAIjd/7pA1XgGU UX/G1IspIKAyn/5KzT95hKfTKISAO/OxRxnAONdnVOvGqiXxlkVQmZ2dxJbdRuX/vUbOv8 ZAV6jrSLU9EyNX5aHJKq5KK9/KrFG8GzfQCd8R/TKnQnN7f359E7Sdtu3ZsOjw6Qpf+Gyz PMSda/ynwOCXn1l9EFYwQfReiwmVvuulWTs19ngg2JbNAsg4btHUixWNPdRmCKt7x5yMsV 0h63ibSxOKRZ+ZcX9066D4qGH04YlxJoKfFsRXk7yqvE3BBd5/KoUP+VVv8EVg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638432412; a=rsa-sha256; cv=none; b=OxWV+BHj1KdZcLficfSsR7p0AOqmTGrFfGAPQ3eZP1YPGmTH2Kxb77VSPtXxIcx123IwpO IAjh3d5vG48ZK1zkAARKMwDFEDQgBDuC+LRWCj+m47oDKzl4XMXF01JVaj7hgLfn+hlbY4 f5Z4It0Dos3xwpDZO2fajY/F5Oyb/VPkQvZE+qiOieVA1IjyU8P3YXPVTPQfZf7T4fBVyu Qa6Xw4ePRgHueg8tK48f0VTvj8XglKbjMje34/sOi2qHqYOk8N3m3jyMFRLhnbrqqyq+Gz uI5exylUu2dQKAXQ+E5JcgCaqNVy89BAeqbXNZqYC9Jv1+Ba0Og1AfW19fDSVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234775 --- Comment #5 from Paul Floyd --- Seems to be defined here paulf> grep -rI __MINSIGSTKSZ * | grep -v obj include/pthread.h:#define PTHREAD_STACK_MIN=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 __MINSIGSTKSZ sys/arm64/include/_limits.h:#define __MINSIGSTKSZ (1024 * 4) sys/riscv/include/_limits.h:#define __MINSIGSTKSZ (1024 * 4) sys/sys/signal.h:#include /* __MINSIGSTKSZ */ sys/sys/signal.h:#define MINSIGSTKSZ __MINSIGSTKSZ /* minimum stack size */ sys/powerpc/include/_limits.h:#define __MINSIGSTKSZ (512 * 4) sys/x86/include/_limits.h:#define __MINSIGSTKSZ (512 * 4) sys/arm/include/_limits.h:#define __MINSIGSTKSZ (1024 * 4) sys/mips/include/_limits.h:#define __MINSIGSTKSZ (512 * 4) Used in quite a lot of places, including sysconf() So, what to do? __MINSIGSTKSZ is used for both signal stacks and pthread stacks. I guess changing=20 sys/x86/include/_limits.h:#define __MINSIGSTKSZ (512 * 4) to sys/x86/include/_limits.h:#define __MINSIGSTKSZ (1024 * 4) would do the job on i386 and amd64 --=20 You are receiving this mail because: You are the assignee for the bug.=