Bug #73969 [NEW]: segfault on debug_print_backtrace

From: Date: Sat, 21 Jan 2017 19:30:50 +0000
Subject: Bug #73969 [NEW]: segfault on debug_print_backtrace
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206824@lists.php.net to get a copy of this message
From: ryan dot brothers at gmail dot com Operating system: Linux PHP version: 7.1.1 Package: Reproducible crash Bug Type: Bug Bug description:segfault on debug_print_backtrace 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 bug report at https://bugs.php.net/bug.php?id=73969&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73969&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73969&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73969&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73969&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73969&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73969&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73969&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73969&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73969&r=support Expected behavior: https://bugs.php.net/fix.php?id=73969&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73969&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73969&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73969&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73969&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73969&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73969&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73969&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73969&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73969&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73969&r=mysqlcfg

« previous php.bugs (#206824) next »