Bug 720334

Summary: Firefox 4 Hangs whole System if PHP print_r(huge array with recursion)
Product: [Fedora] Fedora Reporter: Radamanf <radamanf>
Component: firefoxAssignee: Martin Stransky <stransky>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: dennis, gecko-bugs-nobody, notting, stransky
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-26 14:02:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Hang during files copy none

Description Radamanf 2011-07-11 12:29:52 UTC
Description of problem:


Version-Release number of selected component (if applicable):
Apache 2.2, PHP 5.3.6, Symfony 1.4.6, with all dependencies (latest packages)

How reproducible:
Every time

Steps to Reproduce:
1. Just to print_r(huge array) in Symfony it's very easy by using DoctrineQuery object which selects list of records, and instead of printing it as array just print the object.
By the way previous version of FF and Chrome do all fine without any problems.
2. The problem may seen too specific, it is. But the MOST ANNOYING in this situation is THAT SOME WRONG WORKING SOFTRARE CAN DAMAGE WHOLE SYSTEM!



  
Actual results:
System hangs up, sometimes it can be cured, by using separate console CTRL+ALT+F2 sometimes even this didn't help and need complete switch off.

Expected results:
Should damage only himself, FF in this case should be down but system should continue to work properly and respond to user actions, so user can kill this app. with no hassle.

Additional info:
I imagine you need a lots of additional info. If you can send me how to collect it, I'll send it to you.

Comment 1 Radamanf 2011-07-11 12:40:38 UTC
Severity should be: High

Comment 2 Radamanf 2011-07-12 08:42:35 UTC
OK, this is not GOOD thing Bill Nottingham!

I've created this bug specially for Fedora Linux to fix it, not for Firefox developers!

Explain: Bug is exploiting vulnerability of Linux system and do it unstable!!!
This should be fixed FIRST OF ALL ON LINUX LEVEL then on Firefox!!! If you will ignore such bugs you will never build a stable, solid system!!!

For me this bug is critical for securing Linux from other software components working on top. Components (software as FireFox, etc.) should never be able to crash the system SUCH way!

This is very important, very serious and easy enough to reproduce!
FF now becoming really unstable because of speed which it's building it's new versions, but this is another story.


I have reported the bug on Linux hoping you can understand the potential insecurity from Linux side allowing software to crash whole system.

Comment 3 Radamanf 2011-07-12 08:58:23 UTC
I cannot edit this bug but:

Bug should be assigned to Fedora developers not to Firefox
Bug is critical for security and stability of the Linux system
Bug severity should be HIGH

Firefox should not do any changes until it will be fixed on Linux.

Expected crash should be: Crash in FireFox, the rest of the system should work smoothly.

Comment 4 Christopher Aillon 2011-07-12 13:46:28 UTC
Radamanf, if the bug is here, it is still assigned to Fedora developers.  The Firefox bugzilla is at https://bugzilla.mozilla.org/ not here.

Changing the component just means that the bug is assigned to the Fedora developers who specialize in that area, in this case, Firefox.

However, Fedora ships Firefox but in Fedora 14, it is version 3.6.x; Fedora does not ship Firefox 4 in Fedora 14.  Where are you getting this from?

Comment 5 Radamanf 2011-07-12 16:28:20 UTC
Hi Bill,

I'm sorry for my impolite behaviour, I though you just throw me away.

I've downloaded latest version from mozilla.com at the time where it was issued, I've tried to downgrade FF to 3.6.x original but unsuccessfully.

Anyway I try to insist that this problem is not a FF only.

Just now I've try to copy 4.9GB of data (about 800k of files) and on 4.2Gb copying process hangs, but I still can perform some operations but very slowly. Should wait 2-3 min to get respond. Then I check htop and my memory was overflown. I try to kill as many porocess as I can, then eventually after killing about everything except console and nautilus eventually wait for another few min and copy process disappeared, presumably all files are copied. 

So if it's not enough RAM then system works ridiculously slow.
And for some reason it eats a lot of RAM too. (memory leaks)

I have a screen-shot.

Comment 6 Radamanf 2011-07-12 16:29:21 UTC
Created attachment 512469 [details]
Hang during files copy

Comment 7 Martin Stransky 2012-05-03 14:54:56 UTC
Reporter, do you still see this bug, in the latest Firefox 12? If so, please reopen the bug.

Comment 8 Radamanf 2012-07-26 14:02:22 UTC
Fixed in newver versions. Thanks.