Skip to content

fix: support target-mode backtraces in child containers#233

Merged
swananan merged 1 commit into
mainfrom
test/enable-child-container-t-backtrace
Jun 24, 2026
Merged

fix: support target-mode backtraces in child containers#233
swananan merged 1 commit into
mainfrom
test/enable-child-container-t-backtrace

Conversation

@swananan

Copy link
Copy Markdown
Owner

Publish proc module offsets under each runtime PID view used by target-mode events, including child-container event TGIDs. Refresh target-mode backtrace runtime modules from trace event PIDs so late-loaded libraries get offsets and CFI rows before rendering.

Keep executable target-mode map-change events allowlist-gated to avoid pre-allowlist mmap traffic delaying short-lived targets, while shared object targets can still receive pre-allowlist map-change events for first-load detection.

@swananan swananan force-pushed the test/enable-child-container-t-backtrace branch 2 times, most recently from dc7eaa1 to 194acc5 Compare June 24, 2026 04:21
Publish target-mode proc module offsets only under runtime PID keys tied
back to the refreshed proc PID. For a single target process, still accept
extra event PIDs when the PID is hidden from the observer /proc. This
preserves child-container host TGID lookups without reintroducing visible
multi-process aliasing.

Treat shared-object exec misses as map-change candidates instead of
unresolved aliases. Short polling covers startup races, but exhausted
candidates stay dormant until a real map-change proves the PID maps the
target before offsets and allowlist entries are published.

Filter unmatched map-change events before waking the session and only emit
synthetic refresh notifications when target offsets actually change.

Serialize dlopen backtrace e2e cases that share the same fixture process.
Raise target-mode callback and shared-CFI sampling windows so CI observes
late module-offset and CFI refreshes reliably.
@swananan swananan force-pushed the test/enable-child-container-t-backtrace branch from 194acc5 to 230a43e Compare June 24, 2026 09:00
@swananan swananan merged commit 312e6df into main Jun 24, 2026
9 checks passed
@swananan swananan deleted the test/enable-child-container-t-backtrace branch June 24, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant