Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1018319 > unrolled thread

Bug#965188: "TypeError: string argument without an encoding" with --name

Started byPhilipp Marek <philipp@marek.priv.at>
First post2020-07-17 14:10 +0200
Last post2020-07-17 18:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#965188: "TypeError: string argument without an encoding" with --name Philipp Marek <philipp@marek.priv.at> - 2020-07-17 14:10 +0200
    Bug#965188: "TypeError: string argument without an encoding" with --name Ritesh Raj Sarraf <rrs@debian.org> - 2020-07-17 18:20 +0200

#1018319 — Bug#965188: "TypeError: string argument without an encoding" with --name

FromPhilipp Marek <philipp@marek.priv.at>
Date2020-07-17 14:10 +0200
SubjectBug#965188: "TypeError: string argument without an encoding" with --name
Message-ID<AtxlD-4mV-3@gated-at.bofh.it>
Package: bpfcc-tools
Version: 0.12.0-2
Severity: normal

When using "trace-bpfcc" with the "--name" option, errors are reported 
instead of events:

    $ trace-bpfcc vfs_open -KUa -n ls
    Exception ignored on calling ctypes callback function: <function PerfEventArray._open_perf_buffer.<locals>.raw_cb_ at 0x7f274cbb5ee0>
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/bcc/table.py", line 683, in raw_cb_
        callback(cpu, data, size)
      File "/usr/sbin/trace-bpfcc", line 575, in print_event
        if self.name and bytes(self.name) not in event.comm:
    TypeError: string argument without an encoding
    ....


Thanks a lot!


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.0-2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8), LANGUAGE=de_AT:de
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages bpfcc-tools depends on:
ii  python3          3.8.2-3
ii  python3-bpfcc    0.12.0-2
ii  python3-netaddr  0.7.19-4

bpfcc-tools recommends no packages.

bpfcc-tools suggests no packages.

-- no debconf information

-- 

[toc] | [next] | [standalone]


#1018348

FromRitesh Raj Sarraf <rrs@debian.org>
Date2020-07-17 18:20 +0200
Message-ID<AtBfz-6FD-5@gated-at.bofh.it>
In reply to#1018319

[Multipart message — attachments visible in raw view] — view raw

Control: tag -1 +pending

Dear Philipp,

On Fri, 2020-07-17 at 14:01 +0200, Philipp Marek wrote:
> When using "trace-bpfcc" with the "--name" option, errors are
> reported 
> 
> instead of events:
> 
> 
> 
>     $ trace-bpfcc vfs_open -KUa -n ls
> 
>     Exception ignored on calling ctypes callback function: <function
> PerfEventArray._open_perf_buffer.<locals>.raw_cb_ at 0x7f274cbb5ee0>
> 
>     Traceback (most recent call last):
> 
>       File "/usr/lib/python3/dist-packages/bcc/table.py", line 683,
> in raw_cb_
> 
>         callback(cpu, data, size)
> 
>       File "/usr/sbin/trace-bpfcc", line 575, in print_event
> 
>         if self.name and bytes(self.name) not in event.comm:
> 
>     TypeError: string argument without an encoding
> 
>     ....

Thank you very much for the bug report.
This is fixed and pending upload to Debian Unstable, which should
happen very soon with a new release too.

-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web