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: 2016-04-05 13:50 UTC
Votes:28
Avg. Score:4.6 ± 0.7
Reproduced:23 of 27 (85.2%)
Same Version:7 (30.4%)
Same OS:5 (21.7%)
From: php at wesha dot name Assigned:
Status: Open Package: Apache2 related
PHP Version: 7.0.1 OS: FreeBSD-8.1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

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.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 15 17:01:42 2019 UTC