You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading the shim plugin, the following error is reported:
time="2024-01-21T11:07:44.731463684+08:00" level=warning msg="failed to load plugin io.containerd.runtime.v1.embed" error="program handle_sched_process_exit: apply CO-RE relocations: bad magic number '[159 235 1 0]' in record at byte 0x0"
Adding a print statement in exitsnoop.bpf.c seems to circumvent the issue:
rt= (structtask_info*)bpf_map_lookup_elem(&tracing_tasks, &pid);
if (!rt)
// todo Adding this print avoids the 'apply CO-RE relocations: bad magic number' error, specific cause to be locatedbpf_printk("rt is: %p\n",rt);
return0;
The text was updated successfully, but these errors were encountered:
Background
When loading the shim plugin, the following error is reported:
Adding a print statement in
exitsnoop.bpf.c
seems to circumvent the issue:The text was updated successfully, but these errors were encountered: