Mail Archives: djgpp/1997/06/06/10:35:44
Andrew Crabtree wrote:
> So, my next thought was to load it up into GDB and fix the problem.
> Well, no luck. Things run perfectly under GDB.
I can't help you on this one(I'm not a guru :) but I had a similar
problem: I have a program in allegro (3D) that usually crashes when I
move because I don't have any clipping function and the program tries to
draw outside of the screen. It allways crashes with a SIGSEGV. So I
wanted to catch the output and i did something like
redir -e error.txt 3d.exe
What do you know?! The stuff doesn't crash anymore! I can move in any
direction and put my cube way past the screen boundaries-it won't crash!
When I exit and look at the eror.txt file, I find the same SIGSEGV and
traceback but the program that crashed was redir!
So, maybe these programs like GDB or redir modify the space where your
program executes so that a (indirect) consequence is that it doesn't
crash anymore?
--
http://www.cam.org/~tudor
"I INSERTED THE DISK INTO THE COMPUTER, AND TURNED IT ON. LET THERE BE
DOS,I SAID! AND THERE WAS DOS." -- Bill Gates, 1977
- Raw text -