We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2488 - Running any program with the SDL 2 framework linked causes Xcode 5 to crash
Summary: Running any program with the SDL 2 framework linked causes Xcode 5 to crash
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.3
Hardware: x86_64 Mac OS X 10.8
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: triage-2.0.4
Depends on:
Blocks:
 
Reported: 2014-04-09 16:54 UTC by jemc44
Modified: 2015-05-26 13:37 UTC (History)
5 users (show)

See Also:


Attachments
Dump of the crash (96.13 KB, text/plain)
2014-04-09 16:54 UTC, jemc44
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jemc44 2014-04-09 16:54:05 UTC
Created attachment 1613 [details]
Dump of the crash

I just added SDL to one of my projects and added a SDL_Init() call to the main function and suddenly Xcode 5 crashes. It seems I'm not the only one http://stackoverflow.com/questions/22368202/xcode-5-crashes-when-running-an-app-with-sdl-2
Comment 1 jemc44 2014-04-09 17:01:43 UTC
It seems SDL 2.0.3 and 2.0.2 causes the crash. SDL 2.0.1 doesn't crash.
Comment 2 Sam Lantinga 2014-04-18 05:48:17 UTC
Crazy!

Ryan, looking at the diff for the Xcode project between 2.0.1 and 2.0.2, the only thing that changed was the addition of the dynamic API stuff. Is that somehow crashing Xcode?
Comment 3 Asbjørn Sporaland 2014-04-24 13:24:58 UTC
I had the same issue using the 2.0.3 version. Xcode crashes only when the debugger is attached, running without the debugger attached or running the created executable separately works fine. 

I fixed the issue by downloading the 2.0.3 source code and compiling the framework.
Comment 4 jasoncrowder 2014-07-03 17:34:26 UTC
I believe this is a symptom of the SDL2 binaries not being properly signed. This problem is noted at https://bugzilla.libsdl.org/show_bug.cgi?id=2058, and a more detailed write-up is at http://stackoverflow.com/a/24559954/332946.
Comment 5 Robotic-Brain 2014-08-18 01:59:36 UTC
Is Xcode still crashing with the latest HG version?

If not, this was fixed by https://bugzilla.libsdl.org/show_bug.cgi?id=2058 and can be closed.
Comment 6 Ryan C. Gordon 2015-02-19 06:32:15 UTC
Marking a large number of bugs with the "triage-2.0.4" keyword at once. Sorry
if you got a lot of email from this. This is to help me sort through some bugs
in regards to a 2.0.4 release. We may or may not fix this bug for 2.0.4,
though!
Comment 7 Mark Callow 2015-05-15 09:12:55 UTC
Re comment #5, Please note that this problem occurs *only* with the .dmg binary linked from libsdl.org. If you build libsdl yourself there is no problem. Asking people to test the latest HG version is therefore meaningless.

This problem makes the binary completely useless.

I do not know if this problem happens only with the .dmg or if it will happen anytime person B tries to use a framework built by person A. 

If the former, it is most likely a problem with the environment of the person/bot that builds the binary. If the latter then it may be an issue with the SDL xcode projects.
Comment 8 Sam Lantinga 2015-05-26 13:37:48 UTC
This is fixed for the next release, thanks!