Bug #77455 [NEW]: After reload [USR2] fpm segfaults because pipe is closed

From: Date: Mon, 14 Jan 2019 08:43:33 +0000
Subject: Bug #77455 [NEW]: After reload [USR2] fpm segfaults because pipe is closed
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218924@lists.php.net to get a copy of this message
From: sjon at hortensius dot net Operating system: archlinux PHP version: 7.3.1 Package: FPM related Bug Type: Bug Bug description:After reload [USR2] fpm segfaults because pipe is closed Description: ------------ Roughly 5 seconds after fpm was reloaded, it segfaulted. Luckily this was a debug-build so I have a stacktrace 03:43:38] NOTICE: Reloading in progress ... 03:43:38] ERROR: unable to read what child say: Bad file descriptor (9) 03:43:38] ERROR: unable to read what child say: Bad file descriptor (9) ** 03:43:43 php-fpm.service: Main process exited, code=dumped, status=11/SEGV ** 03:43:44] NOTICE: fpm is running, pid 18379 Actual result: -------------- #0 0x000056014cf7594c in zlog_stream_set_msg_suffix (stream=0x100, suffix=0x0, final_suffix=0x56014d6dbe7a ", pipe is closed") at sapi/fpm/fpm/zlog.c:602 #1 0x000056014cf71ec1 in fpm_stdio_child_said (ev=0x56014fad0a00, which=2, arg=0x56014fad0990) at sapi/fpm/fpm/fpm_stdio.c:199 #2 0x000056014cf63396 in fpm_event_fire (ev=0x56014fad0a00) at sapi/fpm/fpm/fpm_events.c:465 #3 0x000056014cf77308 in fpm_event_epoll_wait (queue=0x56014fb28470, timeout=770) at sapi/fpm/fpm/events/epoll.c:145 #4 0x000056014cf630c0 in fpm_event_loop (err=0) at sapi/fpm/fpm/fpm_events.c:409 #5 0x000056014cf5b28e in fpm_run (max_requests=0x7ffc36b5f898) at sapi/fpm/fpm/fpm.c:113 #6 0x000056014cf6925c in main (argc=4, argv=0x7ffc36b5fe28) at sapi/fpm/fpm/fpm_main.c:1864 -- Edit bug report at https://bugs.php.net/bug.php?id=77455&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77455&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77455&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77455&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77455&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77455&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77455&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77455&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77455&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77455&r=support Expected behavior: https://bugs.php.net/fix.php?id=77455&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77455&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77455&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77455&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77455&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77455&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77455&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77455&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77455&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77455&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77455&r=mysqlcfg

« previous php.bugs (#218924) next »