bcc icon indicating copy to clipboard operation
bcc copied to clipboard

tools/memleak: fix print_outstanding_combined function

Open yezhengmao1 opened this issue 3 years ago • 3 comments

Traceback (most recent call last):
  File "/share/bcc/tools/memleak", line 568, in <module> 
    print_outstanding_combined()
  File "share/bcc/tools/memleak", line 541, in print_outstanding_combined 
    trace = "\n\t\t".join(trace) 
TypeError: sequence item 0: expected str instance, bytes found

fix this.

yezhengmao1 avatar Jul 25 '22 09:07 yezhengmao1

could you add a commit message to the patch and description in the github to describe what command line you are using and which python major version (python2 or python3) you are using?

yonghong-song avatar Jul 29 '22 06:07 yonghong-song

could you add a commit message to the patch and description in the github to describe what command line you are using and which python major version (python2 or python3) you are using?

@yonghong-song ok

python --version

Python 3.7.9

memleak --combined-only 10

Attaching to kernel allocators, Ctrl+C to quit. Traceback (most recent call last): File "/share/bcc/tools/memleak", line 568, in print_outstanding_combined() File "share/bcc/tools/memleak", line 541, in print_outstanding_combined trace = "\n\t\t".join(trace) TypeError: sequence item 0: expected str instance, bytes found

the error just like the output.

yezhengmao1 avatar Aug 01 '22 08:08 yezhengmao1

can review this @yonghong-song

yezhengmao1 avatar Aug 16 '22 10:08 yezhengmao1