https://bugzilla.redhat.com/show_bug.cgi?id=2341036

Petr Pisar <ppi...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|perl-SDL-2.548-26.fc43      |perl-SDL-2.548-27.fc43
                   |FTBFS:                      |FTBFS: t/sdlx_surface.t
                   |lib/SDL_perl.c:654:13:      |crashes with SDL3
                   |error: conflicting types    |
                   |for ‘boot_SDL’              |



--- Comment #6 from Petr Pisar <ppi...@redhat.com> ---
Minimized reproducer:

With SDL2:
$ SDL_VIDEODRIVER=dummy perl -Iblib/{lib,arch} -e 'use SDLx::Surface; print
SDLx::Surface->new(width=>1, height=>1, greenmask => 0xFF000000)->[0][0]'
0

With SDL3:

$ SDL_VIDEODRIVER=dummy perl -Iblib/{lib,arch} -e 'use SDLx::Surface; print
SDLx::Surface->new(width=>1, height=>1, greenmask => 0xFF000000)->[0][0]'
Floating point exception (core dumped)

The important trigger is setting greenmask => 0xFF000000 when creating the SDLx
surface.

It seems surface format is not fully initialized:

SLD3:

p *surface->format
$1 = {palette = 0x0, BitsPerPixel = 0 '\000', BytesPerPixel = 0 '\000', Rloss =
8 '\b',
  Gloss = 8 '\b', Bloss = 8 '\b', Aloss = 8 '\b', Rshift = 0 '\000', Gshift = 0
'\000',
  Bshift = 0 '\000', Ashift = 0 '\000', Rmask = 0, Gmask = 0, Bmask = 0, Amask
= 0, colorkey = 0,
  alpha = 255 '\377'}

SDL2:

(gdb) p *surface->format
$1 = {palette = 0x0, BitsPerPixel = 0 '\000', BytesPerPixel = 0 '\000', Rloss =
8 '\b',
  Gloss = 8 '\b', Bloss = 8 '\b', Aloss = 8 '\b', Rshift = 0 '\000', Gshift = 0
'\000',
  Bshift = 0 '\000', Ashift = 0 '\000', Rmask = 0, Gmask = 0, Bmask = 0, Amask
= 0, colorkey = 0,
  alpha = 255 '\377'}


-- 
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2341036

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202341036%23c6

-- 
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to