Adds crashtracking addresses and error thread name#10984
Adds crashtracking addresses and error thread name#10984gh-worker-dd-mergequeue-cf854d[bot] merged 6 commits intomasterfrom
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 64 metrics, 7 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.61.0-SNAPSHOT~034e3fc218, baseline=1.61.0-SNAPSHOT~517a89d1ec3
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.057 s) : 0, 1056589
Total [baseline] (8.834 s) : 0, 8834237
Agent [candidate] (1.058 s) : 0, 1057862
Total [candidate] (8.839 s) : 0, 8838957
section iast
Agent [baseline] (1.229 s) : 0, 1229245
Total [baseline] (9.544 s) : 0, 9543740
Agent [candidate] (1.238 s) : 0, 1238057
Total [candidate] (9.57 s) : 0, 9569800
gantt
title insecure-bank - break down per module: candidate=1.61.0-SNAPSHOT~034e3fc218, baseline=1.61.0-SNAPSHOT~517a89d1ec3
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.194 ms) : 0, 1194
crashtracking [candidate] (1.214 ms) : 0, 1214
BytebuddyAgent [baseline] (628.219 ms) : 0, 628219
BytebuddyAgent [candidate] (629.763 ms) : 0, 629763
AgentMeter [baseline] (29.432 ms) : 0, 29432
AgentMeter [candidate] (29.474 ms) : 0, 29474
GlobalTracer [baseline] (256.498 ms) : 0, 256498
GlobalTracer [candidate] (257.082 ms) : 0, 257082
AppSec [baseline] (31.776 ms) : 0, 31776
AppSec [candidate] (31.823 ms) : 0, 31823
Debugger [baseline] (59.69 ms) : 0, 59690
Debugger [candidate] (59.568 ms) : 0, 59568
Remote Config [baseline] (590.923 µs) : 0, 591
Remote Config [candidate] (594.31 µs) : 0, 594
Telemetry [baseline] (8.044 ms) : 0, 8044
Telemetry [candidate] (8.016 ms) : 0, 8016
Flare Poller [baseline] (5.018 ms) : 0, 5018
Flare Poller [candidate] (4.222 ms) : 0, 4222
section iast
crashtracking [baseline] (1.197 ms) : 0, 1197
crashtracking [candidate] (1.197 ms) : 0, 1197
BytebuddyAgent [baseline] (797.838 ms) : 0, 797838
BytebuddyAgent [candidate] (804.52 ms) : 0, 804520
AgentMeter [baseline] (11.422 ms) : 0, 11422
AgentMeter [candidate] (11.707 ms) : 0, 11707
GlobalTracer [baseline] (247.972 ms) : 0, 247972
GlobalTracer [candidate] (249.072 ms) : 0, 249072
IAST [baseline] (25.401 ms) : 0, 25401
IAST [candidate] (25.567 ms) : 0, 25567
AppSec [baseline] (26.659 ms) : 0, 26659
AppSec [candidate] (27.427 ms) : 0, 27427
Debugger [baseline] (68.363 ms) : 0, 68363
Debugger [candidate] (67.098 ms) : 0, 67098
Remote Config [baseline] (519.135 µs) : 0, 519
Remote Config [candidate] (525.982 µs) : 0, 526
Telemetry [baseline] (10.153 ms) : 0, 10153
Telemetry [candidate] (11.266 ms) : 0, 11266
Flare Poller [baseline] (3.528 ms) : 0, 3528
Flare Poller [candidate] (3.451 ms) : 0, 3451
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.61.0-SNAPSHOT~034e3fc218, baseline=1.61.0-SNAPSHOT~517a89d1ec3
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.058 s) : 0, 1058281
Total [baseline] (11.125 s) : 0, 11125005
Agent [candidate] (1.057 s) : 0, 1057076
Total [candidate] (11.108 s) : 0, 11107607
section appsec
Agent [baseline] (1.262 s) : 0, 1261987
Total [baseline] (11.225 s) : 0, 11225474
Agent [candidate] (1.254 s) : 0, 1253982
Total [candidate] (11.153 s) : 0, 11153344
section iast
Agent [baseline] (1.228 s) : 0, 1228362
Total [baseline] (11.241 s) : 0, 11240506
Agent [candidate] (1.232 s) : 0, 1232224
Total [candidate] (11.292 s) : 0, 11292493
section profiling
Agent [baseline] (1.182 s) : 0, 1182081
Total [baseline] (11.084 s) : 0, 11084469
Agent [candidate] (1.186 s) : 0, 1185618
Total [candidate] (11.076 s) : 0, 11076125
gantt
title petclinic - break down per module: candidate=1.61.0-SNAPSHOT~034e3fc218, baseline=1.61.0-SNAPSHOT~517a89d1ec3
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.191 ms) : 0, 1191
crashtracking [candidate] (1.205 ms) : 0, 1205
BytebuddyAgent [baseline] (629.749 ms) : 0, 629749
BytebuddyAgent [candidate] (628.835 ms) : 0, 628835
AgentMeter [baseline] (29.436 ms) : 0, 29436
AgentMeter [candidate] (29.419 ms) : 0, 29419
GlobalTracer [baseline] (257.333 ms) : 0, 257333
GlobalTracer [candidate] (256.88 ms) : 0, 256880
AppSec [baseline] (31.863 ms) : 0, 31863
AppSec [candidate] (31.696 ms) : 0, 31696
Debugger [baseline] (60.533 ms) : 0, 60533
Debugger [candidate] (60.259 ms) : 0, 60259
Remote Config [baseline] (586.812 µs) : 0, 587
Remote Config [candidate] (586.7 µs) : 0, 587
Telemetry [baseline] (7.977 ms) : 0, 7977
Telemetry [candidate] (7.994 ms) : 0, 7994
Flare Poller [baseline] (3.542 ms) : 0, 3542
Flare Poller [candidate] (4.228 ms) : 0, 4228
section appsec
crashtracking [baseline] (1.217 ms) : 0, 1217
crashtracking [candidate] (1.208 ms) : 0, 1208
BytebuddyAgent [baseline] (668.276 ms) : 0, 668276
BytebuddyAgent [candidate] (662.39 ms) : 0, 662390
AgentMeter [baseline] (12.258 ms) : 0, 12258
AgentMeter [candidate] (12.207 ms) : 0, 12207
GlobalTracer [baseline] (260.648 ms) : 0, 260648
GlobalTracer [candidate] (259.293 ms) : 0, 259293
IAST [baseline] (24.528 ms) : 0, 24528
IAST [candidate] (24.332 ms) : 0, 24332
AppSec [baseline] (179.107 ms) : 0, 179107
AppSec [candidate] (178.774 ms) : 0, 178774
Debugger [baseline] (66.769 ms) : 0, 66769
Debugger [candidate] (66.621 ms) : 0, 66621
Remote Config [baseline] (628.189 µs) : 0, 628
Remote Config [candidate] (630.792 µs) : 0, 631
Telemetry [baseline] (8.408 ms) : 0, 8408
Telemetry [candidate] (8.508 ms) : 0, 8508
Flare Poller [baseline] (3.637 ms) : 0, 3637
Flare Poller [candidate] (3.609 ms) : 0, 3609
section iast
crashtracking [baseline] (1.189 ms) : 0, 1189
crashtracking [candidate] (1.192 ms) : 0, 1192
BytebuddyAgent [baseline] (797.454 ms) : 0, 797454
BytebuddyAgent [candidate] (799.839 ms) : 0, 799839
AgentMeter [baseline] (11.455 ms) : 0, 11455
AgentMeter [candidate] (11.468 ms) : 0, 11468
GlobalTracer [baseline] (247.202 ms) : 0, 247202
GlobalTracer [candidate] (248.289 ms) : 0, 248289
IAST [baseline] (25.348 ms) : 0, 25348
IAST [candidate] (25.341 ms) : 0, 25341
AppSec [baseline] (27.387 ms) : 0, 27387
AppSec [candidate] (26.433 ms) : 0, 26433
Debugger [baseline] (69.182 ms) : 0, 69182
Debugger [candidate] (70.28 ms) : 0, 70280
Remote Config [baseline] (524.01 µs) : 0, 524
Remote Config [candidate] (534.886 µs) : 0, 535
Telemetry [baseline] (9.132 ms) : 0, 9132
Telemetry [candidate] (9.223 ms) : 0, 9223
Flare Poller [baseline] (3.44 ms) : 0, 3440
Flare Poller [candidate] (3.464 ms) : 0, 3464
section profiling
crashtracking [baseline] (1.167 ms) : 0, 1167
crashtracking [candidate] (1.186 ms) : 0, 1186
BytebuddyAgent [baseline] (682.734 ms) : 0, 682734
BytebuddyAgent [candidate] (685.875 ms) : 0, 685875
AgentMeter [baseline] (8.983 ms) : 0, 8983
AgentMeter [candidate] (8.968 ms) : 0, 8968
GlobalTracer [baseline] (214.819 ms) : 0, 214819
GlobalTracer [candidate] (214.927 ms) : 0, 214927
AppSec [baseline] (32.37 ms) : 0, 32370
AppSec [candidate] (32.198 ms) : 0, 32198
Debugger [baseline] (65.883 ms) : 0, 65883
Debugger [candidate] (65.791 ms) : 0, 65791
Remote Config [baseline] (562.775 µs) : 0, 563
Remote Config [candidate] (565.903 µs) : 0, 566
Telemetry [baseline] (7.698 ms) : 0, 7698
Telemetry [candidate] (7.742 ms) : 0, 7742
Flare Poller [baseline] (3.445 ms) : 0, 3445
Flare Poller [candidate] (3.518 ms) : 0, 3518
ProfilingAgent [baseline] (93.601 ms) : 0, 93601
ProfilingAgent [candidate] (93.734 ms) : 0, 93734
Profiling [baseline] (94.162 ms) : 0, 94162
Profiling [candidate] (94.281 ms) : 0, 94281
LoadParameters
See matching parameters
SummaryFound 2 performance improvements and 5 performance regressions! Performance is the same for 12 metrics, 17 unstable metrics.
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.61.0-SNAPSHOT~034e3fc218, baseline=1.61.0-SNAPSHOT~517a89d1ec3
dateFormat X
axisFormat %s
section baseline
no_agent (18.102 ms) : 17920, 18284
. : milestone, 18102,
appsec (18.594 ms) : 18401, 18787
. : milestone, 18594,
code_origins (17.782 ms) : 17608, 17955
. : milestone, 17782,
iast (18.888 ms) : 18696, 19080
. : milestone, 18888,
profiling (20.351 ms) : 20148, 20555
. : milestone, 20351,
tracing (17.895 ms) : 17717, 18072
. : milestone, 17895,
section candidate
no_agent (17.978 ms) : 17795, 18160
. : milestone, 17978,
appsec (19.493 ms) : 19292, 19693
. : milestone, 19493,
code_origins (17.685 ms) : 17510, 17860
. : milestone, 17685,
iast (19.057 ms) : 18863, 19250
. : milestone, 19057,
profiling (18.443 ms) : 18257, 18630
. : milestone, 18443,
tracing (17.482 ms) : 17308, 17655
. : milestone, 17482,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.61.0-SNAPSHOT~034e3fc218, baseline=1.61.0-SNAPSHOT~517a89d1ec3
dateFormat X
axisFormat %s
section baseline
no_agent (1.182 ms) : 1171, 1193
. : milestone, 1182,
iast (3.187 ms) : 3144, 3231
. : milestone, 3187,
iast_FULL (5.71 ms) : 5653, 5767
. : milestone, 5710,
iast_GLOBAL (3.443 ms) : 3387, 3499
. : milestone, 3443,
profiling (1.996 ms) : 1978, 2013
. : milestone, 1996,
tracing (1.816 ms) : 1801, 1832
. : milestone, 1816,
section candidate
no_agent (1.174 ms) : 1163, 1186
. : milestone, 1174,
iast (3.247 ms) : 3204, 3291
. : milestone, 3247,
iast_FULL (5.997 ms) : 5935, 6058
. : milestone, 5997,
iast_GLOBAL (3.658 ms) : 3598, 3718
. : milestone, 3658,
profiling (2.035 ms) : 2016, 2053
. : milestone, 2035,
tracing (1.904 ms) : 1888, 1920
. : milestone, 1904,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.61.0-SNAPSHOT~034e3fc218, baseline=1.61.0-SNAPSHOT~517a89d1ec3
dateFormat X
axisFormat %s
section baseline
no_agent (1.476 ms) : 1465, 1488
. : milestone, 1476,
appsec (3.808 ms) : 3585, 4030
. : milestone, 3808,
iast (2.27 ms) : 2200, 2339
. : milestone, 2270,
iast_GLOBAL (2.303 ms) : 2234, 2373
. : milestone, 2303,
profiling (2.128 ms) : 2071, 2185
. : milestone, 2128,
tracing (2.068 ms) : 2014, 2122
. : milestone, 2068,
section candidate
no_agent (1.476 ms) : 1465, 1488
. : milestone, 1476,
appsec (3.807 ms) : 3583, 4031
. : milestone, 3807,
iast (2.27 ms) : 2200, 2339
. : milestone, 2270,
iast_GLOBAL (2.309 ms) : 2239, 2379
. : milestone, 2309,
profiling (2.088 ms) : 2033, 2143
. : milestone, 2088,
tracing (2.063 ms) : 2009, 2117
. : milestone, 2063,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.61.0-SNAPSHOT~034e3fc218, baseline=1.61.0-SNAPSHOT~517a89d1ec3
dateFormat X
axisFormat %s
section baseline
no_agent (15.353 s) : 15353000, 15353000
. : milestone, 15353000,
appsec (14.598 s) : 14598000, 14598000
. : milestone, 14598000,
iast (17.988 s) : 17988000, 17988000
. : milestone, 17988000,
iast_GLOBAL (17.756 s) : 17756000, 17756000
. : milestone, 17756000,
profiling (14.858 s) : 14858000, 14858000
. : milestone, 14858000,
tracing (14.886 s) : 14886000, 14886000
. : milestone, 14886000,
section candidate
no_agent (14.928 s) : 14928000, 14928000
. : milestone, 14928000,
appsec (15.191 s) : 15191000, 15191000
. : milestone, 15191000,
iast (18.407 s) : 18407000, 18407000
. : milestone, 18407000,
iast_GLOBAL (17.876 s) : 17876000, 17876000
. : milestone, 17876000,
profiling (15.595 s) : 15595000, 15595000
. : milestone, 15595000,
tracing (14.888 s) : 14888000, 14888000
. : milestone, 14888000,
|
...-agent/agent-crashtracking/src/main/java/datadog/crashtracking/parsers/J9JavacoreParser.java
Outdated
Show resolved
Hide resolved
jbachorik
left a comment
There was a problem hiding this comment.
I have just one outstanding question about the J9 non-native frame type. Otherwise, LGTM!
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
50402e3
into
master
What Does This Do
The hotspot crash logs missed some useful addresses to locate instructions, it was also missing the frame type. This change also adds the missing thread name that crashed :
https://github.com/DataDog/libdatadog/blob/main/docs/RFCs/0011-crashtracker-structured-log-format-V1_X.md
Moreover, this PR fixes some frames that were incorrectly parsed, e.g. this function parsed
(0:Motivation
Additional Notes
Frame type marker
The frame type is computed only for HotSpot methods, it maps the HotSpot marker character to a string, now emitted as
typein the event.typevalueJ"compiled"A"aot_compiled"j"interpreted"V"vm"v"stub"C"native"Note that
A, may appear on JDK 11, and was removed later.Addresses
J/Acompiled Java framesfunctionjava.util.zip.ZipFile.getEntry(J[BZ)J602ip0x00000001091a1f54symbol_address0x00000001091a1ec0relative_address0x94relative_address0x39b8Other
C/Vnative frames andjinterpreted /vstub frames were not changed: therelative_addressfrom[lib.so+offset]was already captured in master.FYI, I created this crash reproducer on JDK8 based on this report https://ops.java/troubleshooting/articles/errors-zip-getentry-newentry/
ZipFileMmapCrashRepro