Article View: muc.lists.netbsd.tech.userlevel
Article #31Re: No space available for static Thread Local Storage
From: Taylor R Campbell
Date: Thu, 22 Oct 2026 21:44
Date: Thu, 22 Oct 2026 21:44
52 lines
3781 bytes
3781 bytes
> Date: Thu, 22 Oct 2026 23:21:08 +0200 > From: Manuel Bouyer <bouyer@antioche.eu.org> > > On Thu, Oct 22, 2026 at 09:00:09PM +0000, Taylor R Campbell wrote: > > Well, here's the difference: > > > > --- readelf.mod_php82 2026-10-22 17:41:25.989146033 +0000 > > +++ readelf.mod_php84 2026-10-22 17:41:56.256975805 +0000 > > ... > > - 0x000000000000001e (FLAGS) STATIC_TLS > > > > Why does mod_php82.so use static TLS, a.k.a. TLS model `initial-exec'? > > > > As a general rule, static TLS does not work in dynamically loadable > > objects -- hence the TLS model name `initial exec': it is only meant > > for the initial program image on exec, not anything loaded later. > > No idea; both have been built from the same pkgsrc sources with the same > mk.conf ... --- php82/work/php-8.2.35/TSRM/TSRM.h 2026-10-19 07:29:52.000000000 +0000 +++ php84/work/php-8.4.27/TSRM/TSRM.h 2026-10-19 14:38:59.000000000 +0000 [...] @@ -148,7 +152,8 @@ # define __has_attribute(x) 0 #endif -#if !__has_attribute(tls_model) || defined(__FreeBSD__) || defined(__MUSL__) || defined(__HAIKU__) +#if !__has_attribute(tls_model) || defined(__FreeBSD__) || defined(__NetBSD__) \ + || defined(__MUSL__) || defined(__HAIKU__) || defined(_AIX) # define TSRM_TLS_MODEL_ATTR # define TSRM_TLS_MODEL_DEFAULT #elif __PIC__ Patch has not been backported to php82. See also: PR pkg/56717: php81 and zts - No space available for static Thread Local Storage https://gnats.NetBSD.org/56717 https://github.com/php/php-src/commit/2d6bd1644d104fe934a5117d232d3f50ffe9ff28 lang/php83/patches/patch-TSRM_TSRM.h Looks like an easy backport to php82 and whatever else needs it. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<20261022214403.BE7E584D62@mail.netbsd.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<atp-RO8w73Brid_H@antioche.eu.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Taylor R Campbell <riastradh@NetBSD.org> Newsgroups: muc.lists.netbsd.tech.userlevel Subject: Re: No space available for static Thread Local Storage Date: Thu, 22 Oct 2026 21:44:01 +0000 Organization: Newsgate at muc.de e.V. Sender: tech-userlevel-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <20261022214403.BE7E584D62@mail.netbsd.org> References: <atp-RO8w73Brid_H@antioche.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="60923"; mail-complaints-to="news-admin@muc.de" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1792705447; bh=8DGhJSjQxrD2rvwa8Uc4hz4aF/iBXIeyhBC/tnZBDMA=; h=To:CC:In-reply-to:Subject:Date:From:List-Id:List-Unsubscribe; b=ZUZOwjLbI8JBQXo0HvGC8UO9vj4JRSKDYV+HM1fUG7aOwUJyqny+ipEKP/64y3jGN vKsIY04JMrcO3U8MkBPuApMbjG9sjNnPYkGve0WodxrfgDYhxxv1NYnZMLNurfyD18 +FFcT/5j7SjcgW2gnqRdM4JatfmUkLPqsTl8MJnE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1792705443; bh=8DGhJSjQxrD2rvwa8Uc4hz4aF/iBXIeyhBC/tnZBDMA=; h=To:CC:In-reply-to:Subject:Date:From; b=WRgVfE1gGboTG2sS5GDp5k5Erhfsli22bnL2B6rryNCAC+8r5FiicA05OQVtBGy6P Fy3YP353FDxNkjdY67QTYKF80K+tZeT4xWsGEkpZt+t6Boulv+lWWLLS8GxoF83vtz bhIzapWtvYz+kXG1oAvP38x6tdgyeauKz++a4osA= In-reply-to: <atp-RO8w73Brid_H@antioche.eu.org> (bouyer@antioche.eu.org) Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes