develooper Front page | perl.sdl.devel | Postings from February 2010

Re: Backtrace for SDL

Thread Previous | Thread Next
From:
Kartik Thakore
Date:
February 26, 2010 08:57
Subject:
Re: Backtrace for SDL
Message ID:
50D90B0A-C04A-4BFF-9127-4110611940A8@gmail.com

Hi mike,

Can you try this script?

use SDL;
use SDL::Surface;

my $s = SDL::Surface->new(300,300,32,SDL_SWSURFACE, 0,0,0,0);

SDL::quit(); #toggle this off

Kartik Thakore

On 2010-02-26, at 7:01 AM, Mike Stok <mike@stok.ca> wrote:

> It still seg faults when I quit using the red button (using MacPorts  
> perl).  Stack trace attached in case it's useful, output below.
>
> <stack-trace.txt>
>
> Mike
>
> ratdog:kthakore-SDL_perl-43e0e10 mike$ ./SDLPerl.app/Contents/MacOS/ 
> SDLPerl `pwd`/../shooter.pl
> ARGC 2
> ARGV[0] ./SDLPerl.app/Contents/MacOS/SDLPerl
> ARGV[1] /Users/mike/Projects/sdl/kthakore-SDL_perl-43e0e10/../ 
> shooter.pl
> [main] SCRIPT: /Users/mike/Projects/sdl/kthakore-SDL_perl-43e0e10/../ 
> shooter.pl
> Application will finish launching
> Done with menu
> openFile /Users/mike/Projects/sdl/kthakore-SDL_perl-43e0e10/../ 
> shooter.pl
> Setting directory: true
> Setup working directory ? TruePATH: /Users/mike/Projects/sdl/ 
> kthakore-SDL_perl-43e0e10/SDLPerl.app
> launching perl
> Launching script: /Users/mike/Projects/sdl/kthakore- 
> SDL_perl-43e0e10/../shooter.pl
> LIBPATH: /Users/mike/Projects/sdl/kthakore-SDL_perl-43e0e10/ 
> SDLPerl.app/Contents/Resources/lib/darwin-2level
> Running perl
> Destructing  perl
> Segmentation fault
>
>
> On Feb 26, 2010, at 6:02 AM, Kartik Thakore wrote:
>
>> Hi,
>>
>> I have made a separate branch for the mac fixes.
>> Please try this one
>> http://github.com/kthakore/SDL_perl/tree/experimental
>>
>> It is a potential fix for the exit crash http://sdlperl.ath.cx/projects/SDLPerl/ticket/87
>>
>>
>> On Fri, Feb 26, 2010 at 5:37 AM, Kartik Thakore <thakore.kartik@gmail.com 
>> > wrote:
>> When you get a chance can you try this patch.
>>
>> http://paste.scsys.co.uk/39865
>>
>>
>> On Thu, Feb 25, 2010 at 10:56 PM, Stuart Watt <stuart@morungos.com>  
>> wrote:
>> Backtrace attached.
>>
>> Good luck, and thanks for a great talk. I'll try and get the OpenGL  
>> stuff working, put together an environment, and start coding!!
>>
>> All the best
>> Stuart
>>
>>
>>
>>
>> Quiting perl script: /Users/stuart/Downloads/gist301949- 
>> fecf81caf307e110536f4493c9f19a256a6c6728/shooter.pl
>> Program received signal EXC_BAD_ACCESS, Could not access memory.
>>
>> Reason: KERN_INVALID_ADDRESS at address: 0x000000000000001c
>>
>> 0x00007fff84dd811c in objc_msgSend ()
>>
>> (gdb) bt full
>>
>> #0  0x00007fff84dd811c in objc_msgSend ()
>>
>> No symbol table info available.
>>
>> #1  0x00007fff83ca4324 in -[NSCGSContext _invalidate] ()
>>
>> No symbol table info available.
>>
>> #2  0x00007fff83ca42a8 in -[NSCGSContext dealloc] ()
>>
>> No symbol table info available.
>>
>> #3  0x00007fff83ca4289 in -[NSWindowGraphicsContext dealloc] ()
>>
>> No symbol table info available.
>>
>> #4  0x00007fff86529246 in _CFAutoreleasePoolPop ()
>>
>> No symbol table info available.
>>
>> #5  0x00007fff83b96e19 in -[NSApplication finishLaunching] ()
>>
>> No symbol table info available.
>>
>> #6  0x00007fff83b9660c in -[NSApplication run] ()
>>
>> No symbol table info available.
>>
>> #7  0x0000000100002302 in main ()
>>
>> No symbol table info available.
>>
>>
>>
>
> -- 
>
> Mike Stok <mike@stok.ca>
> http://www.stok.ca/~mike/
>
> The "`Stok' disclaimers" apply.
>
>
>
>


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About