Ticket #457 (closed defect: fixed)
Opened 5 years ago
Last modified 4 years ago
SDL crashes
| Reported by: | scottmc | Owned by: | scottmc |
|---|---|---|---|
| Priority: | normal | Milestone: | LibPak 1.0 |
| Component: | media-libs/libsdl | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
While running some games and some of the SDL tests, they will crash out to gdb.
This is from running testgl and then moving the cursor outside of the SDL window:
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-pc-haiku"...
[tcsetpgrp failed in terminal_inferior: Invalid Argument]
Thread 15638 caused an exception: Segment violation
Reading symbols from /boot/system/runtime_loader...done.
Loaded symbols for /boot/system/runtime_loader
Reading symbols from /boot/common/lib/libSDL-1.2.so.0.11.3...done.
Loaded symbols for /boot/common/lib/libSDL-1.2.so.0.11.3
Reading symbols from /boot/system/lib/libGL.so...done.
Loaded symbols for /boot/system/lib/libGL.so
Reading symbols from /boot/system/lib/libroot.so...done.
Loaded symbols for /boot/system/lib/libroot.so
Reading symbols from /boot/common/lib/libiconv.so.2.5.0...done.
Loaded symbols for /boot/common/lib/libiconv.so.2.5.0
Reading symbols from /boot/system/lib/libbe.so...done.
Loaded symbols for /boot/system/lib/libbe.so
Reading symbols from /boot/system/lib/libmedia.so...done.
Loaded symbols for /boot/system/lib/libmedia.so
Reading symbols from /boot/system/lib/libgame.so...done.
Loaded symbols for /boot/system/lib/libgame.so
Reading symbols from /boot/system/lib/libdevice.so...done.
Loaded symbols for /boot/system/lib/libdevice.so
Reading symbols from /boot/system/lib/libtextencoding.so...done.
Loaded symbols for /boot/system/lib/libtextencoding.so
Reading symbols from /boot/system/lib/libstdc++.r4.so...done.
Loaded symbols for /boot/system/lib/libstdc++.r4.so
Reading symbols from /boot/system/add-ons/opengl/Mesa Software Renderer...done.
Loaded symbols for /boot/system/add-ons/opengl/Mesa Software Renderer
[tcsetpgrp failed in terminal_inferior: Invalid Argument]
[Switching to team ./testgl (15632) thread w>SDL GL test (15638)]
0x0023354e in SDL_EraseCursorNoLock (screen=0x1801a2d0)
at ./src/video/SDL_cursor.c:702
702 SDL_memcpy(dst, src, w);
(gdb) bt
#0 0x0023354e in SDL_EraseCursorNoLock (screen=0x1801a2d0)
at ./src/video/SDL_cursor.c:702
#1 0x002335eb in SDL_EraseCursor (screen=0x1801a2d0)
at ./src/video/SDL_cursor.c:726
#2 0x0023d342 in SDL_BWin::DispatchMessage (this=0x1804b240, msg=0x18019f10,
target=0xffffffff) at ./src/video/bwindow/SDL_sysevents.cc:207
#3 0x006c0d28 in BWindow::task_looper () from /boot/system/lib/libbe.so
#4 0x00883413 in BDirectWindow::task_looper ()
from /boot/system/lib/libgame.so
#5 0x005f10fb in BLooper::_task0_ () from /boot/system/lib/libbe.so
#6 0x0035b562 in thread_entry () from /boot/system/lib/libroot.so
#7 0x700c1fec in ?? ()
(gdb)
Change History
comment:1 Changed 5 years ago by michaelvoliveira
comment:2 Changed 4 years ago by scottmc
- Resolution set to fixed
- Status changed from new to closed
fixed in r1300.
Note: See
TracTickets for help on using
tickets.

Huuum
It seems that this bug only affects LibSDL gcc2 version
haikuporter -c -i --test libsdl-1.2-hg
And if the SDL_sysevents.cc file was patched with libsdl-1.2-hg.patch
I ran a couple of tests and see that with SDL_sysevents.cc patched the occours the libsdl gcc2 #457 bug
http://ports.haiku-files.org/ticket/457
If not, if only SDL_BWin.h was patched, all works fine, even 3D games, like DreamChess?
For GCC4 version, has no difference. Everything works fine.
Seems that is not GL fix that was broken: is SDL_sysevents.cc fix