Skip to content

Comments

[crashtracker] Fix crashtracker on Alpine#8222

Draft
gleocadie wants to merge 3 commits intomasterfrom
gleocadie/add-alpine-support-for-crashtracker
Draft

[crashtracker] Fix crashtracker on Alpine#8222
gleocadie wants to merge 3 commits intomasterfrom
gleocadie/add-alpine-support-for-crashtracker

Conversation

@gleocadie
Copy link
Collaborator

Summary of changes

Reason for change

Implementation details

Test coverage

Other details

@dd-trace-dotnet-ci-bot
Copy link

dd-trace-dotnet-ci-bot bot commented Feb 19, 2026

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8222) and master.

⚠️ Potential regressions detected

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration194.22 ± (196.11 - 198.56) ms208.93 ± (209.04 - 210.34) ms+7.6%❌⬆️
.NET Framework 4.8 - Bailout
duration198.35 ± (198.18 - 198.85) ms210.47 ± (210.41 - 211.39) ms+6.1%❌⬆️
Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration74.39 ± (74.38 - 74.73) ms73.72 ± (73.82 - 74.16) ms-0.9%
.NET Framework 4.8 - Bailout
duration79.27 ± (79.07 - 79.45) ms78.06 ± (77.85 - 78.23) ms-1.5%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1075.93 ± (1076.04 - 1081.62) ms1071.39 ± (1072.90 - 1079.01) ms-0.4%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.78 ± (22.74 - 22.83) ms22.76 ± (22.72 - 22.81) ms-0.1%
process.time_to_main_ms85.71 ± (85.49 - 85.93) ms85.22 ± (85.04 - 85.40) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.93 ± (10.92 - 10.93) MB10.90 ± (10.90 - 10.91) MB-0.2%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.71 ± (22.67 - 22.76) ms22.71 ± (22.66 - 22.76) ms-0.0%
process.time_to_main_ms87.22 ± (87.00 - 87.43) ms86.60 ± (86.42 - 86.78) ms-0.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.95 ± (10.94 - 10.95) MB10.94 ± (10.94 - 10.94) MB-0.1%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms237.93 ± (233.96 - 241.89) ms243.59 ± (239.47 - 247.70) ms+2.4%✅⬆️
process.time_to_main_ms491.11 ± (490.39 - 491.83) ms489.58 ± (488.90 - 490.27) ms-0.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed47.63 ± (47.61 - 47.65) MB47.59 ± (47.57 - 47.61) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.2%
.NET 6 - Baseline
process.internal_duration_ms21.44 ± (21.40 - 21.49) ms21.38 ± (21.34 - 21.41) ms-0.3%
process.time_to_main_ms74.15 ± (73.99 - 74.31) ms74.16 ± (74.01 - 74.31) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.63 ± (10.62 - 10.63) MB10.63 ± (10.63 - 10.64) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.42 ± (21.36 - 21.47) ms21.44 ± (21.39 - 21.48) ms+0.1%✅⬆️
process.time_to_main_ms76.10 ± (75.91 - 76.29) ms75.46 ± (75.30 - 75.63) ms-0.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.67 ± (10.67 - 10.68) MB10.74 ± (10.74 - 10.75) MB+0.7%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms254.10 ± (250.50 - 257.71) ms249.46 ± (245.77 - 253.15) ms-1.8%
process.time_to_main_ms472.83 ± (472.12 - 473.54) ms470.42 ± (469.70 - 471.14) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.37 ± (48.35 - 48.39) MB48.32 ± (48.30 - 48.34) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.1%
.NET 8 - Baseline
process.internal_duration_ms19.56 ± (19.52 - 19.61) ms19.56 ± (19.52 - 19.59) ms-0.0%
process.time_to_main_ms73.27 ± (73.11 - 73.43) ms73.63 ± (73.47 - 73.79) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.69 ± (7.68 - 7.69) MB7.67 ± (7.67 - 7.68) MB-0.2%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.58 ± (19.53 - 19.63) ms19.80 ± (19.75 - 19.85) ms+1.1%✅⬆️
process.time_to_main_ms74.58 ± (74.42 - 74.74) ms75.18 ± (75.01 - 75.35) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.71 - 7.72) MB7.71 ± (7.71 - 7.72) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms188.17 ± (187.22 - 189.12) ms188.28 ± (187.51 - 189.04) ms+0.1%✅⬆️
process.time_to_main_ms450.45 ± (449.65 - 451.25) ms451.34 ± (450.79 - 451.89) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed35.97 ± (35.93 - 36.00) MB36.01 ± (35.98 - 36.05) MB+0.1%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.3%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration194.22 ± (196.11 - 198.56) ms208.93 ± (209.04 - 210.34) ms+7.6%❌⬆️
.NET Framework 4.8 - Bailout
duration198.35 ± (198.18 - 198.85) ms210.47 ± (210.41 - 211.39) ms+6.1%❌⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1139.21 ± (1140.45 - 1148.21) ms1203.15 ± (1202.43 - 1211.19) ms+5.6%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms189.42 ± (189.00 - 189.84) ms203.66 ± (203.12 - 204.19) ms+7.5%✅⬆️
process.time_to_main_ms81.82 ± (81.61 - 82.04) ms88.07 ± (87.80 - 88.33) ms+7.6%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.05 ± (16.03 - 16.07) MB15.91 ± (15.90 - 15.93) MB-0.9%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+1.3%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms187.83 ± (187.54 - 188.13) ms204.21 ± (203.68 - 204.74) ms+8.7%✅⬆️
process.time_to_main_ms82.75 ± (82.58 - 82.93) ms90.24 ± (89.96 - 90.52) ms+9.0%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.12 ± (16.09 - 16.15) MB15.89 ± (15.88 - 15.91) MB-1.4%
runtime.dotnet.threads.count20 ± (20 - 21)21 ± (21 - 21)+1.9%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms440.07 ± (437.86 - 442.29) ms428.41 ± (424.74 - 432.07) ms-2.7%
process.time_to_main_ms474.62 ± (474.16 - 475.07) ms508.15 ± (507.02 - 509.27) ms+7.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.82 ± (57.70 - 57.94) MB58.25 ± (58.15 - 58.35) MB+0.7%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 30)30 ± (29 - 30)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms192.20 ± (191.82 - 192.59) ms211.14 ± (210.43 - 211.86) ms+9.9%✅⬆️
process.time_to_main_ms70.60 ± (70.40 - 70.80) ms77.77 ± (77.47 - 78.07) ms+10.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.88 ± (15.72 - 16.04) MB16.22 ± (16.20 - 16.23) MB+2.1%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)20 ± (19 - 20)+8.3%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms191.61 ± (191.33 - 191.90) ms207.80 ± (207.19 - 208.40) ms+8.4%✅⬆️
process.time_to_main_ms71.59 ± (71.46 - 71.71) ms77.77 ± (77.54 - 77.99) ms+8.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.37 ± (16.29 - 16.46) MB16.26 ± (16.24 - 16.27) MB-0.7%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+2.9%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms450.93 ± (449.04 - 452.81) ms466.92 ± (463.55 - 470.29) ms+3.5%✅⬆️
process.time_to_main_ms450.26 ± (449.69 - 450.83) ms481.61 ± (480.75 - 482.48) ms+7.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed58.03 ± (57.92 - 58.14) MB57.47 ± (57.33 - 57.61) MB-1.0%
runtime.dotnet.threads.count29 ± (29 - 29)30 ± (30 - 30)+0.7%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms190.83 ± (190.48 - 191.17) ms207.95 ± (207.35 - 208.54) ms+9.0%✅⬆️
process.time_to_main_ms70.34 ± (70.12 - 70.57) ms75.75 ± (75.53 - 75.96) ms+7.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.72 ± (11.70 - 11.74) MB11.60 ± (11.58 - 11.61) MB-1.0%
runtime.dotnet.threads.count18 ± (18 - 18)19 ± (19 - 19)+3.2%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms190.05 ± (189.71 - 190.40) ms206.47 ± (205.95 - 206.98) ms+8.6%✅⬆️
process.time_to_main_ms70.94 ± (70.80 - 71.09) ms76.79 ± (76.60 - 76.98) ms+8.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.80 ± (11.78 - 11.83) MB11.65 ± (11.63 - 11.66) MB-1.3%
runtime.dotnet.threads.count19 ± (19 - 19)20 ± (20 - 20)+4.0%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms363.58 ± (362.11 - 365.04) ms429.71 ± (422.20 - 437.21) ms+18.2%✅⬆️
process.time_to_main_ms433.57 ± (432.96 - 434.18) ms466.14 ± (465.30 - 466.99) ms+7.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed47.84 ± (47.80 - 47.88) MB49.24 ± (49.08 - 49.39) MB+2.9%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.6%
Comparison explanation

Execution-time benchmarks measure the whole time it takes to execute a program, and are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8222) - mean (74ms)  : 72, 76
    master - mean (75ms)  : 72, 77

    section Bailout
    This PR (8222) - mean (78ms)  : 76, 80
    master - mean (79ms)  : 77, 81

    section CallTarget+Inlining+NGEN
    This PR (8222) - mean (1,076ms)  : 1033, 1119
    master - mean (1,079ms)  : 1039, 1118

Loading
FakeDbCommand (.NET Core 3.1)
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8222) - mean (115ms)  : 112, 118
    master - mean (115ms)  : 111, 120

    section Bailout
    This PR (8222) - mean (116ms)  : 114, 118
    master - mean (117ms)  : 114, 120

    section CallTarget+Inlining+NGEN
    This PR (8222) - mean (770ms)  : 704, 835
    master - mean (763ms)  : 706, 820

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8222) - mean (102ms)  : 100, 104
    master - mean (102ms)  : 99, 105

    section Bailout
    This PR (8222) - mean (103ms)  : 101, 106
    master - mean (104ms)  : 101, 107

    section CallTarget+Inlining+NGEN
    This PR (8222) - mean (754ms)  : 688, 820
    master - mean (759ms)  : 700, 819

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8222) - mean (101ms)  : 98, 104
    master - mean (101ms)  : 98, 103

    section Bailout
    This PR (8222) - mean (103ms)  : 101, 105
    master - mean (102ms)  : 99, 105

    section CallTarget+Inlining+NGEN
    This PR (8222) - mean (673ms)  : 648, 698
    master - mean (666ms)  : 654, 679

Loading
HttpMessageHandler (.NET Framework 4.8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8222) - mean (210ms)  : 200, 220
    master - mean (197ms)  : 180, 215

    section Bailout
    This PR (8222) - mean (211ms)  : crit, 206, 216
    master - mean (199ms)  : 195, 202

    section CallTarget+Inlining+NGEN
    This PR (8222) - mean (1,207ms)  : 1141, 1272
    master - mean (1,144ms)  : 1087, 1202

Loading
HttpMessageHandler (.NET Core 3.1)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8222) - mean (301ms)  : 290, 313
    master - mean (280ms)  : 272, 287

    section Bailout
    This PR (8222) - mean (304ms)  : crit, 293, 315
    master - mean (279ms)  : 275, 283

    section CallTarget+Inlining+NGEN
    This PR (8222) - mean (975ms)  : 923, 1026
    master - mean (944ms)  : 909, 980

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8222) - mean (298ms)  : 286, 311
    master - mean (271ms)  : 266, 276

    section Bailout
    This PR (8222) - mean (295ms)  : crit, 284, 306
    master - mean (271ms)  : 267, 275

    section CallTarget+Inlining+NGEN
    This PR (8222) - mean (979ms)  : 920, 1038
    master - mean (931ms)  : 909, 954

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8222) - mean (294ms)  : 283, 306
    master - mean (271ms)  : 266, 276

    section Bailout
    This PR (8222) - mean (294ms)  : crit, 283, 306
    master - mean (270ms)  : 266, 275

    section CallTarget+Inlining+NGEN
    This PR (8222) - mean (930ms)  : crit, 814, 1047
    master - mean (828ms)  : 809, 846

Loading

void (*prev_handler)(int signum, siginfo_t* info, void* context) = sigsegv_current_handler;
sigsegv_current_handler = act->sa_sigaction;
int result = __real_sigaction(signum, &new_act, oldact);
// lock to update the current act and fixup the old one
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

old comment: to remove

@pr-commenter
Copy link

pr-commenter bot commented Feb 20, 2026

Benchmarks

Benchmark execution time: 2026-02-20 16:35:37

Comparing candidate commit e2ba565 in PR branch gleocadie/add-alpine-support-for-crashtracker with baseline commit 123d9cd in branch master.

Found 11 performance improvements and 5 performance regressions! Performance is the same for 163 metrics, 13 unstable metrics.

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟩 execution_time [-19.611ms; -19.552ms] or [-16.301%; -16.252%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net472

  • 🟥 throughput [-59854.926op/s; -56318.453op/s] or [-6.188%; -5.823%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net6.0

  • 🟩 execution_time [-29.816ms; -23.229ms] or [-13.393%; -10.434%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody netcoreapp3.1

  • 🟩 execution_time [-24.244ms; -18.384ms] or [-11.163%; -8.465%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody netcoreapp3.1

  • 🟩 execution_time [-16.447ms; -11.048ms] or [-7.829%; -5.259%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net6.0

  • 🟥 execution_time [+11.607ms; +15.832ms] or [+5.829%; +7.951%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody netcoreapp3.1

  • 🟩 execution_time [-23.346ms; -17.598ms] or [-10.768%; -8.116%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net6.0

  • 🟥 execution_time [+5.478ms; +6.566ms] or [+5.836%; +6.995%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟩 execution_time [-16.985ms; -13.255ms] or [-10.677%; -8.333%]
  • 🟩 throughput [+239.968op/s; +275.685op/s] or [+17.025%; +19.559%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • 🟩 execution_time [-109.568µs; -105.712µs] or [-5.434%; -5.243%]
  • 🟩 throughput [+27.473op/s; +28.468op/s] or [+5.539%; +5.740%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net6.0

  • 🟩 execution_time [-16.711ms; -11.463ms] or [-7.825%; -5.367%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net6.0

  • 🟥 throughput [-3329.162op/s; -1276.736op/s] or [-15.545%; -5.962%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net6.0

  • 🟩 execution_time [-21.888ms; -18.109ms] or [-10.232%; -8.465%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope netcoreapp3.1

  • 🟥 execution_time [+11.686ms; +17.611ms] or [+5.957%; +8.978%]

@gleocadie gleocadie force-pushed the gleocadie/add-alpine-support-for-crashtracker branch 3 times, most recently from 70c25f8 to aaa8a18 Compare February 20, 2026 15:02
@gleocadie gleocadie force-pushed the gleocadie/add-alpine-support-for-crashtracker branch from aaa8a18 to e2ba565 Compare February 20, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant