|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73969 segfault on debug_print_backtrace
Submitted: 2017-01-21 19:30 UTC Modified: 2017-01-22 13:49 UTC
From: ryan dot brothers at gmail dot com Assigned: tpunt (profile)
Status: Closed Package: Reproducible crash
PHP Version: 7.1.1 OS: Linux
Private report: No CVE-ID: None
 [2017-01-21 19:30 UTC] ryan dot brothers at gmail dot com
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:

trait c2
	public static function f1()


class c1
	use c2
		c2::f1 as f2;

	public static function go()
		return require('2.php');





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


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-22 13:49 UTC]
-Assigned To: +Assigned To: tpunt
 [2017-01-22 14:44 UTC] andrew dot nester dot dev at gmail dot com
Hi! I've just added pull request on GitHub which fixes this problem.
 [2017-01-22 16:12 UTC]
Automatic comment on behalf of
Log: Fixed #73969 - Fixed segmentation fault when debug_print_backtrace called
 [2017-01-22 16:12 UTC]
-Status: Assigned +Status: Closed
 [2017-02-16 21:50 UTC] homepage186 at gmail dot com
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 09:01:30 2024 UTC