Date: Fri, 10 Nov 2000 12:23:56 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Jean-Pierre GHYS" Message-Id: <2950-Fri10Nov2000122356+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 CC: djgpp AT delorie DOT com In-reply-to: <8ug7ed$rok$1@orion.inrets.fr> (ghys@terre.inrets.fr) Subject: Re: Page fault Segmentation fault References: <8ug7ed$rok$1 AT orion DOT inrets DOT fr> 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: "Jean-Pierre GHYS" > Newsgroups: comp.os.msdos.djgpp > Date: Fri, 10 Nov 2000 08:26:42 +0100 > > i use DJGPP under DOS 6.0 with 16 Mo of memory and vhen i use somme POINTER > to passe data to other foction the programme will Crasch > with this message > > Exiting due to SIGSEGV segmentation fault > page fault at EIP =000192e,error 0006 Your program tried to access memory via an uninitialized pointer, and CWSDPMI, the DPMI server used on DOS, aborted it. See section 12.2 of the DJGPP FAQ list for more about this. That section also explains how to use the crash message to debug the problem. > and the message show me the line of the programe > > int fonction(int *alim,.......) > { > > ----- >>> *alim = valeur .....; The pointer alim has the garbled value. Look at it under a debugger, and you will see what's wrong. > if i use the same programe under WIN95 it works !!!! The DPMI server built into Windows doesn't support the feature required to catch invalid pointers. The bug still exists, you just don't see it on Windows.