www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/14/10:45:43

Date: Sun, 14 Jun 1998 17:45:26 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Aleksey Kondratyev <akondra AT mv DOT ru>
cc: djgpp AT delorie DOT com
Subject: Re: strange SIGSEGV
In-Reply-To: <6m0eh3$bv9$1@simtel.ru>
Message-ID: <Pine.SUN.3.91.980614173603.7282J-100000@is>
MIME-Version: 1.0

On Sun, 14 Jun 1998, Aleksey Kondratyev wrote:

> It uses dynamic allocation and crashes on very complex
> tasks (lots of small chunks are allocated) but under
> Win95 only (giving memory protection fault). Everything
> works perfectly and produces right result under plain DOS.

Please post a full example of the crash traceback.

> Also, no problems running from rhide or gdb invoked under
> Win95.

This sounds like you are accessing uninitialized memory.

> Could it be a bug in Win95 DPMI or memory allocation scheme?

I don't think so.  The DPMI server is only asked to provide chunks of 
memory.  Everything else is done by library functions.

It could be, though, that there's some bug in your program which is 
sensitive to the particulars of the allocation scheme, like if the chunks 
are or aren't consecutive.

>            Remove "no-spam-" when replying

Please try to avoid the anti-spammed address in the first place, 
especially when asking for help.  It is a pain in the lower back to 
remove all those.

- Raw text -


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