php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77455 After reload [USR2] fpm segfaults because pipe is closed
Submitted: 2019-01-14 08:43 UTC Modified: 2019-01-15 20:35 UTC
From: sjon at hortensius dot net Assigned:
Status: Duplicate Package: FPM related
PHP Version: 7.3.1 OS: archlinux
Private report: No CVE-ID: None
 [2019-01-14 08:43 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-14 09:05 UTC] nikic@php.net
-Status: Open +Status: Duplicate
 [2019-01-14 09:05 UTC] nikic@php.net
Based on the stack trace, this looks like the same issue as bug #77430.
 [2019-01-15 20:35 UTC] bukka@php.net
I have added some info and proposed patch to https://bugs.php.net/bug.php?id=77430 so if you are able to test it, that would be great!
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Aug 19 13:01:27 2019 UTC