X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Wed, 24 Nov 2004 17:45:27 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-ID: <01c4d23c$Blat.v2.2.2$c3c11c20@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: <20F6BA71.6FF8C53E.36E701EE@aol.com> (Pityocamptes@aol.com) Subject: Re: WinXp service pack 2 and General Protection Fault Error???? References: <20F6BA71 DOT 6FF8C53E DOT 36E701EE AT aol DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Wed, 24 Nov 2004 09:59:15 -0500 > From: Pityocamptes AT aol DOT com > > I am not very familiar with these procedures (taking assembly for a class - using NASM). Could you explain in some detail what you mean by "In a nutshell, you need to build NASM with > debugging information and post here more info about where the program crashes." Thanks. I described that in more detail a day or two ago, but here it is again, more detailed: Step 1: Download NASM sources. Step 2: Find the way to build it with debugging information, i.e. with the -g switch to GCC. It could be that the Makefile that builds NASM has a special target for that, or perhaps you need to edit the Makefile a bit. (I don't know exactly how to do this, but perhaps someone else will tell you the specifics.) Step 3: Run the NASM you built and make it crash. Step 4: With the crash message still on the screen, run symify.exe or bfdsymify.exe to get the source file names and line numbers appended to the addresses. (Section 9.3 of the DJGPP FAQ has more about symify and its usage.) That will produce a traceback of function calls that led to the crash. Post here all that information, exactly as it is displayed on the screen. Step 5: Look in the NASM sources for the code fragment near the place where it crashed. The file name and line number where it crashed are on the first (the topmost) line of the traceback. Post the code fragment where it crashed here. Step 6: Wait for someone to come up with ideas why it could crash, given the info you posted. When someone responds, they will have some ideas and some things for you to check or to do. Follow their advice. HTH