Sender: g595160 AT pop DOT atlanta DOT com Message-Id: <316CE275.3A22@pop.atlanta.com> Date: Thu, 11 Apr 1996 06:44:05 -0400 From: Shawn Lee Mime-Version: 1.0 To: Eli Zaretskii Cc: The DJGPP Mailing List Subject: Re: Running the test program References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Eli Zaretskii wrote: > > On Tue, 9 Apr 1996, Shawn Lee wrote: > > > Has anyone ever experienced a problem with running any codes on a Win95- > > Pentium w/16MByte. When I run the test programs, it is a toss-up if > > they work or not. I DO MEAN TOSS-UP. > > Did you try to debug your program? Nobody ever said that bugs must > behave the same way every time you invoke the program; referencing an > uninitialized memory location might result in what you see. > > Does that SIGSEGV come with a stack trace dump? If so, there is a program > named `symify' that comes with DJGPP that should help you to translate > that dump into a human-readable list of source filenames and line numbers > that led to the crash. The DJGPP FAQ list (v2/faq200b.zip from ther same > place you get DJGPP) explains how to do it in section 9.2. Armed with > that knowledge, you can see if there is any bug in your program. > > If you are sure that your program is not the reason, please at least post > the source (if it's short enough) or its fragment that crashes. The > exact message printed when the program dies will also help a lot. I'm sorry. I haven't debugged them myself. I was talking about the test programs that come with the DJGPP distribution. My assumption was that they have been debugged. Simple programs like 'hello' have this problem. I don't think it is the programs as opposed to my set up. Because I'm running in W95, I didn't bother to use the DPMI host that came with the distribution. (I need to get a chance to try that anyway... Also, because I am new to programming on PC's, I have a question for you later). But, back to my original question, I will however, keep looking into it myself. My next question is, HOW DO THE DPMI HOSTS WORK? Answers and info on where to get answers are appreciated. Thanks, Mr.Lee