delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/06/10:35:44

From: Vic <tudor AT cam DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: One for the Gurus
Date: Wed, 04 Jun 1997 16:20:59 -0400
Organization: Communications Accesibles Montreal
Lines: 20
Message-ID: <3395CE2B.CE2@cam.org>
References: <199705311615 DOT AA057665326 AT typhoon DOT rose DOT hp DOT com>
Reply-To: tudor AT cam DOT org
NNTP-Posting-Host: dynamicppp-191.hip.cam.org
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019