arnaud-lb / php-memory-profiler

Memory profiler for PHP. Helps finding memory leaks in PHP scripts.
MIT License
859 stars 51 forks source link

"free(): double free detected in tcache 2" with MEMPROF_PROFILE=dump_on_limit,native #51

Closed denis-kopelevich closed 2 years ago

denis-kopelevich commented 3 years ago

Without native (MEMPROF_PROFILE=dump_on_limit) it works ok

php -dextension=memprof.so -i | fgrep memp
memprof
memprof support => enabled
memprof version => 3.0.0
memprof native malloc support => Yes
memprof.output_dir => /tmp => /tmp
phpinfo()
PHP Version => 7.4.10

System => Linux 5.4.0-72-generic #80~18.04.1-Ubuntu SMP Mon Apr 12 23:26:25 UTC 2021 x86_64
arnaud-lb commented 3 years ago

Hi @denis-kopelevich

Thank you for this report.

Could you provide a short script that can reproduce this ?