Skip to content

fix: suppress noisy uprobe symbol-not-found errors#242

Merged
mayankpande88 merged 2 commits into
mainfrom
fix-ebpf-attachment
Apr 20, 2026
Merged

fix: suppress noisy uprobe symbol-not-found errors#242
mayankpande88 merged 2 commits into
mainfrom
fix-ebpf-attachment

Conversation

@mayankpande88

Copy link
Copy Markdown
Contributor

Summary

  • Suppress "symbol not found" errors in nodejs and python uprobe attachment logging
  • Binaries like calico-node match the nodejs detection regex but lack uv__io_poll, and some libpthread.so builds lack pthread_cond_timedwait — these are expected failures, not actionable errors
  • Adds "not found" to the existing suppressed error suffix list in both nodejs.go and python.go

Test plan

  • Deploy to dev cluster and verify no failed to attach nodejs uprobes: symbol uv__io_poll not found errors for calico-node
  • Verify no failed to attach python uprobes: symbol pthread_cond_timedwait not found errors for stripped libpthread
  • Verify real Node.js and Python processes still get uprobes attached (look for nodejs uprobes attached / python uprobes attached info logs)

… binaries

Binaries like calico-node match the nodejs detection regex but lack
uv__io_poll. Similarly, some libpthread.so builds lack
pthread_cond_timedwait. These are expected failures, not actionable
errors — suppress them like other benign attachment failures.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the error suppression logic in ebpftracer/nodejs.go and ebpftracer/python.go to include the "not found" suffix. Feedback indicates that this suffix is too generic and could inadvertently suppress unrelated errors, such as namespace PID lookup failures. It is recommended to use a more specific check for symbol lookup failures and to centralize this duplicated logic within the Tracer struct to improve maintainability.

Comment thread ebpftracer/nodejs.go Outdated
Comment thread ebpftracer/python.go Outdated
blue4209211
blue4209211 previously approved these changes Apr 16, 2026
Generic "not found" suffix could mask unrelated errors. Match the
specific error format from elf.go GetSymbol instead.
@mayankpande88 mayankpande88 merged commit e7eadcf into main Apr 20, 2026
1 check passed
@mayankpande88 mayankpande88 deleted the fix-ebpf-attachment branch April 20, 2026 05:58
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.

3 participants