New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 739762 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows
Pri: 1
Type: Bug-Regression



Sign in to add a comment

infinite loop until memory allocation in v8 crashes the page

Reported by antoine....@digdash.biz, Jul 6 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 OPR/46.0.2597.39

Steps to reproduce the problem:
1. go to the following web page:
http://tdemo.digdash.com/bugcr59/template/svg/test/test-template.html?template=bar
2.Play with the combo box called "Département" (alternate quickly between "Tous" and another value

3. The page continues to react correctly but if you look at the task manager one CPU is fully used and memory is increasing fast

What is the expected behavior?
This should not consume CPU and memory ressources

What went wrong?
infinite loop until memory allocation in v8 crashes the page
After looking at chrome://tracing it seems that the memory allocated comes from V8

Did this work before? Yes Previous stable version of chrome

Chrome version: 59.0.3071.115  Channel: stable
OS Version: 10.0
Flash Version: 

The problem exists in beta channel (60.0.3112.50)
 

Comment 1 by woxxom@gmail.com, Jul 6 2017

Repro note: to ensure the bug appears you need to repeat step 2 about 10 times.

Bisect: 464871 (good) - 464872 (bad), 60.0.3073.0
https://chromium.googlesource.com/chromium/src/+log/ac392218..f18a2124?pretty=fuller
The only CL is r464872 "Update V8 to version 6.0.3"
No idea what to suspect in this V8 log though as it's too big.

The bug is still present in Chrome 61 canary.
Cc: brajkumar@chromium.org hablich@chromium.org
Components: Blink>JavaScript
Labels: M-60 ReleaseBlock-Stable
Status: Untriaged (was: Unconfirmed)
As per the bisect provided in comment #1 adding @hablich for more updates on this issue. 

Note: Adding RB-Stable for M-60 please feel free to edit if this is not the case.

Thanks!
Cc: mlippautz@chromium.org petermarshall@chromium.org
Status: Available (was: Untriaged)
on-duty memory sheriffs, please investigate.
Owner: petermarshall@chromium.org
Status: Assigned (was: Available)
Cc: jarin@chromium.org
Components: -Blink>JavaScript Blink>JavaScript>Compiler
Labels: OS-Linux
Owner: bmeu...@chromium.org
Benedikt, could you have a look?

Reliably bisected to
  [385734bf11d3c4529cc30c553eef8c3e0d69afad] [turbofan] Let ChangeFloat64ToTagged canonicalize to Smi if possible.

V8's malloc-ed memory is rising. Trace is attached.

Last line --trace-turbo shows:
  Begin compiling method BarChart.draw using Turbofan

Could not reproduce on chrome ToT 3eb6363c61b669b65ff723f113f5190eb54dc4e4. Maybe some backmerge missing?
trace_Mon_Jul_10_2017_4.33.49_PM.json.gz
2.2 MB Download
Attached: --trace-turbo-graph log
Chromium rev: f18a21249a7387a73cbc1c4a7357d5f4971ce42f
turbo.log
12.2 MB View Download
Cc: bmeu...@chromium.org
Owner: mythria@chromium.org
Looks like e04f33ad6f563f61ae1613e71c2c33e7f0451a03 fixes the problem, which corresponds to the fact that it hangs on LateOptimizationPhase. Mythri can you take a look?
Yes, that fixes it. BarChart.draw is a very large function, and there are lot of revisits which increases the memory in LateOptimizationPhase. The behaviour is same as what I saw in this bug:  crbug.com/725664 . I verified that if I revert that change I can reproduce the problem. 
I guess this is fixed now.
Benedikit, Is there anything else you wanted me to look at?
Did all the patches make it into a backmerge? #0 mentions that this also happens on beta.
Labels: Merge-Request-60
hablich@ could you approve e04f33ad6f563f61ae1613e71c2c33e7f0451a03 for merge to M60
Project Member

Comment 12 by sheriffbot@chromium.org, Jul 12 2017

Labels: -Merge-Request-60 Hotlist-Merge-Review Merge-Review-60
This bug requires manual review: We are only 12 days from stable.
Please contact the milestone owner if you have questions.
Owners: amineer@(Android), cmasso@(iOS), josafat@(ChromeOS), bustamante@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Pri-2 -Merge-Review-60 Merge-Approved-60 Pri-1
mythria@ perfect, thanks!
Status: Fixed (was: Assigned)
I forgot to update the bug id in the merge. This is the merge commit: 54d17081353eff895fa15de06be893b9f042a78c
Labels: -Merge-Approved-60 Merge-Merged-60

Sign in to add a comment