Bug #70398 [Asn]: SIGSEGV, Segmentation fault zend_ast_destroy_ex

From: Date: Wed, 02 Sep 2015 15:15:29 +0000
Subject: Bug #70398 [Asn]: SIGSEGV, Segmentation fault zend_ast_destroy_ex
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195708@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70398&edit=1 ID: 70398 Updated by: laruence@php.net Reported by: opitz dot alexander at googlemail dot com Summary: SIGSEGV, Segmentation fault zend_ast_destroy_ex Status: Assigned Type: Bug Package: *General Issues Operating System: Linux PHP Version: 7.0.0RC1 Assigned To: laruence Block user comment: N Private report: N New Comment: it can not work, since resource dtor may call some user function that uses constants Previous Comments: ------------------------------------------------------------------------ [2015-09-02 12:48:19] bwoebi@php.net Related To: Bug #70399 ------------------------------------------------------------------------ [2015-09-02 12:33:21] bwoebi@php.net ./sapi/cli/php -r 'define("TEST", fopen("php://temp", "w+b"));' gives me a few invalid reads with valgrind. The fix is actually simple: In shutdown_executor(), move the call to clean_non_persistent_constants(); a few lines up above zend_close_rsrc_list(&EG(regular_list)); Though, I'm not sure if that might have side-effects [AFAIK, misordering in shutdown often causes subtle breaks] … so, can you please verify, Xinchen? ------------------------------------------------------------------------ [2015-09-02 09:26:12] laruence@php.net @ opitz , I asked bob to look into this one, and he already can reproduce it. but maybe fixed tomorrow. let's wait and see, thanks :) ------------------------------------------------------------------------ [2015-09-02 06:33:22] opitz dot alexander at googlemail dot com Hi laruence, is http://getcomposer.org/ or https://packagist.org/ blocked? I could provide a complete package from my master system, if this helps. ------------------------------------------------------------------------ [2015-09-02 01:49:48] laruence@php.net hmm, it's sad, composer is blocked at my country (china)... :< ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=70398 -- Edit this bug report at https://bugs.php.net/bug.php?id=70398&edit=1

« previous php.bugs (#195708) next »