| Summary: | X11: Crash in ' SDL_ShowSimpleMessageBox()' since commit d4a39491577f | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Jonas Kulla <ancurio_bugzilla> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | ||
| Version: | HG 2.1 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | Quick n ugly fix | ||
|
Description
Jonas Kulla
2013-10-14 20:43:53 UTC
Sorry, I meant to write the NULL pointer is dereferenced via "->driverdata". Upon further investigation, there's something about this code calling the device vfunc (SDL_video.c:3141):
if (_this && _this->ShowMessageBox) {
retval = _this->ShowMessageBox(_this, messageboxdata, buttonid);
}
The dereferenced function I see being called in my debugger is (SDL_x11messagebox.c:700):
int
X11_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
Which on first sight looks like we're calling with the wrong signature. Could this be the problem?
Created attachment 1367 [details]
Quick n ugly fix
I actually fixed this earlier today, thanks for the report! http://hg.libsdl.org/SDL/rev/a31914a35076 Oh, what a coincidence =) Thanks! |