Bug #77455 [Opn->Dup]: After reload [USR2] fpm segfaults because pipe is closed

From: Date: Mon, 14 Jan 2019 09:05:09 +0000
Subject: Bug #77455 [Opn->Dup]: After reload [USR2] fpm segfaults because pipe is closed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218926@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77455&edit=1 ID: 77455 Updated by: nikic@php.net Reported by: sjon at hortensius dot net Summary: After reload [USR2] fpm segfaults because pipe is closed -Status: Open +Status: Duplicate Type: Bug Package: FPM related Operating System: archlinux PHP Version: 7.3.1 Block user comment: N Private report: N New Comment: Based on the stack trace, this looks like the same issue as bug #77430. Previous Comments: ------------------------------------------------------------------------ [2019-01-14 08:43:33] sjon at hortensius dot net 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 this bug report at https://bugs.php.net/bug.php?id=77455&edit=1

« previous php.bugs (#218926) next »