php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75815 Segmentation fault
Submitted: 2018-01-15 03:01 UTC Modified: 2020-11-15 04:22 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: fen_liuzhi at 163 dot com Assigned: cmb (profile)
Status: No Feedback Package: CGI/CLI related
PHP Version: 7.1.13 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fen_liuzhi at 163 dot com
New email:
PHP Version: OS:

 

 [2018-01-15 03:01 UTC] fen_liuzhi at 163 dot com
Description:
------------
running php 7(7.1.13) using php-cgi on lighttpd causes segmentation fault at zend_ast.h.

the segmentation fault is:
php-cgi[8722]: unhandled signal 11 at 68700050 nip 1029b9c8 lr 1029e4c0 code 30

gdb info is:
(gdb) list *0x1029b9c8
0x1029b9c8 is in zend_compile_expr (Zend/zend_sst.h:239).
234  static zend_always_inline uint32_t zend_ast_get_num_children(zend_ast *ast) {
235	ZEND_ASSERT(!zend_ast_is_list(ast));
236	return ast->kind >> ZEND_AST_NUM_CHILDREN_SHIFT;
237 }
238  static zend_always_inline uint32_t zend_ast_get_lineno(zend_ast *ast) {
239	if (ast->kind == ZEND_AST_ZVAL) {
240		zval *zv = zend_ast_get_zval(ast);
241		return zv->u2.lineno;
242	} else {
243		return ast->lineno;
244	}

php 5.6.33 running ok.

Test script:
---------------
<? phpinfo(); ?>

Expected result:
----------------
show phpinfo page

Actual result:
--------------
500 - Internal Server Error

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-11-06 17:39 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-11-06 17:39 UTC] cmb@php.net
Does this still happen with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2020-11-15 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: Fri Apr 19 05:01:29 2024 UTC