Mail Archives: djgpp/1998/07/28/08:35:39
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> writes:
> On Sat, 25 Jul 1998, Victor wrote:
>
> > I'd appreciate if someone could give me some idea how to debug my
> > code.
> >
> > Exiting due to signal SIGILL
> > Invalid Opcode at eip=00aeacac
>
> This EIP is bogus. AFAIK, a valid EIP cannot be more than EBP,
> because the stack is above the code in the DJGPP memory layout. So
> you need to find out how did that EIP happen.
Very likely crash occurs inside stretch_blit. stretch_blit allocates
memory for stretcher code. I think, this can explain EIP higher than
EBP and other registers close to EIP.
I'd suggest to examine values passed to stretch_blit. Allegro
documentation says that it can not handle stretching from outside
of source bitmap and between color-depths and also it can not blit
between NULL bitmaps.
- Raw text -