Bug 2007882

Summary: [abrt] papi-testsuite: _papi_hwi_shutdown_global_internal(): stealtime_basic killed by SIGABRT
Product: [Fedora] Fedora Reporter: Török Edwin <edwin+bugs>
Component: papiAssignee: William Cohen <wcohen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: lberk, wcohen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/33e21d93c215fcd2ef9ee2da5a9e5772de619139
Whiteboard: abrt_hash:1b5addfe3a0cc5ccf35a657cd49658129d0b4619;VARIANT_ID=workstation;
Fixed In Version: papi-6.0.0-10.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-28 01:09:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: core_backtrace
none
File: cpuinfo
none
File: dso_list
none
File: environ
none
File: limits
none
File: maps
none
File: mountinfo
none
File: open_fds
none
File: proc_pid_status none

Description Török Edwin 2021-09-25 22:21:42 UTC
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

Comment 1 Török Edwin 2021-09-25 22:21:45 UTC
Created attachment 1826239 [details]
File: backtrace

Comment 2 Török Edwin 2021-09-25 22:21:46 UTC
Created attachment 1826240 [details]
File: core_backtrace

Comment 3 Török Edwin 2021-09-25 22:21:47 UTC
Created attachment 1826241 [details]
File: cpuinfo

Comment 4 Török Edwin 2021-09-25 22:21:48 UTC
Created attachment 1826242 [details]
File: dso_list

Comment 5 Török Edwin 2021-09-25 22:21:49 UTC
Created attachment 1826243 [details]
File: environ

Comment 6 Török Edwin 2021-09-25 22:21:50 UTC
Created attachment 1826244 [details]
File: limits

Comment 7 Török Edwin 2021-09-25 22:21:51 UTC
Created attachment 1826245 [details]
File: maps

Comment 8 Török Edwin 2021-09-25 22:21:52 UTC
Created attachment 1826246 [details]
File: mountinfo

Comment 9 Török Edwin 2021-09-25 22:21:54 UTC
Created attachment 1826247 [details]
File: open_fds

Comment 10 Török Edwin 2021-09-25 22:21:55 UTC
Created attachment 1826248 [details]
File: proc_pid_status

Comment 11 William Cohen 2021-09-29 21:46:19 UTC
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

Comment 12 Török Edwin 2021-10-17 22:32:00 UTC
==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)

Comment 13 William Cohen 2021-11-19 15:42:59 UTC
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.

Comment 14 Fedora Update System 2021-11-20 02:05:38 UTC
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.

Comment 15 Fedora Update System 2021-11-28 01:09:29 UTC
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.