Skip to contentSkip to conversation

Linux-next: perf test -Fv 44 dumps core

DISCUSSION Thomas Richter 1 participant 1 message Feb 3

lore
Share & tools
lore
#0 lore raw

In linux-next repository, the test case

root in linux-next/tools/perf on  master [?] via C v15.2.1-gcc ❯ ./perf test -F 'Read backward ring buffer'
Segmentation fault (core dumped) ./perf test -F 'Read backward ring buffer'

root in linux-next/tools/perf on  master [?] via C v15.2.1-gcc ❯

fails with core dump on s390. This happens since 29-Jan-2026. Here is the core dump:

Core was generated by `./perf test -Fvvvvv 44'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000001113dc8 in __read_once_size (p=0x14, res=0x3ffe2a76a44, size=4)
at /root/mirror-linux-next/tools/include/linux/compiler.h:180
180 case 4: *(__u32_alias_t *) res = *(volatile __u32_alias_t *) p; break;
(gdb) where

#0  0x0000000001113dc8 in __read_once_size (p=0x14, \
                res=0x3ffe2a76a44, size=4)
    at /root/mirror-linux-next/tools/include/linux/compiler.h:180
#1  atomic_read (v=0x14) at /root/mirror-linux-next/tools/include/\
                   asm-generic/atomic-gcc.h:26
#2  0x0000000001113ff2 in refcount_read (r=0x14) at \
                   /root/mirror-linux-next/tools/include/linux/refcount.h:70
#3  0x0000000001115086 in perf_mmap__read_init (map=0x0) at mmap.c:186
                   --------------------------->^^^^^^^^^ NULL pointer
#4  0x00000000011f9640 in count_samples (evlist=0x25f9c60, sample_count=0x3ffe2a76e88, \
                comm_count=0x3ffe2a76e8c)
    at tests/backward-ring-buffer.c:41
#5  0x00000000011f9856 in do_test (evlist=0x25f9c60, mmap_pages=256, \
                sample_count=0x3ffe2a76e88, comm_count=0x3ffe2a76e8c)
    at tests/backward-ring-buffer.c:79
#6  0x00000000011f9b0e in test__backward_ring_buffer (test=0x16a9650 \
                <suite.backward_ring_buffer>, subtest=0)
    at tests/backward-ring-buffer.c:140
#7  0x00000000011b2866 in start_test (test=0x16a9650 <suite.backward_ring_buffer>,\ 
                curr_suite=43, curr_test_case=0, child=0x25f9670,
    width=64, pass=1) at tests/builtin-test.c:506
#8  0x00000000011b31c0 in __cmd_test (suites=0x25f8e40, argc=1, argv=0x3ffe2a77dc0, \
                skiplist=0x0) at tests/builtin-test.c:649
    ....

Gdb sessions shows that evlist->overwrite_mmap is a NULL pointer:

(gdb) p evlist->overwrite_mmap
$6 = (struct mmap *) 0x0
(gdb)

Is this a known issue?

Signature · 9 lines
Thomas Richter, Dept 3303, IBM s390 Linux Development, Boeblingen, Germany
--
IBM Deutschland Research & Development GmbH

Vorsitzender des Aufsichtsrats: Wolfgang Wendt

Geschäftsführung: David Faller

Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294