Skip to contentSkip to conversation

Perf dumps core when running test case 86 on x86 and s390

DISCUSSION Thomas Richter 1 participant 1 message Dec 12, 2022

lore
Share & tools
lore
#0 lore raw

I just downloaded and installed Fedora 37 and the latest Linux kernel 6.1 on my x86 virtual machine (running on my Lenovo P15 TP)

When I run the perf tool test suite test case 86 'kernel lock contention analysis' I hit a core dump.
Here is the stack trace:

....
--Type <RET> for more, q to quit, c to continue without paging--
Core was generated by `perf lock contention -i /tmp/__perf_test.perf.data.YR9Bn -E 1 -q'. Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000000462b52 in is_lock_function (machine=0x1df2ed8, addr=18446744071579970007)

    at builtin-lock.c:882
882			lock_text_start = kmap->unmap_ip(kmap, sym->start);
(gdb) where
#0  0x0000000000462b52 in is_lock_function (machine=0x1df2ed8, addr=18446744071579970007)
    at builtin-lock.c:882
#1  0x0000000000462fdf in callchain_id (evsel=0x1dfa470, sample=0x7ffd1af0a770) at builtin-lock.c:1009
#2  0x0000000000462140 in get_key_by_aggr_mode (key=0x7ffd1af0a4f0, addr=18446612682148243264, 
    evsel=0x1dfa470, sample=0x7ffd1af0a770) at builtin-lock.c:589
#3  0x0000000000463194 in report_lock_contention_begin_event (evsel=0x1dfa470, sample=0x7ffd1af0a770)
    at builtin-lock.c:1051
#4  0x0000000000463811 in evsel__process_contention_begin (evsel=0x1dfa470, sample=0x7ffd1af0a770)
    at builtin-lock.c:1231
#5  0x00000000004640f9 in process_sample_event (tool=0x7ffd1af0b080, event=0x7fd21c950bd8, 
    sample=0x7ffd1af0a770, evsel=0x1dfa470, machine=0x1df2ed8) at builtin-lock.c:1413
#6  0x000000000056ce18 in evlist__deliver_sample (evlist=0x1df99b0, tool=0x7ffd1af0b080, 
    event=0x7fd21c950bd8, sample=0x7ffd1af0a770, evsel=0x1dfa470, machine=0x1df2ed8)
    at util/session.c:1520
#7  0x000000000056cff6 in machines__deliver_event (machines=0x1df2ed8, evlist=0x1df99b0, 
    event=0x7fd21c950bd8, sample=0x7ffd1af0a770, tool=0x7ffd1af0b080, file_offset=7128, 
    file_path=0x1df29d0 "/tmp/__perf_test.perf.data.YR9Bn") at util/session.c:1559
#8  0x000000000056d541 in perf_session__deliver_event (session=0x1df2cd0, event=0x7fd21c950bd8, 
    tool=0x7ffd1af0b080, file_offset=7128, file_path=0x1df29d0 "/tmp/__perf_test.perf.data.YR9Bn")
    at util/session.c:1640
#9  0x000000000056945c in ordered_events__deliver_event (oe=0x1df9850, event=0x1e20960)
    at util/session.c:187

#10 0x0000000000573a7e in do_flush (oe=0x1df9850, show_progress=true) at util/ordered-events.c:245 #11 0x0000000000573db8 in __ordered_events__flush (oe=0x1df9850, how=OE_FLUSH__FINAL, timestamp=0)
at util/ordered-events.c:324
#12 0x0000000000573e8d in ordered_events__flush (oe=0x1df9850, how=OE_FLUSH__FINAL)
at util/ordered-events.c:342
#13 0x000000000056f893 in __perf_session__process_events (session=0x1df2cd0) at util/session.c:2461 #14 0x0000000000570216 in perf_session__process_events (session=0x1df2cd0) at util/session.c:2623 #15 0x0000000000464efb in __cmd_contention (argc=0, argv=0x7ffd1af0c380) at builtin-lock.c:1742 #16 0x0000000000465e70 in cmd_lock (argc=0, argv=0x7ffd1af0c380) at builtin-lock.c:1992 --Type <RET> for more, q to quit, c to continue without paging--
#17 0x00000000004f030b in run_builtin (p=0xe4aa08 <commands+552>, argc=7, argv=0x7ffd1af0c380) at perf.c:322 #18 0x00000000004f057f in handle_internal_command (argc=7, argv=0x7ffd1af0c380) at perf.c:376 #19 0x00000000004f06ce in run_argv (argcp=0x7ffd1af0c1ac, argv=0x7ffd1af0c1a0) at perf.c:420 #20 0x00000000004f0a95 in main (argc=7, argv=0x7ffd1af0c380) at perf.c:550
(gdb)

It also shows up on s390 too. Is this a known problem? Maybe already fixed?

Thanks for your help

Signature · 5 lines
Thomas Richter, Dept 3303, IBM s390 Linux Development, Boeblingen, Germany
--
Vorsitzender des Aufsichtsrats: Gregor Pillen
Geschäftsführung: David Faller
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294