Repository navigation
Conversation
CI Test ResultsRun: #46026873213 | Commit:
Status Overview
Legend: ✅ passed | ❌ failed | ⚪ skipped | 🚫 cancelled
|
| Test | Cells | Message |
|---|---|---|
MallocArenaWarningTest.statsEventsDescribeTheArenas__ |
glibc-8-orcl-debug-amd64 |
org.opentest4j.AssertionFailedError: expected: <478150656> but was: <477626368> |
These fail the build. Passing on a second run makes a test flaky, not passing. Fix it, or quarantine it against a ticket so the debt is tracked rather than forgotten.
Consider quarantining these — click for ready-made entries
A quarantined test still runs and still reports; its failures just stop
turning CI red. To quarantine one:
- Open a PROF ticket for the test, linking the failing job.
- Append the line below to
ddprof-test/quarantine.txt, replacing
PROF-XXXXXwith the ticket number. - Check the
cellsandreasoncolumns — the proposal only knows what
failed in this run, and a narrowercellsglob keeps the same test
gating everywhere it has not misbehaved.
CI fails once review_by passes, so an entry expires instead of piling up.
# test | ticket | added | review_by | cells | reason
com.datadoghq.profiler.nativemem.MallocArenaWarningTest.statsEventsDescribeTheArenas | PROF-XXXXX | 2026-11-27 | 2027-02-25 | glibc-8-orcl-debug-amd64 | org.opentest4j.AssertionFailedError: expected: <478150656> but was: <477626368> (seen in: glibc-8-orcl-debug-amd64)
Retried 1 of 102 cells.
Failed Jobs
- glibc-amd64/debug / 8-orcl — view logs
Summary: Total: 108 | Passed: 107 | Failed: 1
Updated: 2026-11-27 16:09:15 UTC
This comment has been minimized.
This comment has been minimized.
Scan-Build Report
Bug Summary
Filter Results by FileReports
|
|||||||||||||||||||||||||||||||||||||||||||||||||
6779cd7 to
45d82b0
Compare
d6d0e5e to
1fcbecf
Compare
1fcbecf to
471a8f7
Compare
Reliability & Chaos Results✅ All reliability & chaos checks passed Pipeline: https://gitlab.ddbuild.io/DataDog/java-profiler/-/pipelines/156815456 |
b7ee0a6 to
493815f
Compare
There was a problem hiding this comment.
More details
Unavailable base-version Git objects limited assessment of the ARM64 unwinding changes. No concrete regression was established in the available code.
🤖 Bits Code Review · Commit f4fb2bb
f4fb2bb to
0f12507
Compare
There was a problem hiding this comment.
More details
Nested-signal recovery intentionally stops at unsupported restorers, including musl’s __restore_rt. The completed static review raised no reportable findings; ARM64 signal-handler behavior remains unverified at runtime.
🤖 Bits Code Review · Commit 0f12507
…p setLink null-safe
…s gaps as failures
0f12507 to
7b39da6
Compare
There was a problem hiding this comment.
More details
Static review supports the restored PC and link-register handoff into Java walking, with unsupported signal restorers explicitly truncating the walk. ARM64 runtime behavior across nested signals remains unverified.
🤖 Bits Code Review · Commit 7b39da6
…for profiler handlers
What does this PR do?:
Preserve ARM64 native and Java ancestry during CPU and wall sampling. Correct DWARF return-address rules, C1 temporary stack areas and JNI wrapper phases, and recover saved contexts at Linux vDSO signal returns and at the libc restorer the kernel reports for profiler handlers.
Motivation:
Incorrect return-address sources and frame-size assumptions lose callers or fabricate ancestry across native transitions and nested signals.
Additional Notes:
rt_sigframefor everySA_RESTORERtrampoline, but the instruction pair alone does not prove a frame is one. Recovery trusts the vDSO restorer and the restorer the kernel reports, viart_sigaction, for a three-argument handler thatOS::installSignalHandlerjust installed. musl always installs its own__restore_rt. Without this, on musl arm64 every profiling signal that landed inside another profiler handler (CPU inside wall-clock, or the reverse) stopped at the handler, so 1–3% of carrier CPU samples were truncated in the chaos test. The trust is checked once, at install time, and then persists.OS::replaceCrashHandlerdoes not set it./code-review(medium) on each fix range. No Critical/High findings. Fixed: inaccurate restorer comment/doc, a misnamed test, four uncovered boundary branches (DW_CFA_nop, CIE-initial advance opcodes, thert_sigframespan bound, the native-leaf entry bound). The last fixes (doc corrections and the C++ cast conversion of this PR's added lines) had/code-reviewmedium; no Critical or High finding. The chaos-classifier fix had/code-reviewmedium and two fix rounds; no Critical or High finding. Open Low items from those reviews: the cap comment says a root-only regression fails, but only above the cap; the cap's assertion message hard-codes 10% and names carrier walks instead of successful boundary walks;TestingGuide.mddoes not name the cap's denominator; no test has a non-leaf thaw frame or a null method name; theeligible()test helper parsestoString(). Open Low items from the cast review:unwindEpilogueis called withreinterpret_cast<uintptr_t&>(epilogue_pc)on aconst void*local, a strict-aliasing write that predates the conversion; two unchanged lines next to converted ones still use C-style casts. The musl restorer fix had/code-reviewmedium and three fix rounds; no Critical or High finding. Open Low items from its last round:ReportsTheRestorerTheKernelHoldsForASignalrestores its signal only at the end, so a failed assertion leaves a fake handler on SIGRTMIN+7; the comment on the 1-arg step ofInstallingAHandlerTrustsOnlyAReportedRestorerstates a premise the test does not assert;installSignalHandler(signo, NULL, SIG_DFL)would take the 3-arg path (no caller does this). Open Low findings, not fixed (review-round limit reached):advanceDwarfFrame: the existingdepth == 1LR branch does not null-check the ucontext. No current caller reaches it without a context.signalFrame_utAcceptsFrameEndingAtSavedPcuses an interrupted SP inside the frame and copies the productionrequiredexpression.signalFrame_linux.cpprestorer comment could name the mechanism more precisely;JvmSupportLayer.mddoes not describe the CFI/FP fallback on other VMs.dwarf_ut:RestoreUsesCieDefinedReturnAddressRulestill usesASSERT_GE; the nop and CIE-advance tests could also assert rowloc.DW_CFA_restore) also fixes PROF-16925: onmain, a sample in an arm64 native leaf that has not saved LR ends after one frame.walkDwarfnow unwinds an atomic stub at any depth where the frame describes the cursor (atInterruptedContext), so a context restored at a signal frame that lands on a stub follows its LR into libjvm.interruptedContext_utcovers the helper; the end-to-end path (signal-frame recovery onto a stub) has no test, because it needs a Linux arm64 HotSpot fixture.walkDwarfrecovers a signal frame, the restored context's LR now reaches the Java walk:StackContext::lrcarries it,getJavaTraceAsyncwrites it next to PC/SP/FP for ASGCT's stub and prologue retries, andRegisterSnapshotsaves and restores LR so the sampling context is put back intact.ContinuationStackCheckscounts a known carrier's truncated, native-only stack as a failed walk, andGraalNativeUnwindRegressionTestcounts every skipped-frames gap in a workload sample. Accepted change (signed off by Paul Fournillon, 2026-11-26, recorded on PROF-16298): incstack=vmonly, a truncated carrier stack that ends at the single outermostJVM Continuationroot, with at least one thaw frame or nothing above it, is not a failed walk. It counts inthawsAtRoot, never as a success, and is capped at 10% of successful walks. Invmmode the walk stops at that root by design; a carrier sampled mid-thaw has no mounted Java frame yet. Accepted risk: a walker regression that emits only the root on up to 10% of carrier samples passes, and the exemption needs resolvedthawsymbols in libjvm./code-reviewmedium of1fcbecfe8(not addressed in this PR yet):cbnzor secondldpstill computes SP 16 bytes short (a coverage gap, not a regression).testCommonnow depends onchaosElements, whose JAR compiles against:ddprof-lib's debug configuration, so non-debug test cells may also build the native debug library (not measured).How to test the change?:
Run the native suites and the
GraalNativeUnwindRegressionTestandVirtualThreadCarrierChaosTestintegration tests through./.claude/commands/build-and-summarize.Validation for
6999f70b2(on #887f0df35f39)::ddprof-lib:gtestDebug: passed (1,710 tests OK, 0 failed).qualityChecksandspotlessCheck: passed.signalFrame_uton6999f70b2(podman, Linux arm64, JDK 25, debug): passed on musl and glibc (16 tests each). Removing the null-handler guard fails a test on glibc; trusting a 1-arg handler fails one on musl.d76f7adb4:signalFrame_utpassed on musl and on glibc (16 tests each). Each new guard fails a test when removed (checked by mutation on the libc where it applies).:ddprof-lib:gtestDebug: passed (onc5b2a47d7; the last commit changes onlyOS::installSignalHandler's call, its test and docs).VirtualThreadCarrierChaosTest(ond76f7adb4): passed; carrier-only failures 0 (CPU) and 0 (wall). Before the fix, 100 CPU samples stopped at the handler.VirtualThreadCarrierChaosTest(cstack=vmandvmx): passed (onc5b2a47d7).For Datadog employees:
credentials of any kind, I've requested a security review (run the
dd:platform-security-reviewskill, or file a request via the PSEC review form).
bewairealso runs automatically on every PR.