php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71189 No space available for static Thread Local Storage
Submitted: 2015-12-22 03:17 UTC Modified: 2021-07-11 04:22 UTC
Votes:29
Avg. Score:4.6 ± 0.7
Reproduced:24 of 28 (85.7%)
Same Version:7 (29.2%)
Same OS:5 (20.8%)
From: php at wesha dot name Assigned: cmb (profile)
Status: No Feedback Package: Apache2 related
PHP Version: 7.0.1 OS: FreeBSD-8.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at wesha dot name
New email:
PHP Version: OS:

 

 [2015-12-22 03:17 UTC] php at wesha dot name
Description:
------------
When attempting to launch Apache 2.4.18 with PHP 7.0.1 module I recieve the following message:

Syntax error on line 153 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/libphp7.so into server: /usr/local/apache2/modules/libphp7.so: No space available for static Thread Local Storage

Line 153 is where the module loads:
LoadModule php7_module        modules/libphp7.so

PHP5 module loads just fine without any problems.

PHP7 configure string:

--with-mysql=[...censored...] --with-mysqli=mysqlnd --with-gd --with-apxs2=[...censored...] --with-zlib --enable-gd-native-ttf --with-freetype-dir=[...censored...] --with-jpeg-dir=[...censored...] --with-openssl --with-iconv --enable-mbstring --enable-sockets --enable-pcntl --with-mcrypt --with-pdo-mysql --with-bz2 --enable-zip --with-curl ac_cv_decimal_fp_supported=no --mandir=[...censored...] --without-pear



Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-14 21:37 UTC] eu_gen at mail dot ru
I've get the same error, Apache fails to start.
This error occurs regardless of the enabled modules/MPMs.
Have FreeBSD 10.2, Apache 2.4.18, PHP 7.0.4.
 [2016-04-03 13:11 UTC] vd_all at mail dot ru
I've get the same error too.
Have FreeBSD 10.1 32bit, Apache 2.4.18 mpm-itk 2.4.7-04, PHP 7.0.4.
 [2016-04-05 12:39 UTC] inacio at isec dot pt
You should unset ZTS on mod_php, and choose option nÂș1 in MPM for apache.
It will work, for apache 2.4.18 and php 7.0.5
 [2016-04-05 13:50 UTC] php at wesha dot name
@inacio: I have absolutely no idea what you are talking about. I have never "set ZTS on mod_php", and therefore, I have no idea how to unset it. Can you point me to the respective manuals? Thank you.
 [2016-06-07 17:29 UTC] php2006 at sensation dot net dot au
Same problem with PHP 7.0.7, FreeBSD 8.3, Apache 2.4.x

With regards to ZTS, configure --help says:

  --enable-maintainer-zts Enable thread safety - for code maintainers only!!

...but this seems to be enabled by default (generated Makefile contains -DZTS)

Trying configure with --enable-maintainer-zts=no gets rid of the -DZTS from Makefile, but when compiling with the new config there's still the same error on attempted start.

Original bug is 6+ months old, has anyone found a solution? Thanks.
 [2016-06-07 17:45 UTC] php2006 at sensation dot net dot au
Correction to my last comment: --enable-maintainer-zts=no does nothing (it still includes -DZTS). I accidentally compared with a manually edited Makefile.

Regardless, the presence or lack of -DZTS in the Makefile does not change the behaviour... Apache still bombs out with the error in the OP.
 [2016-07-08 07:41 UTC] vd_all at mail dot ru
Upgrade to FreeBSD 10.3 32bit, Apache 2.4.23, PHP 7.0.8_1.
This problem is still not fixed.
But, on the system running on FreeBSD 64bit with same configuration all work fine.
This error most likely occurs only on 32-bit systems.

Excuse me for my English - I use Google translator

I read a comment inacio (04/05/2016)
What I want to say.
It was possible to run as follows:
1. Disable the ZTS in mod_php70 (cd /usr/ports/www/mod_php70 && make config) settings and php70 (cd /usr/ports/lang/php70 && make config). Recompile it.
2. Use the prefork module to work (you can also use ITK-MPM)
3. All works well.
In this case, we lose the threads.
 [2017-01-04 22:06 UTC] info at freestyling dot de
Using latest Freebsd 11 + Latest php 7.1 and the problem still exists. Running freebsd in a virtual box as a note for testing.
 [2021-05-29 18:57 UTC] eg329371 at gmail dot com
The following pull request has been associated:

Patch Name: Update README.md
On GitHub:  https://github.com/php/pecl-php-operator/pull/4
Patch:      https://github.com/php/pecl-php-operator/pull/4.patch
 [2021-07-02 11:48 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-07-02 11:48 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-07-11 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 19:01:31 2024 UTC