Bug 2272636

Summary: perl-SDL-2.548-22.fc41 FTBFS with SDL2-2.30.1: t/core_events.t fails: Can't use an undefined value as a subroutine reference during global destruction
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-SDLAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 40CC: hdegoede, perl-devel, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/perl-SDL
Whiteboard:
Fixed In Version: perl-SDL-2.548-23.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-04-25 11:51:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2260875    

Description Petr Pisar 2024-04-02 11:00:35 UTC
perl-SDL-2.548-22.fc41 fails to build in Fedora 41 because a test fails:

t/core_error.t .................. ok
Can't use an undefined value as a subroutine reference during global destruction.
t/core_events.t ................. 
Dubious, test returned 22 (wstat 5632, 0x1600)
All 697 subtests passed 
	(less 1 skipped subtest: 696 okay)

A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/17643376>. An upgrade of SDL2 from 2.28.5-3.fc40
to 2.30.1-1.fc41 is suspicious.

Comment 1 Petr Pisar 2024-04-02 11:02:32 UTC
Verbose output of the test:

$ prove -b -v t/core_events.t
t/core_events.t ..
ok 1 - SDL::Events->can(...)
ok 2 - SDL::Event->can(...)
[...]
ok 692 - [joystick_event_state] return SDL_IGNORE correctly
ok 693 - [joystick_event_state] return SDL_ENABLE took SDL_QUERY
ok 694 - [joystick_event_state] return SDL_IGNORE correctly
ok 695 - [joystick_event_state] return  SDL_IGNORE took SDL_QUERY
ok 696 # skip Turn SDL_GUI_TEST on
ok 697 - Are we still alive? Checking for segfaults
1..697
Can't use an undefined value as a subroutine reference during global destruction.
Dubious, test returned 22 (wstat 5632, 0x1600)
All 697 subtests passed 
        (less 1 skipped subtest: 696 okay)

Comment 2 Petr Pisar 2024-04-02 11:09:06 UTC
This is indeed triggered by upgrading SDL2. SDL2-0:2.28.5-3.fc40.x86_64 does not reproduce it.

Comment 3 Petr Pisar 2024-04-02 12:04:54 UTC
The new SDL2 is coming to F40 too.

Comment 4 Fedora Update System 2024-04-02 12:19:07 UTC
FEDORA-2024-176c95f1c4 (perl-SDL-2.548-23.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-176c95f1c4

Comment 5 Fedora Update System 2024-04-03 01:22:30 UTC
FEDORA-2024-176c95f1c4 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-176c95f1c4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-176c95f1c4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-04-19 21:27:10 UTC
FEDORA-2024-176c95f1c4 (perl-SDL-2.548-23.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Aoife Moloney 2025-04-25 10:24:21 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.