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 1333

Summary: segfault if opengl window could not get created
Product: SDL Reporter: Martin Gerhardy <martin.gerhardy>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: carles.pages
Version: 2.0.0   
Hardware: x86_64   
OS: Linux   

Description Martin Gerhardy 2011-11-20 07:55:48 UTC
Program received signal SIGSEGV, Segmentation fault.
X11_DestroyWindowFramebuffer (_this=0x8df2178, window=0x8f3cb98)
    at src/video/x11/SDL_x11framebuffer.c:196
196	    Display *display = data->videodata->display;
(gdb) bt full
#0  X11_DestroyWindowFramebuffer (_this=0x8df2178, window=0x8f3cb98)
    at src/video/x11/SDL_x11framebuffer.c:196
        data = 0x0
        display = <optimized out>
#1  0x001c821a in SDL_DestroyWindow (window=0x8f3cb98)
    at src/video/SDL_video.c:1943
        display = 0x1def60
#2  SDL_DestroyWindow (window=0x8f3cb98) at src/video/SDL_video.c:1922
No locals.
#3  0x001c8e5c in SDL_CreateWindow (title=0x809f05d "MyApp 0.1", x=805240832, 
    y=805240832, w=1024, h=768, flags=38) at src/video/SDL_video.c:1181
        window = <optimized out>
Comment 1 Martin Gerhardy 2011-11-20 09:31:34 UTC
*** Bug 1330 has been marked as a duplicate of this bug. ***
Comment 2 Sam Lantinga 2012-01-07 19:53:42 UTC
This should be fixed, thanks!
http://hg.libsdl.org/SDL/rev/744ae9bdf5da

Is it expected that the window creation fails, or is that a separate bug?
Comment 3 Sam Lantinga 2012-01-07 20:01:40 UTC
*** Bug 1319 has been marked as a duplicate of this bug. ***