Skip to content

Drop lldb's loader rendezvous breakpoint before collecting stacktraces - #114272

Merged
alexey-milovidov merged 4 commits into
ClickHouse:masterfrom
groeneai:fix-113899-lldb-rendezvous-breakpoint
Sep 20, 2026
Merged

alexey-milovidov merged 4 commits into
ClickHouse:masterfrom
groeneai:fix-113899-lldb-rendezvous-breakpoint

Conversation

@groeneai

@groeneai groeneai commented Aug 11, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Description

Related: #113899

Requested by @ alexey-milovidov there (a carrier, not the cause):
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=113899&sha=340f0cc42a1ded689ad00156688922d25bc7ffef&name_0=PR&name_1=Stress%20test%20%28amd_tsan%29

Received signal 5 with _dl_debug_state in the stack is a debugger artifact, not a server fault,
yet the server dies for it. On attach lldb writes one 0xcc over _dl_debug_state in the running
server's text (its shared-library-event breakpoint), and only the debugger that wrote it restores
it: the subprocess.run timeout path is process.kill(), and a process-group SIGTERM, an
exception unwind and an abort() are no gentler. A later dlopen executes the orphaned int3,
raising SIGTRAP with si_code = SI_KERNEL, which SignalHandlers.cpp reports as fatal. In the
linked job, worker 0's timed-out lldb on server 2885 precedes that server's trap, in another
worker's test, by 21 minutes.

The fix deletes that breakpoint right after attach, so no later kill can orphan it. Candidate ids
come from lldb's own internal list, since internal ids decrement from 0 and are never recycled and
no fixed range bounds them; the symbol test picks the loader out of the JIT and sanitizer hooks, and
the command prints what it dropped, so an empty selection shows. A genuine SIGTRAP stays fatal.
Master's per-PID budget (my #114565) merges here unchanged: a higher ceiling times out less often
but cannot un-orphan a byte.

Validated on a real 171-thread server under the harness's exact SIGKILL teardown, on debug and
ASan+UBSan builds, on lldb 21.1.8 and on the 22.1.8 the test images install: the byte ends 0xcc
without the change and stays 0xf3 with it, and the backtrace is unchanged. A failed script
command is inert: --batch still produces the dump.

CIDB today: 22 _dl_debug_state reports over 180 days across 22 PRs, all sanitizer builds; the
trigger is still live, at 29 lldb ... timed out rows across 27 PRs in the last 30 days, newest
2026-09-02.

Version info

  • Merged into: 26.10.1.265-master (included in 26.10 and later)

The stress harness reports `Received signal 5` with `_dl_debug_state` in the
stack as a fatal signal, and the server dies for it. It is not a fault in
server code.

`get_stacktraces_from_lldb` attaches lldb under a 30 second ceiling. On attach,
DynamicLoaderPOSIXDYLD::DidAttach sets the shared-library-event breakpoint as a
software breakpoint, i.e. one 0xcc over the first byte of `_dl_debug_state` in
the running server's text. On a 172-thread sanitizer build `thread backtrace
all` exceeds the ceiling, and subprocess.run's timeout path is process.kill():
the debugger dies by SIGKILL with no chance to restore the byte. Any later
dlopen in that server executes the orphaned int3 and raises SIGTRAP with
si_code = SI_KERNEL, which is in fault_signals with only SIGTSTP exempt, so the
daemon takes the full fatal path. It is cross-worker, since the eight workers
share one server: in the report on ClickHouse#113899, worker 0's collector timed out on
server 2885 and 2885 trapped 21 minutes later inside another worker's test.

Deleting the breakpoint right after attach removes the cause rather than
managing it. From that instant there is nothing for any later kill to orphan:
the timeout SIGKILL, stop_tests()'s process-group SIGTERM, a BaseException
unwind and an lldb abort() all become harmless at once, with no trigger
enumeration and no change to signal handling. An orphaned int3 cannot be fixed
at the handler layer anyway, since the original byte is gone and the PC is
already past it, so suppressing the report would leave a server that traps
forever. A blanket SIGTRAP exemption would also be wrong on aarch64, where
__builtin_trap lowers to brk and SIGTRAP's fatal duty is load-bearing.

The breakpoint is selected by the symbol its location sits on, not by internal
id. Internal ids are assigned in insertion order, and both the JIT hook and the
sanitizer runtimes register before the dynamic loader plugin: on a real server
id -1 is __jit_debug_register_code, and on a sanitizer build -2 is
__ubsan_on_report. Deleting -1 would therefore remove the wrong breakpoint and
leave the 0xcc in place on exactly the builds where every occurrence happens.
SBBreakpoint does not expose GetBreakpointKind, so the location's symbol name is
the available discriminator. The delete runs after DidAttach has built the
module map, so symbolization is unaffected; losing shared-library notifications
for the rest of the attach is inert, because the inferior stays stopped for the
whole backtrace and no library can load in that window.

Validated on a real 172-thread server with the harness's exact teardown, on a
debug and an ASan+UBSan build, and end-to-end through
get_stacktraces_from_lldb: the byte ends 0xcc without the change and stays 0xf3
with it, while the backtrace is unchanged at 3746 frames and 344 threads with
the same symbolized count over three paired runs. Should the script command ever
fail, --batch continues to the next command and the collector still produces its
full dump, so the failure mode is never worse than the current behaviour.

CIDB counts 13 occurrences over 180 days across 13 distinct PRs, all sanitizer
builds: amd_tsan 7, arm_tsan 3, amd_msan 1, and two stateless amd_tsan.

Co-Authored-By: Claude Opus 5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review (2 findings, both disagreed with evidence)

An independent model reviewed this diff cold. Both of its findings are recorded here with my
reasoning; neither changed the code. A third finding of my own did change the PR body.

❌ "The collector still runs the backtrace when the breakpoint deletion matches nothing" —
disagree. Proposed remedy was to detach without collecting the backtrace unless exactly one
deletion succeeded. Two reasons: the committed test already asserts the deletion matched and
succeeded (Kind: shared-library-event must be absent afterwards, and exactly that one Kind may
disappear), and it is not decorative, because the CI Tests job's digest covers ./ci and the lldb
version is pinned there, so a breakpoint-layout change arriving via a version bump re-runs this job
and reddens the test. The remedy would also lose signal: all five callers are
diagnostic-on-failure paths (per-test timeout, SERVER_DIED, hung check, server-not-started,
end-of-run), so suppressing the backtrace there deletes the only C++-side evidence exactly when it
is needed, to avoid one fatal-signal report. The fail-open direction is measured, not assumed: with
a deliberately broken script line, --batch continues and still produces a full 3805-frame dump
with a clean detach, because code.InteractiveConsole.runsource catches the exception and
ExecuteOneLine reports success. Worst case is today's behaviour.

❌ "The test does not prove text restoration after a forced kill, and the release-build server
lacks the sanitizer breakpoint ordering"
— disagree. The kill-path property is proven, just not
by that test: on a real 172-thread server using the harness's exact
TimeoutExpired -> process.kill() path, three oracles disagree between arms (byte on debug, byte
on ASan+UBSan, end-to-end through get_stacktraces_from_lldb), with a vacuity guard that refused
4 s and 8 s deadlines because both arms then read 0xf3 for lack of a trigger. The committed test's
scope is the flag, its ordering relative to the backtrace, and the selector, mutation-validated four
ways. The release-build half is inverted: internal id -1 is ClickHouse's own JIT hook on both
plain and sanitizer builds, so the loader is -2 on debug and -3 on ASan+UBSan, and the naive
-1 mutation reddens on a plain server too. The suggested "assert a later dlopen succeeds" oracle
was measured vacuous twice (the relevant formats are pre-linked, so no fresh dlopen occurs); no
verdict rests on it.

⚠️ My own finding, fixed in the body: the breadth figure was stated as 13 events / 13 PRs. That
is a union of two predicates with different membership. One row matches only _dl_debug_state
(a px != 0 assertion failure with no signal-5 text) and one matches only Received signal 5
(an AST fuzzer hit on a non-sanitizer build, contradicting "all sanitizer builds"). The
intersection, which is this signature, is 12 events / 12 distinct PRs. The body now says that.

💡 Noted, not changed: the new test asserts debugger attach succeeded, while the sibling test four
lines above deliberately does not (it depends on kernel.yama.ptrace_scope). Kept, because both
asserts are vacuity guards: without stopped the two arms could agree for lack of any attach, and
without detached the no-drop arm could leave the orphaned byte in a live server and still pass.
The CI Tests job runs privileged as root, so the assertion cannot fail there on permissions.

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes, 100%. A real 172-thread server, the harness's exact teardown (SIGKILL the debugger mid-thread backtrace all), then read the byte at _dl_debug_state in /proc/<pid>/mem: 0xf3 before, 0xcc after. 3/3 on debug, 3/3 on ASan+UBSan, 3/3 end-to-end through get_stacktraces_from_lldb itself.
b Root cause explained? Yes. On attach lldb plants its shared-library-event breakpoint as one 0xcc over _dl_debug_state in the running server's text (DynamicLoaderPOSIXDYLD.cpp:147, request_hardware=false at :362). The 30 s ceiling in shell_get_output is exceeded on a sanitizer build; subprocess.run's timeout path is process.kill(), so the debugger dies by SIGKILL and never restores the byte. A later dlopen executes the orphaned int3 and raises SIGTRAP with si_code = SI_KERNEL, which is in fault_signals (SignalHandlers.cpp:842) with only SIGTSTP exempt (:144, :168).
c Fix matches root cause? Yes. It deletes the breakpoint while the debugger is still healthy, so the 0xcc never exists during the window in which the debugger can be killed. That neutralizes every kill trigger at once (the timeout SIGKILL, stop_tests()'s killpg(SIGTERM), a BaseException unwind, an lldb abort()). Not a symptom guard: no SIGTRAP exemption, no report suppression, no change to signal handling. An orphaned int3 is not recoverable at the handler layer anyway (the original byte is gone and the PC is past it).
d Test intent preserved / new tests added? Yes. Nothing existing is weakened; the collector's output is unchanged (see e). New test ci/tests/test_print_stacktraces.py::test_lldb_collector_drops_the_loader_rendezvous_breakpoint, mutation-validated: it fails on unfixed master, on the command reordered so the delete follows the backtrace, on the naive BreakpointDelete(-1) selector, and on a typo'd symbol; it passes on the restored tree, on both a debug and a sanitizer server. It carries its own premises (both arms must show Process <pid> stopped, and the breakpoint must be present in the no-drop arm).
e Both directions demonstrated? Yes, three independent oracles, arms disagreeing in all three. Byte, real debug server: without 0xcc, with 0xf3. Byte, real ASan+UBSan server: same, and the selector reports the loader id while breakpoint list --internal afterwards still shows the JIT and UBSan hooks. End-to-end through get_stacktraces_from_lldb: 0xcc vs 0xf3. Backtrace quality identical over 3 paired runs (3746 frames / 344 threads / 3746 symbolized, both arms), still clearing the len(bt) >= 1000 gate. The end-to-end arm carries a vacuity guard: a poller must observe 0xcc at some point, which correctly refused two shorter deadlines where both arms would have read clean for lack of a trigger.
f Fix is general across code paths? Yes. This is the repo's only lldb invocation, and both of its callers (tests/clickhouse-test:776 and :1324) go through it, so one line covers both; the :776 caller is additionally exempt because its victims are killed on the next lines. All 7 in-tree gdb attach sites audited and safe: timeout's default SIGTERM (measured to restore the byte), or no kill path, or the process is launched rather than attached, or the victim is stopped immediately afterwards. clickhouse_proc.py:784's deliberate SIGTRAP must stay fatal and is untouched.
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes. Debug and ASan+UBSan servers both measured. Main-server and replica pids take the same path (one function, pid its only argument). The sudo (Darwin) and non-sudo command forms both parse under shlex to 13 and 12 tokens with the command intact as a single argument. The selector scans internal ids -1..-15 and tolerates both absent ids (IsValid() returns false) and zero-location breakpoints (GetName() returns None, no exception). Selecting by symbol rather than by id is required because on a real server -1 is __jit_debug_register_code, not the loader.
h Backward compatible? (maintainer-approved exception only) Yes, trivially. No setting, no serialization format, no SettingsChangesHistory.cpp entry, no user-visible behaviour. tests/clickhouse-test and ci/tests/ only.
i Invariants and contracts preserved? Yes. shell_get_output, the 30 s ceiling, keep_output_on_error, the len(bt) >= 1000 gate, the Darwin sudo branch and the ASan early return are all untouched. Each -o argument remains one shell word. The single behaviour change is that lldb stops being notified of new dlopens for the rest of the attach, which is inert: the inferior is stopped for the whole backtrace, so no library can load in that window. On any failure of the script command --batch continues to the next command, so the worst case is exactly today's behaviour, never worse (measured: a deliberately broken script line still yields 3805 frames and a clean detach).

Session id: cron:clickhouse-impl-slot-5:20260811-030500

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @leshikus, could you review this? On attach lldb writes an int3 over _dl_debug_state in the live server, and when shell_get_output's 30 s timeout SIGKILLs it mid-backtrace the byte is never restored, so a later dlopen in that server raises a fatal SIGTRAP; this deletes that one breakpoint right after attach, selected by symbol because internal ids are insertion-ordered and -1 is the JIT hook.

@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Aug 12, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [ee7a654]

Summary: ✅


AI Review

Summary

The PR teaches get_stacktraces_from_lldb to delete lldb's internal loader rendezvous breakpoint before collecting a backtrace, which should prevent a later timeout or kill from leaving an orphaned int3 in the inferior. The selector is now better than the earlier fixed-range scan, but the current head still leaves the safety guarantee fragile because a parser/selector miss only logs dropped [] and there is no longer an automated regression test covering that drift.

Findings

⚠️ Majors

  • [tests/clickhouse-test:1104] The collector still fails open when the breakpoint list --internal parser or the dl_debug_state symbol match stops working: it logs an empty drop list and continues into thread backtrace all, which re-exposes the original orphaned-SIGTRAP failure. Suggested fix: keep a small automated test for the parser/selector against captured lldb 21/22 output, or make "could not delete the rendezvous breakpoint" an explicit failure instead of a logged no-op.
Final Verdict

Changes are not ready to merge as-is: the fix still lacks a durable regression guard for the fail-open parser path.

LLVM Coverage Report

Measured on commit ee7a654.

Metric Baseline Current Δ
Lines 88.80% 88.80% +0.00%
Functions 91.80% 91.70% -0.10%
Branches 81.10% 81.20% +0.10%

Changed lines: Uncovered code analysis did not run: No coverable C/C++ source files changed (contrib/ is excluded from coverage).

Newly covered: +923 lines in 248 files (-839 lines lost coverage) · Details

Full report

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Aug 12, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - f22a713

Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Stress test (amd_msan) / Hung check failed, possible deadlock found cancelled DROP TABLE prometheus wedged in DatabaseCatalog::waitTableFinallyDropped via StorageTimeSeries::dropInnerTableIfAny (root elapsed 424 s) 113397 (external, open)
CH Inc sync - CH Inc sync (private, not actionable)

Signature confirmed from the hung_check.log artifact, not from test_context_raw (truncated for
this signature).

Session id: cron:our-pr-ci-monitor:20260812-050000

@groeneai groeneai mentioned this pull request Aug 13, 2026
1 task done
…dezvous-breakpoint

Resolves one conflict: ci/tests/test_print_stacktraces.py was deleted on
master in 3a69545, which removed the whole ci/tests suite alongside
the .claude/CLAUDE.md note that CI script changes are exercised with a
throwaway script rather than committed coverage. Six later commits restored
39 of the 71 deleted files by name; this one was not among them, so the
deletion is taken.

The remaining change is the fix itself in tests/clickhouse-test, unmodified:
master's get_stacktraces_from_lldb is byte-identical to the merge-base
version, so that half auto-merged, and the added and removed payload lines
hash the same before and after the merge.
@clickhouse-gh clickhouse-gh Bot added the manual approve Manual approve required to run CI label Aug 17, 2026
Comment thread tests/clickhouse-test Resolved
@clickhouse-gh

clickhouse-gh Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 7abb85d05 with master d59f2be34 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes
Binary Master PR Δ
programs/clickhouse-stripped 700.94 MiB 697.93 MiB -3.01 MiB (-0.43%)

Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction.

Compile time of recompiled translation units

7 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline.

Job report

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger — 7abb85d

Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Fast test (arm_darwin) · Stress test (arm_asan_ubsan, s3) · Stress test (arm_tsan) · Stateless tests (amd_msan, WasmEdge, sequential, 2/2) · Stateless tests (amd_debug, distributed plan, s3 storage, sequential) · Stateless tests (amd_llvm_coverage, 2/3) · Stateless tests (amd_tsan, sequential, 1/2) infra — all 7 died in GitHub's Set up job step before checkout: ##[error]Failed to download archive 'https://codeload.github.com/actions/checkout/tar.gz/d234...' after 3 attempts (429/502/503). No test ran a fix task is created (investigating at full effort — fixing-PR link to follow on this PR)
LLVM Coverage infra — the job died in its own Run phase at Mint GitHub token via lambda [mint-token-pr-lambda-terraform] with ERROR: GH auth failed - required by job; that mint call carries no retry, unlike the gh auth login step downstream of it a fix task is created (investigating at full effort — fixing-PR link to follow on this PR)
Stateless tests (arm_asan_ubsan, azure, parallel) / 04676_adaptive_aggregation_replicated_argument flaky oracle, not this PR — normalized nullable 1 vs 0; 19 failures across 19 unrelated PRs in 30 d and 0 on true master, and this PR's whole diff is the lldb-attach path of tests/clickhouse-test a fix task is moved to pending (investigating at full effort — fixing-PR link to follow on this PR)

Session id: cron:our-pr-ci-monitor:20260817-183000

@groeneai

Copy link
Copy Markdown
Collaborator Author

Correction to the LLVM Coverage row of my ledger above, and closing it out: no fixing PR will follow.

My row said the lambda mint "carries no retry, unlike the gh auth login step downstream of it".
That is wrong. The mint did not fail. auth_with_lambda prints WARNING: GH auth failed: <e> on any
mint exception when called with no_strict=True (ci/praktika/gh_auth.py:183-187, which is how
ci/praktika/runner.py:320 calls it), and I forced all five reachable raise sites in
_get_access_token_from_lambda to confirm the warning is unconditional. No job.log in this window has
that line: 0 occurrences across the 13 affected heads I fetched. The mint also already retries, since
the boto3 lambda client is built with no Config and so uses botocore's legacy retry mode.

What actually happened: the mint returned a token, then gh auth login --with-token failed against
api.github.com, _GH_AUTH_RETRY_ERRORS matched, and all 4 attempts were spent. The 21-23s gap is the
2+4+8s backoff plus four real round-trips. All 14 failing jobs burned the full ladder and none
recovered on a later attempt, so this was a GitHub-side outage, not a missing retry.

I am not opening a PR. Nothing in praktika would have saved these jobs: a wider retry budget at that
moment would only have collected more 5xx, and the job correctly reports ERROR rather than a false
green, so no failure is being hidden. One real residual, which I am recording and not chasing:
gh_auth.py:155,181 are the only retry_errors callers that go through Shell.check, whose
verbose defaults to False, while every sibling site reaches Shell.run with verbose=True. That
is why these failures log one line and no cause. Happy to send the two-line change if a maintainer
wants the diagnostics on.

@groeneai groeneai added the groeneai-origin-request PR origin: a maintainer pinged or directed groeneai label Aug 19, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-testing Test content only (no production code). label Sep 4, 2026
…dezvous-breakpoint

Resolves one conflict, both hunks inside the lldb collector in
tests/clickhouse-test, taking master's side for everything that is not the fix.

Master gave get_stacktraces_from_lldb a per-PID budget: LLDB_TIMEOUT and
LLDB_SLOW_BUILD_TIMEOUT landed in the same place this branch defines
LLDB_DROP_RENDEZVOUS_BREAKPOINT, and the call now passes timeout=timeout where
this branch pinned timeout=30. Both constant blocks are kept, master's
unchanged, and master's timeout parameter replaces the pinned ceiling, so the
fix no longer touches the budget at all. The one line it still changes there is
the command string, which gains the breakpoint delete as an extra -o.

The merged file differs from master by 15 added and 1 removed line, all of them
the fix, and the staged tree differs from master in tests/clickhouse-test alone,
so no other master change is disturbed. The collector is still the only
lldb --batch call in the file, so the carrier set is unchanged. The merged file
parses, and black 26.5.1 reports byte-identical findings on it and on master's
own copy, i.e. the resolution adds no formatting divergence.

Co-Authored-By: Claude Opus 5 <[email protected]>
Comment thread tests/clickhouse-test Resolved
The rendezvous-breakpoint drop scanned internal breakpoint ids -1 .. -15 and
filtered by symbol. lldb hands internal ids out of a counter that starts at 0
and decrements, and removing a breakpoint does not return the id to it
(BreakpointList::Add at lldb/source/Breakpoint/BreakpointList.cpp:31 in
release/22.x, and Remove at :41-57 leaves m_next_break_id alone), so nothing
bounds the loader breakpoint's id. Enough internal breakpoints created, or
created and removed, before DynamicLoaderPOSIXDYLD::DidAttach and it sits
past -15: the comprehension matches nothing, says nothing, and the orphaned
int3 is back.

Enumerate the ids from `breakpoint list --internal`, keep the symbol test as
the selector, and print what was found and what was dropped so that an empty
selection is visible in c_stacktraces.log instead of silent.

Measured on lldb 21.1.8 and on lldb 22.1.8, the version the test images
install (ci/docker/test-base/Dockerfile pins LLVM_VERSION=22):

- 171-thread debug server, real attach: `internal breakpoints [-1, -2],
  dropped [-2]`, the JIT hook at -1 left in place, 3719 backtrace frames in
  both arms, and `breakpoint list --internal` costs 7.2 ms on the first call
  and 0.1 ms after, for 523 characters of output.
- Fresh victim per arm under the harness's SIGKILL teardown: with the window
  narrowed so the loader breakpoint falls outside it, the byte at
  `_dl_debug_state` goes 0xf3 -> 0xcc, the victim takes SIGTRAP, and nothing
  is printed. Reading the ids keeps the byte at 0xf3.
- Two mutations, a typo'd symbol and a broken enumeration, both leave the
  loader breakpoint in place, orphan the byte, and print `dropped []`.

The two versions render the loader breakpoint differently, lldb 22 as
`names = {...}` where 21 uses `address = ...`, so the leading `-N:` id is what
is parsed; it is common to both. There is no floor-free alternative in the SB
API: SBTarget.GetNumBreakpoints() returns 0 while the internal breakpoint
exists, and walking down from -1 to the first invalid id stops early because
Remove leaves holes.
Comment thread tests/clickhouse-test
'hit=[i for i in ids if "dl_debug_state" in str(t.FindBreakpointByID(i)'
".GetLocationAtIndex(0).GetAddress().GetSymbol().GetName())]; "
'print("internal breakpoints %s, dropped %s"'
" % (ids, [i for i in hit if t.BreakpointDelete(i)]))"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This still degrades back to the old bug when the breakpoint list --internal parser or the dl_debug_state symbol match stops working: hit == [] only changes the text we print here, and the backtrace still runs with the loader breakpoint armed. That re-exposes the original orphaned-SIGTRAP failure on the next lldb/LLVM_VERSION output drift.

Since the current tree no longer carries the focused regression test that originally guarded this parser/selector, please either keep a small automated test for this command shape (for example against captured lldb 21/22 output) or make "could not delete the rendezvous breakpoint" an explicit failure instead of a logged no-op.

@alexey-milovidov alexey-milovidov self-assigned this Sep 20, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Sep 20, 2026
Merged via the queue into ClickHouse:master with commit 2beb585 Sep 20, 2026
175 checks passed
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-testing Test content only (no production code). groeneai-origin-request PR origin: a maintainer pinged or directed groeneai manual approve Manual approve required to run CI pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants