Mail Archives: djgpp/1999/09/09/10:41:43
On Wed, 8 Sep 1999, Josh Reed wrote:
> I have a program that I compiled with DJGPP that dies
> half-way through execution.
Does it print registers' dump and call frame traceback? If so, please
post them here (after running SYMIFY, see section 9.2 of the FAQ for
details).
> I used gdb on it and here is
> what it said:
> Program recieved signal SIGILL, Illegal instruction.
> 0x1600 in scan (path=Cannot access memory at address
> 0x2a2e2a64.) at audit.cpp:43
>
> Line 43 in Audit.cpp:
> if (((DTA.ff_attrib >= 16) && (DTA.ff_attrib <= 31)) ||
> (DTA.ff_attrib >= 48))
Seems like your memory is trashed. See that "Cannot access memory"
message from GDB? It means a garbled pointer, and the address it
prints is surely garbled. Try to find out how come the variable
`path' gets garbled, and you might unlock this problem.
Some of the techniques for debugging these problems are described in
section 12.2 of the FAQ; be sure to read that.
- Raw text -