Segfault upon exiting sdl_falcon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Falcon |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
I am running Falcon from Git-head on a 64-bit (Mac OS X Snow Leopard) Intel MacBook, and I have the framework versions of the various SDL libraries installed and set up so that ccmake was aware of them at compile-time for Falcon. The "Use OpenGL" option was also checked, if that matters. When I run the example "Hello, World" application given at http://
$ sdl_falcon sdlTest.fal
Success! - press enter
2010-10-26 22:18:13.624 sdl_falcon[
2010-10-26 22:18:13.627 sdl_falcon[
2010-10-26 22:18:13.627 sdl_falcon[
2010-10-26 22:18:13.648 sdl_falcon[
2010-10-26 22:18:13.649 sdl_falcon[
2010-10-26 22:18:13.649 sdl_falcon[
2010-10-26 22:18:13.656 sdl_falcon[
2010-10-26 22:18:13.658 sdl_falcon[
Segmentation fault
$
The contents of sdlTest.fal are:
load sdl
try
a = SDL.InitAuto( SDL.INIT_VIDEO )
SDL.
screen = SDL.SetVideoMode( 640, 480 )
> "Success! - press enter"
input()
catch SDLError in e
> "Test failed: "
> e
end
//EoF
I'm not sure if there is an error in this code (it is the example given for the most basic SDL application copied verbatim, so I doubt that), or if there is some other issue at work. I won't be using Falcon for an end-user application (my intended purpose) if my program segfaults, so I am hoping this is a fixable bug.
Do you have a debugger (gdb) installed? If so, try these steps:
gdb falcon sdlTest.fal
Then, in gdb, type "run", then "bt", and post a reply with the data.