Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL_DisplayYUV_SW() crashes with segment fault #60

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

SDL_DisplayYUV_SW() crashes with segment fault #60

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Labels
worksforme We can't reproduce the bug

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: don't know
Reported for operating system, platform: Linux, x86

Comments on the original bug report:

On 2006-11-17 02:20:26 +0000, Fei Rao wrote:

The problem is quite strange because the results differ from the way i run my program...
When running on Fedora Core 5 box(local GNOME desktop), my program works well. When running it in CygWin/X session (remote GNOME desktop), the program crashes.

After some debug work, finally i got the following information:
Breakpoint 5, SDL_DisplayYUV_SW (_this=0x8c32580, overlay=0x8c48c50, src=0xbf920d74, dst=0xbf920d6c)
at ./src/video/SDL_yuv_sw.c:1177
1177 swdata = overlay->hwdata;
(gdb) n
1180 if ( src->x || src->y || src->w < overlay->w || src->h < overlay->h ) {
(gdb) display *swdata->display
9: *swdata->display = {flags = 147096168, format = 0x16, w = 93, h = 0, pitch = 11544, pixels = 0x2c00002,
offset = 46137346, hwdata = 0x5, clip_rect = {x = 24, y = 0, w = 600, h = 0}, unused1 = 800, locked = 0, map = 0x0,
format_version = 0, refcount = 0}

Please pay attention to the flags and offset members of swdata->display. The offset is almost 46 MB! i just think it's impossible.

If the information is not clear enough, please contact me at rao.fei@aricent.com

On 2006-11-17 02:26:12 +0000, Fei Rao wrote:

The following information is the back trace of core file:
(gdb) bt

0 0x00f9f567 in SDL_DisplayYUV_SW (_this=0x8c32580, overlay=0x8c48c50, src=0xbf920d74, dst=0xbf920d6c)

at ./src/video/SDL_yuv_sw.c:1251

1 0x00f9d944 in SDL_DisplayYUVOverlay (overlay=0x8c48c50, dstrect=0xbf920db4) at ./src/video/SDL_yuv.c:126

On 2007-07-06 00:53:54 +0000, Sam Lantinga wrote:

Can you post a link to the crashing program and the data and steps needed to reproduce the crash?

The debug data might be a red herring. Are you debugging this in cygwin on Windows? The values are all wrong, which means either gdb isn't getting the right values or you have memory corruption going on. The fact that the numbers 800 and 600 do appear in the gdb output makes me think that there's some alignment problem.

Do you know if that's the exact line it's crashing on?

On 2007-07-08 23:50:43 +0000, Ryan C. Gordon wrote:

Bumping some bugs' priorities to P1 for consideration before the 1.2.12 release (though some may not be resolved for 1.2.12).

--ryan.

On 2007-07-15 22:09:09 +0000, Sam Lantinga wrote:

Any update on this? We're at the last minute for 1.2.12 bug fixes.

On 2009-09-20 22:40:06 +0000, Sam Lantinga wrote:

This hasn't been updated in a couple years. Please reopen this if it's still active in 1.3.

@SDLBugzilla SDLBugzilla added bug worksforme We can't reproduce the bug labels Feb 10, 2021
Wohlstand pushed a commit to Wohlstand/SDL that referenced this issue Mar 21, 2024
Applications using the SDL GameController API can easily reconfigure the
gamepad keys, but the lower-level Joystick APIs does not offer the same
option. To make life easier for applications using the plain Joystick
API, add an environment variable that automatically remaps the
directional keys to match a Wiimote held sideways.

This avoid complicating the application's input code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
worksforme We can't reproduce the bug
Projects
None yet
Development

No branches or pull requests

1 participant