php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70749 try...catch with set_error_handler throttle all CPU cores overheat - freeze O/S
Submitted: 2015-10-20 06:48 UTC Modified: 2015-10-31 04:15 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: ryan dot jentzsch at gmail dot com Assigned:
Status: Closed Package: Performance problem
PHP Version: 7.0.0RC5 OS: Linux Mint 17.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ryan dot jentzsch at gmail dot com
New email:
PHP Version: OS:

 

 [2015-10-20 06:48 UTC] ryan dot jentzsch at gmail dot com
Description:
------------
PHP 7 RC5
If I run the referenced script using PHP 5.6.14 there are no problems.
Running this using the PHP 7 engine however results in a number of very bad things:

- My laptop fans go crazy.
- My 4 core CPUs are maxed.
- My laptop starts to overheat.
- The O/S either freezes or the kernel panics.

Linux Mint 17.2
Intel 64-bit

Test script:
---------------
Script to produce problem.
https://www.dropbox.com/s/uqmccqm9ts0xgrd/test.php?dl=0

Configuration:
https://www.dropbox.com/s/jguszkigzxnce47/config.txt?dl=0

Expected result:
----------------
In PHP 5.6.14 I see this (I would expect the same from PHP 7):
Caught exception: YOLO
Process finished with exit code 0


Actual result:
--------------
- My laptop fans go crazy.
- My 4 core CPUs are maxed.
- My laptop starts to overheat.
- The O/S either freezes or the kernel panics.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-10-21 10:43 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2015-10-21 10:43 UTC] ab@php.net
Do you have xdebug, uopz or other similar extension activated? If so, please try to deactiate it and retry the script.

Thanks.
 [2015-10-22 18:00 UTC] ryan dot jentzsch at gmail dot com
-Status: Feedback +Status: Closed
 [2015-10-22 18:00 UTC] ryan dot jentzsch at gmail dot com
appears to be an XDEBUG issue. 
Closing.
 [2015-10-22 18:13 UTC] derick@php.net
-Status: Closed +Status: Re-Opened
 [2015-10-22 18:13 UTC] derick@php.net
Actually, it could be: http://thread.gmane.org/gmane.comp.php.devel/101724 -- would you mind testing with the latest of the PHP-7.0 branch of GitHub?
 [2015-10-27 02:11 UTC] laruence@php.net
-Status: Re-Opened +Status: Feedback
 [2015-10-27 08:05 UTC] ryan dot jentzsch at gmail dot com
I am the OP. I plan on trying this again when RC6 is released. Hopefully this will be fixed in that release.
 [2015-10-31 04:15 UTC] ryan dot jentzsch at gmail dot com
-Status: Feedback +Status: Closed
 [2015-10-31 04:15 UTC] ryan dot jentzsch at gmail dot com
The sample script no longer maxes out my laptop CPU and now behaves as expected with the 7.0.0RC6 release. Closing.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 11:01:37 2025 UTC