[php-src] Issue #11133: php-fpm: free(): invalid pointer when used with jemalloc
| From: | makhomed | Date: | Wed, 26 Apr 2023 02:02:00 +0000 |
| Subject: | [php-src] Issue #11133: php-fpm: free(): invalid pointer when used with jemalloc | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-244270@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/11133
Author: makhomed
### Description
The following code:
```
0. install Rocky Linux 9.1
1. enable EPEL repo and install package jemalloc-5.2.1-2.el9.x86_64 from EPEL
2. install php82-php-fpm package from remi-safe repo, details here: https://rpms.remirepo.net/wizard/
3. systemctl start php82-php-fpm.service
4. obtain error php-fpm[1280]: free(): invalid pointer
```
Resulted in this output:
```
systemd[1]: Starting The PHP FastCGI Process Manager...
php-fpm[1717]: free(): invalid pointer
systemd[1]: Started Process Core Dump (PID 1718/UID 0).
systemd-coredump[1719]: Resource limits disable core dumping for process 1717 (php-fpm).
systemd-coredump[1719]: Process 1717 (php-fpm) of user 0 dumped core.
systemd[1]: systemd-coredump@1-1718-0.service: Deactivated successfully.
systemd[1]: php82-php-fpm.service: Main process exited, code=dumped, status=6/ABRT
systemd[1]: php82-php-fpm.service: Failed with result 'core-dump'.
systemd[1]: Failed to start The PHP FastCGI Process Manager.
```
But I expected this output instead:
```
Starting The PHP FastCGI Process Manager...
Started The PHP FastCGI Process Manager.
```
### PHP Version
PHP 8.2.5
### Operating System
Rocky Linux 9.1