ports/137390: SDL applications crash on 8.0-BETA2 amd64

Adam K Kirchhoff adamk at voicenet.com
Mon Aug 3 13:30:02 UTC 2009


>Number:         137390
>Category:       ports
>Synopsis:       SDL applications crash on 8.0-BETA2 amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 03 13:30:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Adam K Kirchhoff
>Release:        8.0-BETA2 amd64
>Organization:
>Environment:
FreeBSD sorrow.ashke.com 8.0-BETA2 FreeBSD 8.0-BETA2 #0: Sat Aug  1 06:30:12 EDT 2009     root at sorrow.ashke.com:/usr/obj/usr/src/sys/SORROW  amd64


>Description:

Various SDL applications crash immediately upon starting up on my machine.  Here is a backtrace from neverball:

Program received signal SIGBUS, Bus error.
[Switching to Thread 2eb021c0 (LWP 100897)]
0x000000002d08b60a in malloc_usable_size () from /lib/libc.so.7
(gdb) bt
#0  0x000000002d08b60a in malloc_usable_size () from /lib/libc.so.7
#1  0x000000002d08bf17 in free () from /lib/libc.so.7
#2  0x000000002c2be600 in SDL_SYS_JoystickClose () from /usr/local/lib/libSDL-1.2.so.11
#3  0x000000002c2beeb6 in SDL_SYS_JoystickInit () from /usr/local/lib/libSDL-1.2.so.11
#4  0x000000002c2a338a in SDL_JoystickInit () from /usr/local/lib/libSDL-1.2.so.11
#5  0x000000002c27812e in SDL_InitSubSystem () from /usr/local/lib/libSDL-1.2.so.11
#6  0x000000002c2781cf in SDL_Init () from /usr/local/lib/libSDL-1.2.so.11
#7  0x0000000000425c6a in ?? ()
#8  0x0000000000404cce in ?? ()

And one from supertux:

Program received signal SIGBUS, Bus error.
[Switching to Thread 2e9021c0 (LWP 100588)]
0x000000002d10860a in malloc_usable_size () from /lib/libc.so.7
(gdb) bt
#0  0x000000002d10860a in malloc_usable_size () from /lib/libc.so.7
#1  0x000000002d108f17 in free () from /lib/libc.so.7
#2  0x000000002c673600 in SDL_SYS_JoystickClose () from /usr/local/lib/libSDL-1.2.so.11
#3  0x000000002c673eb6 in SDL_SYS_JoystickInit () from /usr/local/lib/libSDL-1.2.so.11
#4  0x000000002c65838a in SDL_JoystickInit () from /usr/local/lib/libSDL-1.2.so.11
#5  0x000000002c62d12e in SDL_InitSubSystem () from /usr/local/lib/libSDL-1.2.so.11
#6  0x000000002c62d1cf in SDL_Init () from /usr/local/lib/libSDL-1.2.so.11
#7  0x00000000004332b5 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
#8  0x000000000043bee5 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
#9  0x0000000000404b2e in ?? ()

It seems to be related to SDL Joystick management, though there is no joystick on this machine.

Both games work fine on 8.0-BETA2 i386.  It's just amd64 that seems to have this problem.
>How-To-Repeat:

Install 8.0-BETA2, update ports tree, install neverball and supertux, and then launch them.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list