X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Sat, 07 Feb 2004 16:20:10 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <3405-Sat07Feb2004162009+0200-eliz@elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (RadSurfer AT yahoo DOT com) Subject: Re: Achieving 486-Compatibility (2) References: 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 > From: RadSurfer AT yahoo DOT com (Radical NetSurfer) > Newsgroups: comp.os.msdos.djgpp > Date: 6 Feb 2004 16:27:18 -0800 > > Exiting due to signal SIGSEGV > Page fault at eip=00014def, error=0004 > > What is that error = 0004 ????????? For Page Fault, the error code of 4 means that your program attempted to read from a bad address. (This is explained in section 12.2 of the FAQ, btw.) It would be a good idea to post a complete crash traceback, complete with the full register dump. Running SYMIFY (or, better yet, bfdsymify) on it would be even better. Given that information, perhaps someone around here could get some useful ideas about possible causes for the crash. > the exact same identical program does seem to run > properly on my P4 with no problems at all.... > > Any ideas? It's a bug. Page Faults cannot be caused by a bad opcode (which would be the case if the program couldn't run on a 486): those trigger SIGILL, not SIGSEGV. I suspect that the reason for the different behavior is something else, like memory amount/configuration, for example. Windows is quite lenient towards bad pointers. As DJ suggested: debugging the program is the way to find out what went wrong.