Skip to content

php-fpm: free(): invalid pointer when used with jemalloc #11133

Closed as not planned
@makhomed

Description

@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. enable jemalloc library for using byall all processes via /etc/ld.so.preload configuration file
4. systemctl start php82-php-fpm.service
5. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions