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

Issue 2051863002: better exclusion for stack traces (Closed)

Created:
4 years, 6 months ago by mtklein_C
Modified:
4 years, 6 months ago
Reviewers:
herb_g
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

better exclusion for stack traces Instead of two synchronization systems (in_signal_handler, gMutex), we can just use one. This simplifies the signal handler logic to: - first thread through grabs the lock, prints what's running and a stack trace, then exits - all other threads just sit waiting on that lock until exit kills them Previously I think all threads were racing to exit, which can kill the process before the printing thread is done. That truncated the output, which is dumb. Plus... refactor slightly so that crash_handler() shows up at the top of the stack trace rather than some odd name for a lambda inside setup_crash_handler(). BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2051863002 Committed: https://skia.googlesource.com/skia/+/5b64dab5bcb1823d465be1833db1f716f9b903e5

Patch Set 1 #

Patch Set 2 : fix windows #

Patch Set 3 : refactor for clearer names in stack trace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -36 lines) Patch
M dm/DM.cpp View 1 2 2 chunks +36 lines, -36 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2051863002/20001
4 years, 6 months ago (2016-06-09 15:20:06 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2051863002/40001
4 years, 6 months ago (2016-06-09 15:27:06 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-09 15:40:54 UTC) #9
mtklein_C
4 years, 6 months ago (2016-06-09 15:46:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2051863002/40001
4 years, 6 months ago (2016-06-09 15:46:43 UTC) #13
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 6 months ago (2016-06-09 15:46:44 UTC) #14
herb_g
lgtm
4 years, 6 months ago (2016-06-09 15:57:58 UTC) #15
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 15:59:51 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/5b64dab5bcb1823d465be1833db1f716f9b903e5

Powered by Google App Engine
This is Rietveld 408576698