opentelemetry-go-instrumentation icon indicating copy to clipboard operation
opentelemetry-go-instrumentation copied to clipboard

bpf error log:failed to write to userspace

Open exazx888 opened this issue 1 year ago • 0 comments

Describe the bug

    tb-apiserver-4094175 [004] d...1 1210684.033707: bpf_trace_printk: failed to write to userspace, error code: -14, addr: 7f202805e000, size: 11
    tb-apiserver-4094175 [004] d...1 1210684.033708: bpf_trace_printk: write_user_go_string: failed to copy string to userspace
    tb-apiserver-4094175 [004] d...1 1210684.033709: bpf_trace_printk: key write failed, aborting ebpf probe
    tb-apiserver-4094148 [016] d...1 1210680.390681: bpf_trace_printk: failed to write to userspace, error code: -14, addr: 7f20280be000, size: 11
    tb-apiserver-4094148 [016] d...1 1210680.390681: bpf_trace_printk: inject_header: Failed to write key to user
    tb-apiserver-4094148 [016] d...1 1210680.390682: bpf_trace_printk: uprobe_Transport_roundTrip: Failed to inject header

When injecting 'traceparent' on the client side, an error occurs, and the server side will generate a new traceId.

There was no problem when the program first started running, but after a period of time, this error occurred. Is that reach the kernel's limit on the number of user space writes?

exazx888 avatar Apr 12 '24 09:04 exazx888