Edit report at https://bugs.php.net/bug.php?id=73889&edit=1
ID: 73889
Updated by: nikic@php.net
Reported by: spam2 at rhsoft dot net
Summary: memory leaks / valgrind report
-Status: Open
+Status: Feedback
Type: Bug
Package: Unknown/Other Function
PHP Version: 7.1.0
Block user comment: N
Private report: N
New Comment:
Please run valgrind using ZEND_DONT_UNLOAD_MODULES=1, otherwise stack traces for shared objects are
incomplete. Please also don't specify --show-leak-kinds=all. Reachable memory are not leaks and
these entries cause a lot of noise.
Previous Comments:
------------------------------------------------------------------------
[2017-01-08 03:50:24] spam2 at rhsoft dot net
Description:
------------
hopefully this helps somehow
after tuning my rpm-build for profile-guided-optimization and optional debug builds i recently added
options to run "valgrind" on the application profiling
you can find the full log at http://access.thelounge.net/harry/php-valgrind.txt
/usr/bin/valgrind --tool=memcheck --leak-check=yes --leak-check=full --show-leak-kinds=all
--log-file=$PROFILE_ROOT/logs/valgrind.log $HTTPD_BINARY -f "$PROFILE_ROOT/httpd.conf"
example:
==4295== 168 bytes in 1 blocks are definitely lost in loss record 95 of 128
==4295== at 0x4C2DA60: calloc (vg_replace_malloc.c:711)
==4295== by 0xC0A291C: ???
==4295== by 0xC08F285: ???
==4295== by 0xC099CED: ???
==4295== by 0xA7FF364: ???
==4295== by 0xA7D02E4: ???
==4295== by 0x4193BBE: ???
==4295== by 0x6C6A66D: zend_startup_module_ex (zend_API.c:1843)
==4295== by 0x6C6A6CF: zend_startup_module_zval (zend_API.c:1858)
==4295== by 0x6C7837A: zend_hash_apply (zend_hash.c:1508)
==4295== by 0x6C6AC9B: zend_startup_modules (zend_API.c:1969)
==4295== by 0x6BD1A10: php_module_startup (main.c:2256)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73889&edit=1