Bug 2236733 - [abrt] gnome-shell: argbdata_to_surface(): gnome-shell killed by SIGSEGV
Summary: [abrt] gnome-shell: argbdata_to_surface(): gnome-shell killed by SIGSEGV
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: mutter
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: GNOME SIG Unassigned
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:8e6138e233a84a79013acd52c90...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-01 12:21 UTC by maarten
Modified: 2023-12-06 19:03 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (42.10 KB, text/plain)
2023-09-01 12:22 UTC, maarten
no flags Details
File: environ (1.65 KB, text/plain)
2023-09-01 12:22 UTC, maarten
no flags Details
File: maps (3.97 KB, text/plain)
2023-09-01 12:22 UTC, maarten
no flags Details
File: proc_pid_status (1.45 KB, text/plain)
2023-09-01 12:22 UTC, maarten
no flags Details
File: exploitable (81 bytes, text/plain)
2023-09-01 12:22 UTC, maarten
no flags Details
File: limits (1.29 KB, text/plain)
2023-09-01 12:22 UTC, maarten
no flags Details
File: var_log_messages (256 bytes, text/plain)
2023-09-01 12:22 UTC, maarten
no flags Details
File: cpuinfo (2.92 KB, text/plain)
2023-09-01 12:22 UTC, maarten
no flags Details
File: core_backtrace (73.65 KB, text/plain)
2023-09-01 12:22 UTC, maarten
no flags Details
File: os_info (734 bytes, text/plain)
2023-09-01 12:22 UTC, maarten
no flags Details
File: open_fds (13.05 KB, text/plain)
2023-09-01 12:22 UTC, maarten
no flags Details
File: mountinfo (3.68 KB, text/plain)
2023-09-01 12:22 UTC, maarten
no flags Details

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!


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