{"action":"created","issue":{"url":"https://api.github.com/repos/oerdnj/deb.sury.org/issues/247","repository_url":"https://api.github.com/repos/oerdnj/deb.sury.org","labels_url":"https://api.github.com/repos/oerdnj/deb.sury.org/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/oerdnj/deb.sury.org/issues/247/comments","events_url":"https://api.github.com/repos/oerdnj/deb.sury.org/issues/247/events","html_url":"https://github.com/oerdnj/deb.sury.org/issues/247","id":131896907,"number":247,"title":"PHP 7.0.3 FPM produces 502 Bad Gateway","user":{"login":"thasmo","id":184284,"avatar_url":"https://avatars.githubusercontent.com/u/184284?v=3","gravatar_id":"","url":"https://api.github.com/users/thasmo","html_url":"https://github.com/thasmo","followers_url":"https://api.github.com/users/thasmo/followers","following_url":"https://api.github.com/users/thasmo/following{/other_user}","gists_url":"https://api.github.com/users/thasmo/gists{/gist_id}","starred_url":"https://api.github.com/users/thasmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thasmo/subscriptions","organizations_url":"https://api.github.com/users/thasmo/orgs","repos_url":"https://api.github.com/users/thasmo/repos","events_url":"https://api.github.com/users/thasmo/events{/privacy}","received_events_url":"https://api.github.com/users/thasmo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2016-02-06T20:30:06Z","updated_at":"2016-03-31T19:18:13Z","closed_at":null,"body":"I'm encountering random `502 Bad Gateway` errors from Nginx, which are probably caused by PHP 7.0.3 FPM. The PHP error log shows the following, but I have no idea what it actually means or how it can be fixed. The Gateway error occurs pretty often but randomly. I've disabled all PHP modules, except mysqli, but the error persist.\r\n\r\n```\r\n[06-Feb-2016 21:16:09] NOTICE: fpm is running, pid 28379\r\n[06-Feb-2016 21:16:09] NOTICE: ready to handle connections\r\n[06-Feb-2016 21:16:09] NOTICE: systemd monitor interval set to 10000ms\r\n[06-Feb-2016 21:17:52] WARNING: [pool www] child 28390 said into stderr: \"*** Error in `php-fpm: pool www': corrupted double-linked list: 0x0000000002055d00 ***\"\r\n[06-Feb-2016 21:17:52] WARNING: [pool www] child 28390 exited on signal 6 (SIGABRT) after 103.610401 seconds from start\r\n[06-Feb-2016 21:17:52] NOTICE: [pool www] child 28413 started\r\n[06-Feb-2016 21:22:22] WARNING: [pool www] child 28383 said into stderr: \"*** Error in `php-fpm: pool www': free(): invalid size: 0x000000000208bf30 ***\"\r\n[06-Feb-2016 21:22:22] WARNING: [pool www] child 28383 exited on signal 6 (SIGABRT) after 373.582334 seconds from start\r\n[06-Feb-2016 21:22:22] NOTICE: [pool www] child 28415 started\r\n[06-Feb-2016 21:22:23] WARNING: [pool www] child 28384 said into stderr: \"*** Error in `php-fpm: pool www': free(): invalid size: 0x00000000020af690 ***\"\r\n[06-Feb-2016 21:22:23] WARNING: [pool www] child 28384 exited on signal 6 (SIGABRT) after 373.921252 seconds from start\r\n[06-Feb-2016 21:22:23] NOTICE: [pool www] child 28416 started\r\n[06-Feb-2016 21:23:33] WARNING: [pool www] child 28413 said into stderr: \"*** Error in `php-fpm: pool www': munmap_chunk(): invalid pointer: 0x0000000002096940 ***\"\r\n[06-Feb-2016 21:23:33] WARNING: [pool www] child 28413 exited on signal 6 (SIGABRT) after 340.021992 seconds from start\r\n[06-Feb-2016 21:23:33] NOTICE: [pool www] child 28418 started\r\n[06-Feb-2016 21:23:35] WARNING: [pool www] child 28389 said into stderr: \"*** Error in `php-fpm: pool www': free(): invalid size: 0x000000000207d8d0 ***\"\r\n[06-Feb-2016 21:23:35] WARNING: [pool www] child 28389 exited on signal 6 (SIGABRT) after 445.999018 seconds from start\r\n[06-Feb-2016 21:23:35] NOTICE: [pool www] child 28419 started\r\n[06-Feb-2016 21:23:37] WARNING: [pool www] child 28385 said into stderr: \"*** Error in `php-fpm: pool www': munmap_chunk(): invalid pointer: 0x00000000020acf30 ***\"\r\n[06-Feb-2016 21:23:37] WARNING: [pool www] child 28385 exited on signal 6 (SIGABRT) after 448.212837 seconds from start\r\n[06-Feb-2016 21:23:37] NOTICE: [pool www] child 28420 started\r\n[06-Feb-2016 21:23:39] WARNING: [pool www] child 28416 said into stderr: \"*** Error in `php-fpm: pool www': corrupted double-linked list: 0x0000000002065b60 ***\"\r\n[06-Feb-2016 21:23:39] WARNING: [pool www] child 28416 exited on signal 6 (SIGABRT) after 76.166465 seconds from start\r\n[06-Feb-2016 21:23:39] NOTICE: [pool www] child 28421 started\r\n[06-Feb-2016 21:23:41] WARNING: [pool www] child 28381 said into stderr: \"*** Error in `php-fpm: pool www': corrupted double-linked list: 0x0000000002093df0 ***\"\r\n[06-Feb-2016 21:23:41] WARNING: [pool www] child 28381 exited on signal 6 (SIGABRT) after 452.127824 seconds from start\r\n[06-Feb-2016 21:23:41] NOTICE: [pool www] child 28422 started\r\n[06-Feb-2016 21:23:42] WARNING: [pool www] child 28418 said into stderr: \"*** Error in `php-fpm: pool www': malloc(): smallbin double linked list corrupted: 0x00000000020820c0 ***\"\r\n[06-Feb-2016 21:23:42] WARNING: [pool www] child 28418 exited on signal 6 (SIGABRT) after 9.080129 seconds from start\r\n[06-Feb-2016 21:23:42] NOTICE: [pool www] child 28423 started\r\n[06-Feb-2016 21:23:43] WARNING: [pool www] child 28382 said into stderr: \"*** Error in `php-fpm: pool www': free(): invalid size: 0x0000000002094e00 ***\"\r\n[06-Feb-2016 21:23:43] WARNING: [pool www] child 28382 exited on signal 6 (SIGABRT) after 454.518192 seconds from start\r\n[06-Feb-2016 21:23:43] NOTICE: [pool www] child 28424 started\r\n[06-Feb-2016 21:23:45] WARNING: [pool www] child 28419 said into stderr: \"*** Error in `php-fpm: pool www': malloc(): smallbin double linked list corrupted: 0x00000000020820c0 ***\"\r\n[06-Feb-2016 21:23:45] WARNING: [pool www] child 28419 exited on signal 6 (SIGABRT) after 10.289139 seconds from start\r\n[06-Feb-2016 21:23:45] NOTICE: [pool www] child 28425 started\r\n[06-Feb-2016 21:23:49] WARNING: [pool www] child 28420 said into stderr: \"*** Error in `php-fpm: pool www': malloc(): smallbin double linked list corrupted: 0x00000000020820e0 ***\"\r\n[06-Feb-2016 21:23:49] WARNING: [pool www] child 28420 exited on signal 6 (SIGABRT) after 11.762530 seconds from start\r\n[06-Feb-2016 21:23:49] NOTICE: [pool www] child 28426 started\r\n```\r\n\r\nI'm running PHP `7.0.3-1+deb.sury.org~vivid+1` on Ubuntu 15.04: `Linux box 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux`"},"comment":{"url":"https://api.github.com/repos/oerdnj/deb.sury.org/issues/comments/204086469","html_url":"https://github.com/oerdnj/deb.sury.org/issues/247#issuecomment-204086469","issue_url":"https://api.github.com/repos/oerdnj/deb.sury.org/issues/247","id":204086469,"user":{"login":"thasmo","id":184284,"avatar_url":"https://avatars.githubusercontent.com/u/184284?v=3","gravatar_id":"","url":"https://api.github.com/users/thasmo","html_url":"https://github.com/thasmo","followers_url":"https://api.github.com/users/thasmo/followers","following_url":"https://api.github.com/users/thasmo/following{/other_user}","gists_url":"https://api.github.com/users/thasmo/gists{/gist_id}","starred_url":"https://api.github.com/users/thasmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thasmo/subscriptions","organizations_url":"https://api.github.com/users/thasmo/orgs","repos_url":"https://api.github.com/users/thasmo/repos","events_url":"https://api.github.com/users/thasmo/events{/privacy}","received_events_url":"https://api.github.com/users/thasmo/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T19:18:13Z","updated_at":"2016-03-31T19:18:13Z","body":"Ye, it says it has been dumped, @oerdnj:\r\n```sh\r\n`(gdb) run --nodaemonize\r\nStarting program: /usr/sbin/php-fpm7.0 --nodaemonize\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\r\n[31-Mar-2016 21:10:24] NOTICE: fpm is running, pid 1941\r\n[31-Mar-2016 21:10:24] NOTICE: ready to handle connections\r\n[31-Mar-2016 21:10:24] NOTICE: systemd monitor interval set to 10000ms\r\n*** Error in `php-fpm: pool www': free(): invalid pointer: 0x00007ffff7ee5706 ***\r\n[31-Mar-2016 21:10:37] WARNING: [pool www] child 1945 exited on signal 6 (SIGABRT - core dumped) after 12.716053 seconds from start\r\n[31-Mar-2016 21:10:37] NOTICE: [pool www] child 1947 started\r\n```\r\nTo enable the coredump I followed [this guide](https://ma.ttias.be/generate-php-core-dumps-segfaults-php-fpm/), using `echo '/tmp/coredump-%e.%p' > /proc/sys/kernel/core_pattern`."}}