Bug 2272636 - 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
Summary: perl-SDL-2.548-22.fc41 FTBFS with SDL2-2.30.1: t/core_events.t fails: Can't u...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-SDL
Version: 40
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F41FTBFS
TreeView+ depends on / blocked
 
Reported: 2024-04-02 11:00 UTC by Petr Pisar
Modified: 2025-04-25 11:51 UTC (History)
3 users (show)

Fixed In Version: perl-SDL-2.548-23.fc40
Clone Of:
Environment:
Last Closed: 2025-04-25 11:51:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github PerlGameDev SDL pull 308 0 None open Fix reference-counting in set_event_filter 2024-04-02 11:18:21 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.