Re: [AD] Current SVN broken on OS X

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2009-08-16, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> In case it helps, for 12418 the backtrace is
> (gdb) r
> Starting program: /Users/eglebbk/Program/Allegro5/4.9/Build/examples/ 
> ex_bitmap
> Reading symbols for shared libraries . done
> 
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x00000000000000a0
> [Switching to process 94539 thread 0x3603]
> 0x00000001000391e3 in _al_deduce_color_format (eds=0x98) at /Users/ 
> eglebbk/Program/Allegro5/4.9/src/display_settings.c:524
> 524	   if (eds->settings[ALLEGRO_RED_SIZE]   == 8 &&
> (gdb) bt
> #0  0x00000001000391e3 in _al_deduce_color_format (eds=0x98) at /Users/ 
> eglebbk/Program/Allegro5/4.9/src/display_settings.c:524
> #1  0x0000000100037334 in al_get_display_format () at /Users/eglebbk/ 
> Program/Allegro5/4.9/src/display_new.c:267

It's calling al_get_display_format() in the middle of creating the new
display.  My guess is that the call to al_get_current_display() here
is returning an invalid pointer, or it's returning NULL and getting
dereferenced on the next line.

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/