BCC tool 'execsnoop -q' fails with Traceback
Issue
- BCC tool
execsnoop -q
fails with Traceback
# /usr/share/bcc/tools/execsnoop -q
PCOMM PID PPID RET ARGS
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 234, in 'calling callback function'
File "/usr/lib/python3.6/site-packages/bcc/table.py", line 572, in raw_cb_
callback(cpu, data, size)
File "/usr/share/bcc/tools/execsnoop", line 229, in print_event
for arg in argv[event.pid]
File "/usr/share/bcc/tools/execsnoop", line 229, in <listcomp>
for arg in argv[event.pid]
TypeError: a bytes-like object is required, not 'str'
Environment
- Red Hat Enterprise Linux 8
- bcc-tools
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.