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 1753 - Segmentation fault inside SDL_CreateWindow (title=0x41593b "window", x=100, y=100, w=800, h=400, flags=4)
Summary: Segmentation fault inside SDL_CreateWindow (title=0x41593b "window", x=100, y...
Status: RESOLVED WORKSFORME
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-12 15:42 UTC by mttronchetti
Modified: 2015-02-18 05:02 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mttronchetti 2013-03-12 15:42:20 UTC
I'm writing a program and this is the SDL2 code that gives me the bug:

if(SDL_Init(SDL_INIT_EVERYTHING) < 0){
            cout << "SDL_Init error " << SDL_GetError() << endl;
            exit(1);
        }
        
win = SDL_CreateWindow(name, 100, 100, w, h, SDL_WINDOW_SHOWN);

Gdb says that the problem is inside file SDL_video.c at line 1224:
window->id = _this->next_object_id++;

_this is a SDL_VideoDevice pointer but it is set to NULL
Comment 1 Gabriel Jacobo 2013-04-26 12:44:48 UTC
Can you provide a full test case that fails and even better a backtrace?
Comment 2 Ryan C. Gordon 2015-02-18 05:02:21 UTC
Closing bug with no reply since 2013.

--ryan.