php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71192 Segfault on Shutdown
Submitted: 2015-12-22 04:58 UTC Modified: 2016-01-03 04:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: michael at currinda dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 7.0.1 OS: Ubuntu Precise
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-12-22 04:58 UTC] michael at currinda dot com
Description:
------------
Segfault on shutdown, not sure what script is causing this but getting reports of unclean exits from browsers.

Compiled with:

'./configure' \
'--prefix=/usr/local' \
'--with-libdir=/lib/x86_64-linux-gnu' \
'--with-mysqli' \
'--enable-fpm' \
'--with-readline' \
'--with-pdo_mysql' \
'--with-curl' \
'--enable-pcntl' \
'--enable-mbstring' \
'--enable-debug' \
'--with-zlib' \
'--with-pdo' \
'--enable-so' \
'--with-mcrypt' \
'--with-gd' \
'--enable-gd-native-ttf' \
'--with-openssl' \
'--with-png-dir=/usr' \
'--with-jpeg-dir=/usr' \
'--with-freetype-dir=usr' \
'--with-ttf' \
'--with-exif' \
'--enable-bcmath' \

also has PECL YAML extension installed.



Expected result:
----------------
Clean shutdown

Actual result:
--------------
#0  0x000000000096df76 in zend_mm_find_leaks_small (p=0x7f562a200000, i=509, j=38, leak=0x7fffa6a43b40)
    at /home/ubuntu/php-7.0.1/Zend/zend_alloc.c:1996
#1  0x000000000096e0e3 in zend_mm_find_leaks (heap=0x7f562b800040, p=0x7f562a200000, i=509, leak=0x7fffa6a43b40)
    at /home/ubuntu/php-7.0.1/Zend/zend_alloc.c:2024
#2  0x000000000096e5ca in zend_mm_check_leaks (heap=0x7f562b800040) at /home/ubuntu/php-7.0.1/Zend/zend_alloc.c:2128
#3  0x000000000096e88a in zend_mm_shutdown (heap=0x7f562b800040, full=0, silent=0) at /home/ubuntu/php-7.0.1/Zend/zend_alloc.c:2193
#4  0x000000000096f6f9 in shutdown_memory_manager (silent=0, full_shutdown=0) at /home/ubuntu/php-7.0.1/Zend/zend_alloc.c:2629
#5  0x000000000090e8a5 in php_request_shutdown (dummy=0x0) at /home/ubuntu/php-7.0.1/main/main.c:1833
#6  0x0000000000a71239 in main (argc=6, argv=0x7fffa6a442c8) at /home/ubuntu/php-7.0.1/sapi/fpm/fpm/fpm_main.c:1972

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-22 05:44 UTC] seander@php.net
Hi michael!

Do you get this segfault as well with YAML not installed? What version of YAML do you have installed. Is there a specific script that is causing this, if so are you able to post it?

thanks
 [2015-12-22 07:48 UTC] michael at currinda dot com
Unfortunately I wouldn't be able to test it without YAML, this is on a live server. There doesn't seem to be a huge amount of rhyme or reason to the actual scripts that are crashing it. I've had a case where the same script, with slightly different database inputs ie. a different record is crashing it.

I've also downloaded the database to my local machine, run the script on local (mac running same version, though not compiled) and it hasn't crashed.
 [2015-12-22 07:55 UTC] laruence@php.net
try with:

USE_ZEND_ALLOC=0 ZEND_DONT_UNLOAD_MODULES=1 valgrind php7 yourscript.php

it will shows where the problem came from, and I guess it probably relates to YAML.
 [2015-12-22 07:55 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2016-01-03 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 11:01:30 2024 UTC