cannot allocate memory in static TLS block

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

from a month I faced with strange problem cannot allocate memory in static TLS block for which Im unable to find helpful help how to resolve the issue. Im using php with apache:

Server version: Apache/2.4.61 (Unix)
Server built:   Jul  3 2024 21:04:51


My php is:

PHP 8.3.9 (cli) (built: Jul  5 2024 19:39:13) (ZTS)
Copyright (c) The PHP Group
Zend Engine v4.3.9, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.9, Copyright (c), by Zend Technologies

build with these params:

Build Date => Jul  5 2024 19:38:51
Build System => Linux z-mp.slackware.lan 6.9.7 #1 SMP PREEMPT_DYNAMIC Thu Jun 27 16:03:45 CDT 2024 x86_64 Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz GenuineIntel GNU/Linux Configure Command => './configure' '--prefix=/usr' '--libdir=/usr/lib64' '--with-libdir=lib64' '--localstatedir=/var' '--sysconfdir=/etc' '--datarootdir=/usr/share' '--datadir=/usr/share' '--infodir=/usr/info' '--mandir=/usr/man' '--with-apxs2=/usr/bin/apxs' '--enable-fpm' '--with-fpm-user=apache' '--with-fpm-group=apache' '--enable-pcntl' '--enable-mbregex' '--enable-tokenizer=shared' '--with-config-file-scan-dir=/etc/php.d' '--with-config-file-path=/etc' '--with-layout=PHP' '--disable-sigchild' '--with-libxml' '--with-expat' '--enable-simplexml' '--enable-xmlreader=shared' '--enable-dom=shared' '--enable-filter' '--disable-debug' '--with-openssl=shared' '--with-kerberos' '--with-external-pcre' '--with-zlib=shared,/usr' '--enable-bcmath=shared' '--with-bz2=shared,/usr' '--enable-calendar=shared' '--enable-ctype=shared' '--with-curl=shared' '--enable-dba=shared' '--with-gdbm=/usr' '--with-db4=/usr' '--enable-exif=shared' '--enable-ftp=shared' '--enable-gd=shared' '--with-external-gd' '--with-jpeg' '--with-xpm' '--with-gettext=shared,/usr' '--with-gmp=shared,/usr' '--with-iconv=shared' '--with-imap-ssl=/usr' '--with-imap=/usr/local/lib64/c-client' '--with-ldap=shared' '--enable-mbstring=shared' '--enable-mysqlnd=shared' '--with-mysqli=shared,mysqlnd' '--with-mysql-sock=/var/run/mysql/mysql.sock' '--with-iodbc=shared,/usr' '--enable-pdo=shared' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-sqlite=shared,/usr' '--with-pdo-odbc=shared,iODBC,/usr' '--with-pspell=shared,/usr' '--with-enchant=shared,/usr' '--enable-shmop=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--enable-sockets' '--with-sqlite3=shared' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-xsl=shared,/usr' '--with-zip=shared' '--enable-intl=shared' '--enable-opcache' '--enable-shared=yes' '--enable-static=no' '--with-gnu-ld' '--with-pic' '--enable-phpdbg' '--with-sodium' '--with-password-argon2' '--without-readline' '--with-libedit' '--with-pear' '--with-tidy=shared' '--build=x86_64-slackware-linux' 'build_alias=x86_64-slackware-linux' 'PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig'

In 4 am morning my logrotate attempt to restart the server. This it's not happened on every restart. On restart the php log errors:

[Tue Jul 16 04:40:05.214443 2024] [mpm_event:notice] [pid 1536:tid 1536] AH00494: SIGHUP received. Attempting to restart PHP Warning: Failed loading Zend extension 'opcache' (tried: /usr/lib64/php/extensions/opcache (/usr/lib64/php/extensions/opcache: cannot open shared object file: No such file or directory), /usr/lib64/php/extensions/opcache.so (/usr/lib64/php/extensions/opcache.so: cannot allocate memory in static TLS block)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib64/php/extensions/intl (/usr/lib64/php/extensions/intl: cannot open shared object file: No such file or directory), /usr/lib64/php/extensions/intl.so (/usr/lib64/php/extensions/intl.so: cannot allocate memory in static TLS block)) in Unknown on line 0 [Tue Jul 16 04:40:07.119275 2024] [mpm_event:notice] [pid 1536:tid 1536] AH00489: Apache/2.4.61 (Unix) OpenSSL/3.3.1 configured -- resuming normal operations [Tue Jul 16 04:40:07.119336 2024] [core:notice] [pid 1536:tid 1536] AH00094: Command line: '/usr/sbin/httpd'

Server is restarted but some functionality it's not working. After my manual try to restart the server I receive the same error:

[Tue Jul 16 07:12:17.358108 2024] [mpm_event:notice] [pid 1536:tid 1536] AH00494: SIGHUP received. Attempting to restart PHP Warning: Failed loading Zend extension 'opcache' (tried: /usr/lib64/php/extensions/opcache (/usr/lib64/php/extensions/opcache: cannot open shared object file: No such file or directory), /usr/lib64/php/extensions/opcache.so (/usr/lib64/php/extensions/opcache.so: cannot allocate memory in static TLS block)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib64/php/extensions/intl (/usr/lib64/php/extensions/intl: cannot open shared object file: No such file or directory), /usr/lib64/php/extensions/intl.so (/usr/lib64/php/extensions/intl.so: cannot allocate memory in static TLS block)) in Unknown on line 0 [Tue Jul 16 07:12:19.217368 2024] [mpm_event:notice] [pid 1536:tid 1536] AH00489: Apache/2.4.61 (Unix) OpenSSL/3.3.1 configured -- resuming normal operations [Tue Jul 16 07:12:19.217435 2024] [core:notice] [pid 1536:tid 1536] AH00094: Command line: '/usr/sbin/httpd'


To fix the problem I need to stop completely the httpd and start it again.

Any one could help with this problem ?

Thanks,
Hristo



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux