arnaud-lb / php-memory-profiler

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

malloc hooks are not thread-safe and may cause the profiler to crash #10

Closed arnaud-lb closed 3 years ago

arnaud-lb commented 8 years ago

malloc hooks are not thread-safe, and memprof is likely to crash if the presence of multiple threads in the same process (e.g. if some extension spawns threads).

One temporary mitigation is to set HAVE_MALLOC_HOOKS to 0 in config.h after configure.

A proper fix is needed.

arnaud-lb commented 3 years ago

Fixed: Native profiling is now disabled by default