Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1606)

Issue 18293007: Enable IO before reading /proc/self/maps. (Closed)

Created:
7 years, 5 months ago by Joao da Silva
Modified:
7 years, 5 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Enable IO before reading /proc/self/maps. This prevents a recursive loop that causes a stack overflow when printing stack traces on android from the UI thread. BUG=258530 R=mark@chromium.org, scherkus@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210896

Patch Set 1 #

Patch Set 2 : added comment #

Total comments: 2

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M base/debug/stack_trace_android.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Joao da Silva
An android build today was repeatedly hitting a NOTREACHED on webui_impl.cc (different issue), and this ...
7 years, 5 months ago (2013-07-10 09:55:01 UTC) #1
Mark Mentovai
I think it’s useful to put a comment at the point of use to explain ...
7 years, 5 months ago (2013-07-10 15:04:35 UTC) #2
scherkus (not reviewing)
+1 to comment change BUG= to point to 258530 FYI we may end up removing ...
7 years, 5 months ago (2013-07-10 15:18:19 UTC) #3
Joao da Silva
Added a comment and updated the BUG line, PTAL. Avoiding the need for this altogether ...
7 years, 5 months ago (2013-07-10 15:26:35 UTC) #4
scherkus (not reviewing)
https://codereview.chromium.org/18293007/diff/6001/base/debug/stack_trace_android.cc File base/debug/stack_trace_android.cc (right): https://codereview.chromium.org/18293007/diff/6001/base/debug/stack_trace_android.cc#newcode108 base/debug/stack_trace_android.cc:108: if (!ReadProcMaps(&proc_maps)) { Q: thoughts on putting the ScopedAllowIO ...
7 years, 5 months ago (2013-07-10 15:35:30 UTC) #5
Joao da Silva
https://codereview.chromium.org/18293007/diff/6001/base/debug/stack_trace_android.cc File base/debug/stack_trace_android.cc (right): https://codereview.chromium.org/18293007/diff/6001/base/debug/stack_trace_android.cc#newcode108 base/debug/stack_trace_android.cc:108: if (!ReadProcMaps(&proc_maps)) { On 2013/07/10 15:35:30, scherkus wrote: > ...
7 years, 5 months ago (2013-07-10 15:36:44 UTC) #6
scherkus (not reviewing)
On 2013/07/10 15:36:44, Joao da Silva wrote: > https://codereview.chromium.org/18293007/diff/6001/base/debug/stack_trace_android.cc > File base/debug/stack_trace_android.cc (right): > > ...
7 years, 5 months ago (2013-07-10 15:43:11 UTC) #7
Mark Mentovai
I figured it was intentionally placed in OutputToStream because that’s the one that you’re definitely ...
7 years, 5 months ago (2013-07-10 15:43:47 UTC) #8
scherkus (not reviewing)
On 2013/07/10 15:43:47, Mark Mentovai wrote: > I figured it was intentionally placed in OutputToStream ...
7 years, 5 months ago (2013-07-10 15:49:37 UTC) #9
Joao da Silva
I'd leave as is then, with the understanding that it's meant to be removed later. ...
7 years, 5 months ago (2013-07-10 15:52:27 UTC) #10
Mark Mentovai
LGTM
7 years, 5 months ago (2013-07-10 16:13:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/18293007/6001
7 years, 5 months ago (2013-07-10 16:16:53 UTC) #12
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=14542
7 years, 5 months ago (2013-07-10 16:25:29 UTC) #13
Joao da Silva
7 years, 5 months ago (2013-07-10 18:37:54 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 manually as r210896.

Powered by Google App Engine
This is Rietveld 408576698