Skip to content

Php8.1 with alternative malloc allocators #10670

Open
@ryancinsight

Description

@ryancinsight

Description

The following code:

LD_PRELOAD=libsnmallocshim.so php cron.php

Resulted in this output:

FREE():  invalid pointer
Aborted

But I expected this output instead:

111111111

more info is here:
microsoft/snmalloc#595

microsoft/mimalloc#377

I’m not an allocator expert but seems valgrind is showing memory leaks with alternative allocators and free is being called by malloc when replaced with LD_PRELOAD

PHP Version

PHP 8.1

Operating System

Debian Bullseye

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