Bug ID 1207295
Summary bpftrace: SIGSEGV on almost any simple program
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware x86-64
OS Other
Status NEW
Severity Major
Priority P5 - None
Component Kernel
Assignee kernel-bugs@opensuse.org
Reporter cartesius68@gmail.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

SIGSEGV:

```
$ bpftrace -dd -e 'kprobe:do_nanosleep { printf("%d sleeping\n", pid); }'
BTF: using data from /sys/kernel/btf/vmlinux
BTF: using data from /sys/kernel/btf/vmlinux

AST after: parser
-------------------
Program
 kprobe:do_nanosleep
  call: printf :: type[none, ctx: 0]
   string: %d sleeping\n :: type[none, ctx: 0]
   builtin: pid :: type[none, ctx: 0]


AST after: Semantic
-------------------
Program
 kprobe:do_nanosleep
  call: printf :: type[none, ctx: 0]
   string: %d sleeping\n :: type[string[13], ctx: 0]
   builtin: pid :: type[unsigned int64, ctx: 0]


AST after: NodeCounter
-------------------
Program
 kprobe:do_nanosleep
  call: printf :: type[none, ctx: 0]
   string: %d sleeping\n :: type[string[13], ctx: 0]
   builtin: pid :: type[unsigned int64, ctx: 0]


AST after: ResourceAnalyser
-------------------
Program
 kprobe:do_nanosleep
  call: printf :: type[none, ctx: 0]
   string: %d sleeping\n :: type[string[13], ctx: 0]
   builtin: pid :: type[unsigned int64, ctx: 0]

Segmentation fault (core dumped)
```

and many other simple programs.



```
Information for package bpftrace:
---------------------------------
Repository     : Main Repository (OSS)
Name           : bpftrace
Version        : 0.16.0-2.1
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 60.5 MiB
Installed      : Yes
Status         : up-to-date
Source package : bpftrace-0.16.0-2.1.src

System:
  Host: pn52 Kernel: 6.1.6-1-default arch: x86_64 bits: 64 Console: pty pts/0
Distro: openSUSE
    Tumbleweed 20230117
```


You are receiving this mail because: