Bug #73969 [Com]: segfault on debug_print_backtrace

From: Date: Sun, 22 Jan 2017 14:44:32 +0000
Subject: Bug #73969 [Com]: segfault on debug_print_backtrace
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206853@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73969&edit=1 ID: 73969 Comment by: andrew dot nester dot dev at gmail dot com Reported by: ryan dot brothers at gmail dot com Summary: segfault on debug_print_backtrace Status: Assigned Type: Bug Package: Reproducible crash Operating System: Linux PHP Version: 7.1.1 Assigned To: tpunt Block user comment: N Private report: N New Comment: Hi! I've just added pull request on GitHub which fixes this problem. Previous Comments: ------------------------------------------------------------------------ [2017-01-21 19:30:43] ryan dot brothers at gmail dot com Description: ------------ When running the below script on PHP 7.1.1, a segmentation fault occurs when calling debug_print_backtrace(). There are 2 files below: 1.php and 2.php To run it, run: php 1.php It seems to be related to the method aliasing for the trait for c2::f1 as f2. If that line is removed, the script runs cleanly. Test script: --------------- 1.php: <?php trait c2 { public static function f1() { } } class c1 { use c2 { c2::f1 as f2; } public static function go() { return require('2.php'); } } c1::go(); ======= 2.php: <?php debug_print_backtrace(); Expected result: ---------------- #0 require() called at [/tmp/1.php:19] #1 c1::go() called at [/tmp/1.php:23] Actual result: -------------- #0 c1::Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73969&edit=1

« previous php.bugs (#206853) next »