Bug 2236733

Summary: [abrt] gnome-shell: argbdata_to_surface(): gnome-shell killed by SIGSEGV
Product: [Fedora] Fedora Reporter: maarten <madebr>
Component: mutterAssignee: GNOME SIG Unassigned <gnome-sig>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: adscvr, fmuellner, gnome-sig, jadahl, madebr, otaylor, philip.wyett, walters
Target Milestone: ---Keywords: AutomationTriaged
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/2305652dbc947f494746520766d65f8a8c46072
Whiteboard: abrt_hash:8e6138e233a84a79013acd52c908630039bcf0da;VARIANT_ID=workstation;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-31 08:25:48 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: environ
none
File: maps
none
File: proc_pid_status
none
File: exploitable
none
File: limits
none
File: var_log_messages
none
File: cpuinfo
none
File: core_backtrace
none
File: os_info
none
File: open_fds
none
File: mountinfo none

Description maarten 2023-09-01 12:21:59 UTC
Description of problem:
Using SDL3's SDL_SetWindowIcon API, set the icon to a non-square dimension with high width-height ratio.

```c
#include <SDL3/SDL.h>

int main(int argc, char *argv[]) {
    SDL_Window *window;
    SDL_Renderer *renderer;
    SDL_Surface *surface;

    SDL_SetHint(SDL_HINT_VIDEO_DRIVER, "x11");
    SDL_Init(SDL_INIT_VIDEO);

#define WIDTH 102400
#define HEIGHT 1 /* non-square icon */

    SDL_CreateWindowAndRenderer(640, 480, 0, &window, &renderer);
    surface = SDL_CreateSurface(WIDTH, HEIGHT, SDL_PIXELFORMAT_RGBA32);
    SDL_FillSurfaceRect(surface, NULL, SDL_MapRGB(surface->format, 255, 0, 0));
    SDL_SetWindowIcon(window, surface);
    SDL_DestroySurface(surface);

    while (1) {
        int quit = 0;
        SDL_Event event;
        while (SDL_PollEvent(&event)) {
            if (event.type == SDL_EVENT_QUIT) {
                quit = 1;
                break;
            }
        }
        if (quit) {
            break;
        }
        SDL_RenderClear(renderer);
        SDL_RenderPresent(renderer);
    }
    SDL_DestroyRenderer(renderer);
    SDL_DestroyWindow(window);
    SDL_Quit();
    return 0;
}
```

Version-Release number of selected component:
gnome-shell-44.4-1.fc38

Additional info:
reporter:       libreport-2.17.11
package:        gnome-shell-44.4-1.fc38
crash_function: argbdata_to_surface
runlevel:       N 5
dso_list:       /usr/bin/gnome-shell gnome-shell-44.4-1.fc38.x86_64 (Fedora Project) 1693142615
backtrace_rating: 4
cmdline:        /usr/bin/gnome-shell
uid:            1000
cgroup:         0::/user.slice/user-1000.slice/user/session.slice/org.gnome.Shell
type:           CCpp
kernel:         6.4.12-200.fc38.x86_64
journald_cursor: s=ad0fac124dba40369c2f9e2b756b3b22;i=4b6714;b=10c1c3caa70a42fead54cbb1f8e8d5e7;m=138ca53d0;t=6044b177b812b;x=1012533ef21b263a
reason:         gnome-shell killed by SIGSEGV
rootdir:        /
executable:     /usr/bin/gnome-shell

Truncated backtrace:
Thread no. 0 (19 frames)
 #0 argbdata_to_surface at ../src/x11/iconcache.c:181
 #1 read_rgb_icon at ../src/x11/iconcache.c:251
 #2 meta_read_icons at ../src/x11/iconcache.c:500
 #3 meta_window_x11_update_icon at ../src/x11/window-x11.c:1733
 #4 update_icon_before_redraw at ../src/x11/window-x11.c:1762
 #5 meta_later_invoke at ../src/compositor/meta-later.c:120
 #6 run_repaint_laters at ../src/compositor/meta-later.c:166
 #7 on_before_update at ../src/compositor/meta-later.c:184
 #8 ffi_call_unix64 at ../src/x86/unix64.S:104
 #9 ffi_call_int at ../src/x86/ffi64.c:673
 #10 ffi_call at ../src/x86/ffi64.c:710
 #11 g_cclosure_marshal_generic_va at ../gobject/gclosure.c:1650
 #12 _g_closure_invoke_va at ../gobject/gclosure.c:895
 #15 clutter_stage_emit_before_update at ../clutter/clutter/clutter-stage.c:492
 #16 handle_frame_clock_frame at ../clutter/clutter/clutter-stage-view.c:1250
 #17 clutter_frame_clock_dispatch at ../clutter/clutter/clutter-frame-clock.c:798
 #18 frame_clock_source_dispatch at ../clutter/clutter/clutter-frame-clock.c:846
 #21 g_main_context_iterate.isra.0 at ../glib/gmain.c:4276
 #23 meta_context_run_main_loop at ../src/core/meta-context.c:482

Comment 1 maarten 2023-09-01 12:22:03 UTC
Created attachment 1986543 [details]
File: backtrace

Comment 2 maarten 2023-09-01 12:22:04 UTC
Created attachment 1986544 [details]
File: environ

Comment 3 maarten 2023-09-01 12:22:06 UTC
Created attachment 1986545 [details]
File: maps

Comment 4 maarten 2023-09-01 12:22:07 UTC
Created attachment 1986546 [details]
File: proc_pid_status

Comment 5 maarten 2023-09-01 12:22:09 UTC
Created attachment 1986547 [details]
File: exploitable

Comment 6 maarten 2023-09-01 12:22:10 UTC
Created attachment 1986548 [details]
File: limits

Comment 7 maarten 2023-09-01 12:22:12 UTC
Created attachment 1986549 [details]
File: var_log_messages

Comment 8 maarten 2023-09-01 12:22:13 UTC
Created attachment 1986550 [details]
File: cpuinfo

Comment 9 maarten 2023-09-01 12:22:14 UTC
Created attachment 1986551 [details]
File: core_backtrace

Comment 10 maarten 2023-09-01 12:22:16 UTC
Created attachment 1986552 [details]
File: os_info

Comment 11 maarten 2023-09-01 12:22:18 UTC
Created attachment 1986553 [details]
File: open_fds

Comment 12 maarten 2023-09-01 12:22:19 UTC
Created attachment 1986554 [details]
File: mountinfo

Comment 13 Fedora Admin user for bugzilla script actions 2023-12-06 08:24:50 UTC
This component is maintained by the GNOME project. Issues with it should be reported directly to GNOME at https://gitlab.gnome.org/GNOME/.

This issue should only be kept open if it:

1. Relates to Fedora packaging or integration with other Fedora components
2. Is required for Fedora release processes, such as blocker bugs and freeze exceptions

If this issue isn't needed for either of these two reasons, please:

 * create an issue with GNOME
 * add a link to the GNOME issue here
 * close this issue as CLOSED/UPSTREAM

Thank you!

Comment 15 Aoife Moloney 2024-05-31 08:25:48 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.