Version-Release number of selected component: papi-testsuite-6.0.0-7.fc34 Additional info: reporter: libreport-2.15.2 backtrace_rating: 4 cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-e72706b1-43bc-49a4-94ab-465a9eb697ef.scope cmdline: ./components/stealtime/tests/stealtime_basic TESTS_QUIET crash_function: _papi_hwi_shutdown_global_internal executable: /usr/share/papi/components/stealtime/tests/stealtime_basic journald_cursor: s=68e38ebf976a4c7b9d23c531e3fbc082;i=11b80;b=550b8228d45a43918585e9682c133605;m=165df1b59;t=5c9da7637a055;x=9bd0cd3dd0d8ca31 kernel: 5.13.9-200.fc34.x86_64 rootdir: / runlevel: N 5 type: CCpp uid: 0 Truncated backtrace: Thread no. 1 (3 frames) #6 _papi_hwi_shutdown_global_internal at papi_internal.c:2012 #7 PAPI_shutdown at papi.c:5077 #8 test_pass at test_utils.c:459
Created attachment 1826239 [details] File: backtrace
Created attachment 1826240 [details] File: core_backtrace
Created attachment 1826241 [details] File: cpuinfo
Created attachment 1826242 [details] File: dso_list
Created attachment 1826243 [details] File: environ
Created attachment 1826244 [details] File: limits
Created attachment 1826245 [details] File: maps
Created attachment 1826246 [details] File: mountinfo
Created attachment 1826247 [details] File: open_fds
Created attachment 1826248 [details] File: proc_pid_status
I haven't been able to reproduce the crash locally. Could you rerun the reproducer with and report the results of: valgrind /usr/share/papi/components/stealtime/tests/stealtime_basic TESTS_QUIET
==64723== Memcheck, a memory error detector ==64723== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==64723== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info ==64723== Command: /usr/share/papi/components/stealtime/tests/stealtime_basic TESTS_QUIET ==64723== PAPI Error: Couldn't open hw_instructions in exclude_guest=0 test ==64723== Invalid write of size 8 ==64723== at 0x48A8ED5: read_stealtime.isra.0 (linux-stealtime.c:109) ==64723== by 0x48A8F71: _stealtime_start (linux-stealtime.c:345) ==64723== by 0x4880937: PAPI_start (papi.c:2782) ==64723== by 0x10A705: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== Address 0x4d58670 is 0 bytes after a block of size 0 alloc'd ==64723== at 0x4845464: calloc (vg_replace_malloc.c:1117) ==64723== by 0x48A8A70: _stealtime_init_thread (linux-stealtime.c:222) ==64723== by 0x4892F0B: _papi_hwi_initialize_thread (threads.c:297) ==64723== by 0x4893511: _papi_hwi_init_global_threads (threads.c:553) ==64723== by 0x4883630: PAPI_library_init.part.0 (papi.c:1156) ==64723== by 0x10A630: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== ==64723== Invalid write of size 8 ==64723== at 0x48A8EE5: read_stealtime.isra.0 (linux-stealtime.c:111) ==64723== by 0x48A8F71: _stealtime_start (linux-stealtime.c:345) ==64723== by 0x4880937: PAPI_start (papi.c:2782) ==64723== by 0x10A705: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== Address 0x4d586b0 is 0 bytes after a block of size 0 alloc'd ==64723== at 0x4845464: calloc (vg_replace_malloc.c:1117) ==64723== by 0x48A8A85: _stealtime_init_thread (linux-stealtime.c:225) ==64723== by 0x4892F0B: _papi_hwi_initialize_thread (threads.c:297) ==64723== by 0x4893511: _papi_hwi_init_global_threads (threads.c:553) ==64723== by 0x4883630: PAPI_library_init.part.0 (papi.c:1156) ==64723== by 0x10A630: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== ==64723== Invalid read of size 8 ==64723== at 0x48A8EE9: read_stealtime.isra.0 (linux-stealtime.c:114) ==64723== by 0x48A8F71: _stealtime_start (linux-stealtime.c:345) ==64723== by 0x4880937: PAPI_start (papi.c:2782) ==64723== by 0x10A705: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== Address 0x4d58670 is 0 bytes after a block of size 0 alloc'd ==64723== at 0x4845464: calloc (vg_replace_malloc.c:1117) ==64723== by 0x48A8A70: _stealtime_init_thread (linux-stealtime.c:222) ==64723== by 0x4892F0B: _papi_hwi_initialize_thread (threads.c:297) ==64723== by 0x4893511: _papi_hwi_init_global_threads (threads.c:553) ==64723== by 0x4883630: PAPI_library_init.part.0 (papi.c:1156) ==64723== by 0x10A630: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== ==64723== Invalid write of size 8 ==64723== at 0x48A8F09: read_stealtime.isra.0 (linux-stealtime.c:114) ==64723== by 0x48A8F71: _stealtime_start (linux-stealtime.c:345) ==64723== by 0x4880937: PAPI_start (papi.c:2782) ==64723== by 0x10A705: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== Address 0x4d586f0 is 0 bytes after a block of size 0 alloc'd ==64723== at 0x4845464: calloc (vg_replace_malloc.c:1117) ==64723== by 0x48A8A9B: _stealtime_init_thread (linux-stealtime.c:228) ==64723== by 0x4892F0B: _papi_hwi_initialize_thread (threads.c:297) ==64723== by 0x4893511: _papi_hwi_init_global_threads (threads.c:553) ==64723== by 0x4883630: PAPI_library_init.part.0 (papi.c:1156) ==64723== by 0x10A630: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== ==64723== Invalid write of size 8 ==64723== at 0x48A8EE5: read_stealtime.isra.0 (linux-stealtime.c:111) ==64723== by 0x48A8FB7: _stealtime_read (linux-stealtime.c:395) ==64723== by 0x48862D8: _papi_hwi_read (papi_internal.c:1710) ==64723== by 0x4880BB8: PAPI_stop (papi.c:2888) ==64723== by 0x10A719: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== Address 0x4d586b0 is 0 bytes after a block of size 0 alloc'd ==64723== at 0x4845464: calloc (vg_replace_malloc.c:1117) ==64723== by 0x48A8A85: _stealtime_init_thread (linux-stealtime.c:225) ==64723== by 0x4892F0B: _papi_hwi_initialize_thread (threads.c:297) ==64723== by 0x4893511: _papi_hwi_init_global_threads (threads.c:553) ==64723== by 0x4883630: PAPI_library_init.part.0 (papi.c:1156) ==64723== by 0x10A630: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== ==64723== Invalid read of size 8 ==64723== at 0x48A8EE9: read_stealtime.isra.0 (linux-stealtime.c:114) ==64723== by 0x48A8FB7: _stealtime_read (linux-stealtime.c:395) ==64723== by 0x48862D8: _papi_hwi_read (papi_internal.c:1710) ==64723== by 0x4880BB8: PAPI_stop (papi.c:2888) ==64723== by 0x10A719: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== Address 0x4d58670 is 0 bytes after a block of size 0 alloc'd ==64723== at 0x4845464: calloc (vg_replace_malloc.c:1117) ==64723== by 0x48A8A70: _stealtime_init_thread (linux-stealtime.c:222) ==64723== by 0x4892F0B: _papi_hwi_initialize_thread (threads.c:297) ==64723== by 0x4893511: _papi_hwi_init_global_threads (threads.c:553) ==64723== by 0x4883630: PAPI_library_init.part.0 (papi.c:1156) ==64723== by 0x10A630: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== ==64723== Invalid write of size 8 ==64723== at 0x48A8F09: read_stealtime.isra.0 (linux-stealtime.c:114) ==64723== by 0x48A8FB7: _stealtime_read (linux-stealtime.c:395) ==64723== by 0x48862D8: _papi_hwi_read (papi_internal.c:1710) ==64723== by 0x4880BB8: PAPI_stop (papi.c:2888) ==64723== by 0x10A719: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== Address 0x4d586f0 is 0 bytes after a block of size 0 alloc'd ==64723== at 0x4845464: calloc (vg_replace_malloc.c:1117) ==64723== by 0x48A8A9B: _stealtime_init_thread (linux-stealtime.c:228) ==64723== by 0x4892F0B: _papi_hwi_initialize_thread (threads.c:297) ==64723== by 0x4893511: _papi_hwi_init_global_threads (threads.c:553) ==64723== by 0x4883630: PAPI_library_init.part.0 (papi.c:1156) ==64723== by 0x10A630: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== ==64723== Invalid read of size 8 ==64723== at 0x48A8FD4: _stealtime_read (linux-stealtime.c:399) ==64723== by 0x48862D8: _papi_hwi_read (papi_internal.c:1710) ==64723== by 0x4880BB8: PAPI_stop (papi.c:2888) ==64723== by 0x10A719: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== Address 0x4d586f0 is 0 bytes after a block of size 0 alloc'd ==64723== at 0x4845464: calloc (vg_replace_malloc.c:1117) ==64723== by 0x48A8A9B: _stealtime_init_thread (linux-stealtime.c:228) ==64723== by 0x4892F0B: _papi_hwi_initialize_thread (threads.c:297) ==64723== by 0x4893511: _papi_hwi_init_global_threads (threads.c:553) ==64723== by 0x4883630: PAPI_library_init.part.0 (papi.c:1156) ==64723== by 0x10A630: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== ==64723== Invalid write of size 8 ==64723== at 0x48A8EE5: read_stealtime.isra.0 (linux-stealtime.c:111) ==64723== by 0x48A8F8E: _stealtime_stop (linux-stealtime.c:370) ==64723== by 0x4880BDB: PAPI_stop (papi.c:2893) ==64723== by 0x10A719: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== Address 0x4d586b0 is 0 bytes after a block of size 0 alloc'd ==64723== at 0x4845464: calloc (vg_replace_malloc.c:1117) ==64723== by 0x48A8A85: _stealtime_init_thread (linux-stealtime.c:225) ==64723== by 0x4892F0B: _papi_hwi_initialize_thread (threads.c:297) ==64723== by 0x4893511: _papi_hwi_init_global_threads (threads.c:553) ==64723== by 0x4883630: PAPI_library_init.part.0 (papi.c:1156) ==64723== by 0x10A630: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== ==64723== Invalid read of size 8 ==64723== at 0x48A8EE9: read_stealtime.isra.0 (linux-stealtime.c:114) ==64723== by 0x48A8F8E: _stealtime_stop (linux-stealtime.c:370) ==64723== by 0x4880BDB: PAPI_stop (papi.c:2893) ==64723== by 0x10A719: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== Address 0x4d58670 is 0 bytes after a block of size 0 alloc'd ==64723== at 0x4845464: calloc (vg_replace_malloc.c:1117) ==64723== by 0x48A8A70: _stealtime_init_thread (linux-stealtime.c:222) ==64723== by 0x4892F0B: _papi_hwi_initialize_thread (threads.c:297) ==64723== by 0x4893511: _papi_hwi_init_global_threads (threads.c:553) ==64723== by 0x4883630: PAPI_library_init.part.0 (papi.c:1156) ==64723== by 0x10A630: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== ==64723== Invalid write of size 8 ==64723== at 0x48A8F09: read_stealtime.isra.0 (linux-stealtime.c:114) ==64723== by 0x48A8F8E: _stealtime_stop (linux-stealtime.c:370) ==64723== by 0x4880BDB: PAPI_stop (papi.c:2893) ==64723== by 0x10A719: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== Address 0x4d586f0 is 0 bytes after a block of size 0 alloc'd ==64723== at 0x4845464: calloc (vg_replace_malloc.c:1117) ==64723== by 0x48A8A9B: _stealtime_init_thread (linux-stealtime.c:228) ==64723== by 0x4892F0B: _papi_hwi_initialize_thread (threads.c:297) ==64723== by 0x4893511: _papi_hwi_init_global_threads (threads.c:553) ==64723== by 0x4883630: PAPI_library_init.part.0 (papi.c:1156) ==64723== by 0x10A630: ??? (in /usr/share/papi/components/stealtime/tests/stealtime_basic) ==64723== by 0x491CB74: (below main) (libc-start.c:332) ==64723== ==64723== ==64723== HEAP SUMMARY: ==64723== in use at exit: 3,837 bytes in 41 blocks ==64723== total heap usage: 3,787 allocs, 3,746 frees, 3,566,311 bytes allocated ==64723== ==64723== LEAK SUMMARY: ==64723== definitely lost: 3,645 bytes in 40 blocks ==64723== indirectly lost: 0 bytes in 0 blocks ==64723== possibly lost: 0 bytes in 0 blocks ==64723== still reachable: 192 bytes in 1 blocks ==64723== suppressed: 0 bytes in 0 blocks ==64723== Rerun with --leak-check=full to see details of leaked memory ==64723== ==64723== For lists of detected and suppressed errors, rerun with: -s ==64723== ERROR SUMMARY: 6275 errors from 11 contexts (suppressed: 0 from 0)
Backported following patch that addresses the problem commit 3625bdbad9fd57d1cdb1e5615854545167d4adcb Author: Anthony Castaldo <TonyCastaldo.edu> Date: Wed Aug 26 17:18:29 2020 -0400 This modifies PAPI_library_init() to initialize components in two classes, separated by the initialization of the papi thread structure. The first class is those that need no thread structure, currently everything but perf_event and perf_event_uncore. Following the init of the threading structure, we init the second class (perf_event and perf_event_uncore) that DOES need the thread structure to successfully init_component(). This required a change to _papi_hwi_init_global(), to add an argument to distinguish which class it should initialize.
FEDORA-2021-752e807fdd has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-752e807fdd` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-752e807fdd See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-752e807fdd has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.