perf trace segfault
From: Santiago Pastorino
Date: Mon Nov 18 2019 - 07:33:55 EST
Hi,
I'm currently running Linux kernel 5.3.11-arch1-1 and I'm getting a segfault
when I run `perf trace` after some seconds.
Here I'm pasting the backtrace:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fdbb2615a40 in main_arena () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007fdbb2615a40 in main_arena () from /usr/lib/libc.so.6
#1 0x0000562fc44e22d7 in syscall__scnprintf_val (sc=0x562fc50cc4a0,
val=6, arg=0x7ffd10440870, size=2021, bf=0x562fc52b722b "") at
builtin-trace.c:1649
#2 syscall__scnprintf_args (sc=sc@entry=0x562fc50cc4a0,
bf=0x562fc52b721b "fd: 223, level: ", size=2037,
args=args@entry=0x7fdbb21a118c <error: Cannot access memory at address
0x7fdbb21a118c>, augmented_args=augmented_args@entry=0x0,
augmented_args_size=augmented_args_size@entry=0, trace=0x7ffd10440fa0,
thread=0x562fc51da000) at builtin-trace.c:1716
#3 0x0000562fc44e3e22 in trace__sys_enter (trace=0x7ffd10440fa0,
evsel=<optimized out>, event=<optimized out>, sample=0x7ffd10440990)
at builtin-trace.c:1935
#4 0x0000562fc44e11ac in trace__handle_event (sample=0x7ffd10440990,
event=0x7fdbb21a1140, trace=0x7ffd10440fa0) at builtin-trace.c:2645
#5 __trace__deliver_event (trace=trace@entry=0x7ffd10440fa0,
event=0x7fdbb21a1140) at builtin-trace.c:2899
#6 0x0000562fc44ea7dc in trace__deliver_event (event=<optimized out>,
trace=0x7ffd10440fa0) at builtin-trace.c:2926
#7 trace__run (argv=<optimized out>, argc=<optimized out>,
trace=0x7ffd10440fa0) at builtin-trace.c:3124
#8 cmd_trace (argc=<optimized out>, argv=<optimized out>) at
builtin-trace.c:4060
#9 0x0000562fc4519043 in run_builtin (p=0x562fc4a026c0 <commands+576>,
argc=1, argv=0x7ffd10444560) at perf.c:304
#10 0x0000562fc44952fc in handle_internal_command (argv=<optimized
out>, argc=<optimized out>) at perf.c:356
#11 run_argv (argcp=<optimized out>, argv=<optimized out>) at perf.c:400
#12 main (argc=1, argv=0x7ffd10444560) at perf.c:522
(gdb) quit
# perf --version
perf version 5.3.g4d856f72c10e
Thanks for reading and feel free to cc me in replies since I'm not
subscribed to lkml.