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: -
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: fen_liuzhi at 163 dot com Assigned:
Status: Open Package: CGI/CLI related
PHP Version: 7.1.13 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
34 + 5 = ?
Subscribe to this entry?

 
 [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

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Feb 18 21:01:28 2020 UTC