[AD] hell is loose???

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


Program received signal SIGSEGV, Segmentation fault.
0x8055db8 in _stub_bank_switch ()
(gdb) backtrace
#0  0x8055db8 in _stub_bank_switch ()
#1  0x40037052 in _al_realloc () from /usr/local/lib/liballeg-3.9.34.so       
 

(gdb) disassemble
Dump of assembler code for function _stub_bank_switch:
0x8055db8 <_stub_bank_switch>:  mov    0x40(%edx,%eax,4),%eax
0x8055dbc <_stub_bank_switch+4>:        ret
0x8055dbd <_stub_bank_switch+5>:        lea    0x0(%esi),%esi
End of assembler dump.                                                        
 

this bug only occurs in the release version of the library and not in the 
debug version. the driver i used was x-win, but i checked out dga2 as well 
and i get the same crash. strange... especially since my program starts out 
working fine and then *kaboom* segment violation! i would normally suspect 
that the fault was mine but since the debug version of allegro works without 
problems it must be an obscure allegro problem. the allegro i use is is taken 
from todays cvs. i also find it strange that 'return' won't work... 
_stub_bank_switch gotta be called from somewhere right? look:

(gdb) return
Make selected stack frame return now? (y or n) y
#0  0x15 in ?? ()
(gdb) backtrace
#0  0x15 in ?? ()
Cannot access memory at address 0x0
(gdb) return
Make selected stack frame return now? (y or n) y
Cannot access memory at address 0x4
(gdb) backtrace
#0  0x15 in ?? ()
Cannot access memory at address 0x0                                           

 
this is one of those days everything goes wrong i guess. :-(

-- 
Sincerely Henrik Stokseth.
----------------------------------------------------------------------------
"Linux is keyboard friendly. I don't smash it like I used to with Windows."
Homepage: http://hstokset.n3.net  E-mail: hstokset@xxxxxxxxxx



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