Bug #75738 [Opn]: mmap/munmap loop?

From: Date: Wed, 27 Dec 2017 17:22:55 +0000
Subject: Bug #75738 [Opn]: mmap/munmap loop?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213299@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75738&edit=1 ID: 75738 User updated by: albertcasademont at gmail dot com Reported by: albertcasademont at gmail dot com Summary: mmap/munmap loop? Status: Open Type: Bug Package: CGI/CLI related Operating System: Debian Stretch PHP Version: 7.1.12 Block user comment: N Private report: N New Comment: I installed gdb on the production machine and did a bt on the process, this is the output. Seems like there's something wrong with a shutdown function in a Newrelic extension? #0 0x000055d54756cce8 in zif_array_unshift () #1 0x000055d5476e24cd in ?? () #2 0x000055d54768921b in execute_ex () #3 0x00007f4c899af1bb in nr_php_execute_enabled () at /home/hudson/slave-workspace/workspace/php-release-agent/label/centos5-64-nrcamp/agent/php_execute.c:1191 #4 0x00007f4c899af802 in nr_php_execute () at /home/hudson/slave-workspace/workspace/php-release-agent/label/centos5-64-nrcamp/agent/php_execute.c:1301 #5 0x000055d54762f0e4 in zend_call_function () #6 0x000055d54762f385 in _call_user_function_ex () #7 0x000055d547575597 in ?? () #8 0x000055d5476513fa in zend_hash_apply () #9 0x000055d547578ae6 in php_call_shutdown_functions () #10 0x000055d5475da015 in php_request_shutdown () #11 0x000055d5476e5a60 in ?? () #12 0x000055d5474b6c19 in main () Not sure if this is still a relevant PHP bug or should i fill it with the NR guys. Previous Comments: ------------------------------------------------------------------------ [2017-12-27 17:17:37] albertcasademont at gmail dot com Interestingly enough, the strace doesn't display anything at all with that flag, which is weird. Process is still in a neverending loop wasting CPU, though. ------------------------------------------------------------------------ [2017-12-27 17:15:02] albertcasademont at gmail dot com Hi Nikita, Yes, the issue still happens with USE_ZEND_ALLOC=0 ------------------------------------------------------------------------ [2017-12-27 16:55:07] albertcasademont at gmail dot com Hi Nikita, Thanks, trying it now, we normally see the problem happening every 10-20 minutes, will get back asap. ------------------------------------------------------------------------ [2017-12-27 16:43:43] nikic@php.net Does the problem disappear if you set the USE_ZEND_ALLOC=0 environment variable? ------------------------------------------------------------------------ [2017-12-27 16:11:46] albertcasademont at gmail dot com Description: ------------ Hi, We're seeing some random neverending loops on Symfony3 CLI commands. stracing the processes we can see a series of looping calls to mmap/munmap/madvise mmap(NULL, 4198400, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe554fff000 munmap(0x7fe554fff000, 4198400) = 0 mmap(NULL, 6291456, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe554e00000 munmap(0x7fe555201000, 2093056) = 0 madvise(0x7fe554e00000, 4198400, MADV_HUGEPAGE) = 0 Saw bug #75368 but it seems like the issue keeps repeating itself. I'm afraid I can't provide a script to reproduce it, seems to occur randomly, quite frustrating. Any ideas? Thanks ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75738&edit=1

« previous php.bugs (#213299) next »