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

Issue 2248393002: Replace DumpBacktrace with Chromium's StackTrace implementation. (Closed)

Created:
4 years, 4 months ago by rmcilroy
Modified:
4 years, 4 months ago
CC:
v8-reviews_googlegroups.com, oth
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Replace DumpBacktrace with Chromium's StackTrace implementation. Adds support for dumping the stack on Windows. Also enables in-process stack dumping in d8 to dump the stack on exceptions and signals. This CL changes the format of stack dumps from: 1: V8_Fatal 2: 0x1ac6ba5 3: v8::internal::interpreter::BytecodeGenerator::Visit(v8::internal::AstNode*) 4: v8::internal::interpreter::BytecodeGenerator::VisitForAccumulatorValue(v8::internal::Expression*) ... To: ./out/x64.debug/d8(v8::base::debug::StackTrace::StackTrace()+0x1e) [0x1c6ee5e] ./out/x64.debug/d8() [0x1c6ede5] /lib/x86_64-linux-gnu/libpthread.so.0(+0x10330) [0x7fa01193e330] ./out/x64.debug/d8(v8::base::OS::Abort()+0x12) [0x1c6cea2] ./out/x64.debug/d8() [0x1c67538] ./out/x64.debug/d8() [0x1ac80b5] ./out/x64.debug/d8(v8::internal::interpreter::BytecodeGenerator ::Visit(v8::internal::AstNode*)+0x3cb) [0x1ac323b] ./out/x64.debug/d8(v8::internal::interpreter::BytecodeGenerator ::VisitForAccumulatorValue(v8::internal::Expression*)+0x40) [0x1ac2570] Committed: https://crrev.com/49c14f63ef1ea94b8d7b5a9dfe939b2dbc02e42e Cr-Commit-Position: refs/heads/master@{#38717}

Patch Set 1 #

Patch Set 2 : cl formatted #

Patch Set 3 : Fix windows #

Patch Set 4 : Fix a few things #

Patch Set 5 : More fixes #

Patch Set 6 : Fix Win Build. #

Patch Set 7 : Fix Android #

Patch Set 8 : More fixes #

Patch Set 9 : Fix mac #

Total comments: 21

Patch Set 10 : Address Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1015 lines, -71 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 4 chunks +29 lines, -6 lines 0 comments Download
A src/base/debug/stack_trace.h View 1 2 3 4 5 6 7 8 9 1 chunk +96 lines, -0 lines 0 comments Download
A src/base/debug/stack_trace.cc View 1 1 chunk +40 lines, -0 lines 0 comments Download
A src/base/debug/stack_trace_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +91 lines, -0 lines 0 comments Download
A src/base/debug/stack_trace_posix.cc View 1 2 3 4 5 6 7 8 9 1 chunk +445 lines, -0 lines 0 comments Download
A src/base/debug/stack_trace_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +248 lines, -0 lines 0 comments Download
A src/base/free_deleter.h View 1 2 3 4 5 6 7 8 9 1 chunk +28 lines, -0 lines 0 comments Download
M src/base/logging.cc View 1 2 3 4 3 chunks +7 lines, -56 lines 0 comments Download
M src/d8.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M src/v8.gyp View 1 2 3 4 5 6 7 8 9 8 chunks +27 lines, -9 lines 0 comments Download

Messages

Total messages: 55 (44 generated)
rmcilroy
Michi: could you take a look. This is mostly a copy of the Chromium implementation, ...
4 years, 4 months ago (2016-08-18 07:51:40 UTC) #36
Michael Starzinger
I would be fine with this (integration looks good, didn't look at the actual implementation ...
4 years, 4 months ago (2016-08-18 08:01:51 UTC) #38
rmcilroy
On 2016/08/18 08:01:51, Michael Starzinger wrote: > I would be fine with this (integration looks ...
4 years, 4 months ago (2016-08-18 09:23:44 UTC) #39
Michael Starzinger
On 2016/08/18 09:23:44, rmcilroy wrote: > On 2016/08/18 08:01:51, Michael Starzinger wrote: > > I ...
4 years, 4 months ago (2016-08-18 09:36:07 UTC) #40
Jakob Kummerow
LGTM with nits. https://codereview.chromium.org/2248393002/diff/180001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2248393002/diff/180001/BUILD.gn#newcode2047 BUILD.gn:2047: "src/base/functional.cc", why is "src/base/free_deleter.h" not required ...
4 years, 4 months ago (2016-08-18 09:36:14 UTC) #41
rossberg
If this makes stack traces work on Windows I'm all for it (even though I ...
4 years, 4 months ago (2016-08-18 09:45:00 UTC) #42
Michael Starzinger
LGTM from my side. Just nits. https://codereview.chromium.org/2248393002/diff/180001/src/base/debug/stack_trace.h File src/base/debug/stack_trace.h (right): https://codereview.chromium.org/2248393002/diff/180001/src/base/debug/stack_trace.h#newcode1 src/base/debug/stack_trace.h:1: // Copyright 2016 ...
4 years, 4 months ago (2016-08-18 10:39:19 UTC) #43
rmcilroy
> If this makes stack traces work on Windows I'm all for it (even though ...
4 years, 4 months ago (2016-08-18 11:39:48 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2248393002/200001
4 years, 4 months ago (2016-08-18 14:18:24 UTC) #51
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 4 months ago (2016-08-18 14:25:27 UTC) #53
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 14:26:02 UTC) #55
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/49c14f63ef1ea94b8d7b5a9dfe939b2dbc02e42e
Cr-Commit-Position: refs/heads/master@{#38717}

Powered by Google App Engine
This is Rietveld 408576698