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

Issue 7766013: [Mac] Capture -dealloc backtrace to log with CrZombie messages. (Closed)

Created:
9 years, 4 months ago by Scott Hess - ex-Googler
Modified:
9 years, 3 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

[Mac] Capture -dealloc backtrace to log with CrZombie messages. Logs a subset of the stack backtrace from the point of -dealloc into a breakpad key to help debug messages to CrZombie objects. This productionizes the basic approach taken to debug a few recent zombie object crashes. BUG=none TEST=monitor crash server. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98858

Patch Set 1 #

Total comments: 20

Patch Set 2 : Mark's comments. #

Total comments: 4

Patch Set 3 : Use sizeof(trace_) workaround. #

Total comments: 15

Patch Set 4 : Switch to size_t, address comments. #

Patch Set 5 : Convert backtrace() to StackTrace instance. #

Total comments: 3

Patch Set 6 : Revert to backtrace() implementation. #

Patch Set 7 : And ... a Windows type signededness mismatch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -18 lines) Patch
M base/debug/stack_trace.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M base/debug/stack_trace.cc View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/objc_zombie.mm View 1 2 3 5 7 chunks +77 lines, -18 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Scott Hess - ex-Googler
Happy to take whoever isn't currently being blown about like Dorothy. I tested this by ...
9 years, 4 months ago (2011-08-26 22:50:05 UTC) #1
Scott Hess - ex-Googler
On 2011/08/26 22:50:05, shess wrote: > Happy to take whoever isn't currently being blown about ...
9 years, 4 months ago (2011-08-26 22:54:37 UTC) #2
Mark Mentovai
http://codereview.chromium.org/7766013/diff/1/base/debug/stack_trace.cc File base/debug/stack_trace.cc (right): http://codereview.chromium.org/7766013/diff/1/base/debug/stack_trace.cc#newcode12 base/debug/stack_trace.cc:12: memcpy(trace_, trace, count * sizeof(trace[0])); This is very dangerous. ...
9 years, 3 months ago (2011-08-27 00:29:02 UTC) #3
Scott Hess - ex-Googler
Changes and a hang-up at the end. http://codereview.chromium.org/7766013/diff/1/base/debug/stack_trace.cc File base/debug/stack_trace.cc (right): http://codereview.chromium.org/7766013/diff/1/base/debug/stack_trace.cc#newcode12 base/debug/stack_trace.cc:12: memcpy(trace_, trace, ...
9 years, 3 months ago (2011-08-27 05:15:40 UTC) #4
Scott Hess - ex-Googler
http://codereview.chromium.org/7766013/diff/5001/base/debug/stack_trace.cc File base/debug/stack_trace.cc (right): http://codereview.chromium.org/7766013/diff/5001/base/debug/stack_trace.cc#newcode14 base/debug/stack_trace.cc:14: count = std::min(count, kMaxTraces); On 2011/08/27 05:15:40, shess wrote: ...
9 years, 3 months ago (2011-08-27 05:44:49 UTC) #5
Mark Mentovai
LGTM. Most of the comments are more “food for thought” than anything else. http://codereview.chromium.org/7766013/diff/5001/base/debug/stack_trace.cc File ...
9 years, 3 months ago (2011-08-28 15:40:01 UTC) #6
Scott Hess - ex-Googler
OK, I folded in some of your food-for-thought, so another pass is in order. I ...
9 years, 3 months ago (2011-08-29 20:13:36 UTC) #7
Scott Hess - ex-Googler
http://codereview.chromium.org/7766013/diff/13001/chrome/browser/ui/cocoa/objc_zombie.mm File chrome/browser/ui/cocoa/objc_zombie.mm (right): http://codereview.chromium.org/7766013/diff/13001/chrome/browser/ui/cocoa/objc_zombie.mm#newcode216 chrome/browser/ui/cocoa/objc_zombie.mm:216: zombieToFree.traceDepth * sizeof(zombieToFree.trace[0])); I'm already looking at this and ...
9 years, 3 months ago (2011-08-29 20:30:49 UTC) #8
Mark Mentovai
I would LGTM this. I don’t think I really have a strong preference between StackTrace ...
9 years, 3 months ago (2011-08-29 20:37:02 UTC) #9
Scott Hess - ex-Googler
9 years, 3 months ago (2011-08-29 21:53:04 UTC) #10
On 2011/08/29 20:37:02, Mark Mentovai wrote:
> I would LGTM this. I don’t think I really have a strong preference between
> StackTrace and backtrace.

OK, in the interests of landing rather than accumulating "One more thing", I'm
going to revert to the backtrace() implementation, and get it into the canary.

Powered by Google App Engine
This is Rietveld 408576698