Bug #73969 [Asn->Csd]: segfault on debug_print_backtrace

From: Date: Sun, 22 Jan 2017 16:12:55 +0000
Subject: Bug #73969 [Asn->Csd]: segfault on debug_print_backtrace
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206860@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
 Updated by:         krakjoe@php.net
 Reported by:        ryan dot brothers at gmail dot com
 Summary:            segfault on debug_print_backtrace
-Status:             Assigned
+Status:             Closed
 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:

Automatic comment on behalf of andrew.nester.dev@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=6f912f7c045ae723d01a24504bf0ae0711fd8a4f
Log: Fixed #73969 - Fixed segmentation fault when debug_print_backtrace called


Previous Comments:
------------------------------------------------------------------------
[2017-01-22 14:44:32] andrew dot nester dot dev at gmail dot com

Hi! I've just added pull request on GitHub which fixes this problem.

------------------------------------------------------------------------
[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


Thread (4 messages)

« previous php.bugs (#206860) next »