Comment 4 for bug 1006738

Revision history for this message
Alexander Pyhalov (alp-rsu) wrote : Re: [Bug 1006738] Re: php5-fpm segfaults with error 4 in libc-2.15.so

It seems that strstr gets NULL as its first argument
(SG(request_info).query_string)
It seems that the following is incorrect in sapi/fpm/fpm/fpm_status.c:

  /* full status ? */
full = SG(request_info).request_uri &&
strstr(SG(request_info).query_string, "full");
short_syntax = short_post = NULL;
full_separator = full_pre = full_syntax = full_post = NULL;
encode = 0;

it should be
  /* full status ? */
full = SG(request_info).query_string &&
strstr(SG(request_info).query_string, "full");
short_syntax = short_post = NULL;
full_separator = full_pre = full_syntax = full_post = NULL;
encode = 0;

The bug is present also in upstream php git. Attached patch should
solve the problem.

On 05/31/2012 20:10, Scott Moser wrote:
> ** Changed in: php5 (Ubuntu)
> Status: Incomplete => New
>

--
Best regards,
Alexander Pyhalov,
system administrator of Computer Center of Southern Federal University