[Bug 2341036] perl-SDL-2.548-27.fc43 FTBFS: t/sdlx_surface.t crashes with SDL3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Petr Pisar <ppisar@xxxxxxxxxx> 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 <ppisar@xxxxxxxxxx> ---
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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to perl-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite Information]

  Powered by Linux