php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71191 Segfault on Shutdown
Submitted: 2015-12-22 04:48 UTC Modified: 2016-01-03 04:22 UTC
From: michael at currinda dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 7.0.1 OS: UBUNTU
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: michael at currinda dot com
New email:
PHP Version: OS:

 

 [2015-12-22 04:48 UTC] michael at currinda dot com
Description:
------------
PHP 7.0.1 Compiled

The process segfaults at the end of the process. I'm able to recompile and test if needed.


#0  0x00000000009ec9b2 in zend_objects_store_call_destructors (objects=0x1386190 <executor_globals+816>)
    at /home/ubuntu/php-7.0.1/Zend/zend_objects_API.c:54
#1  0x0000000000988dc0 in shutdown_destructors () at /home/ubuntu/php-7.0.1/Zend/zend_execute_API.c:242
#2  0x00000000009a11ca in zend_call_destructors () at /home/ubuntu/php-7.0.1/Zend/zend.c:952
#3  0x000000000090e4d2 in php_request_shutdown (dummy=0x0) at /home/ubuntu/php-7.0.1/main/main.c:1761
#4  0x0000000000a71239 in main (argc=6, argv=0x7fffa6a442c8) at /home/ubuntu/php-7.0.1/sapi/fpm/fpm/fpm_main.c:1972


'./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' \
"$@"



Test script:
---------------
This happens on similar scripts, but isn't reproducible on my Mac build.`

Expected result:
----------------
Non segfault

Actual result:
--------------
Segfault

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-22 04:48 UTC] michael at currinda dot com
I've also got YAML pecl installed.
 [2015-12-22 07:57 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2015-12-22 07:57 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.
 [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: Sat May 04 07:01:31 2024 UTC