Skip to content

ios: infinite hang on SDL_malloc #10590

Open
@hsdk123

Description

@hsdk123

Hi, I'm trying to run a SDL2 application on ios, but I notice an infinite loop at
https://github.com/libsdl-org/SDL/blob/SDL2/src/SDL_hints.c#L214

I've explicitly had to set

set(SDL_GCC_ATOMICS OFF CACHE BOOL "" FORCE)
set(SDL_ATOMIC_ENABLED_BY_DEFAULT OFF CACHE BOOL "" FORCE)

in my cmakelists due to sdl2 trying to pick up <atomic> and XCode complaining that it doesn't exist.

The infinite loop seems to explicitly occur here:
https://github.com/libsdl-org/SDL/blob/SDL2/src/atomic/SDL_atomic.c#L241-L243

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions