delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/09/02:29:41

Date: Fri, 09 Feb 2001 09:24:10 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Nimrod A. Abing" <n_abing AT ns DOT roxas-online DOT net DOT ph>
Message-Id: <3405-Fri09Feb2001092409+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: <3.0.1.32.20010209133837.006cd998@wingate>
(n_abing AT ns DOT roxas-online DOT net DOT ph)
Subject: Re: GDB runs out of virtual memory
References: <3 DOT 0 DOT 1 DOT 32 DOT 20010209133837 DOT 006cd998 AT wingate>
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

> Date: Fri, 09 Feb 2001 13:38:37 +0800
> From: "Nimrod A. Abing" <n_abing AT ns DOT roxas-online DOT net DOT ph>
> 
> I tried debugging the program with GDB using my old PC and it worked. Now
> this was a surprise. The ol' clunker with 32MB of memory could GDBug a
> 2.44MB program without problems while the shiny new geewhizbangthingamajig
> with 64MB runs out of virtual memory. Both computers run Windos 98
> (4.10.2222 a) and both have the same memory settings for the Windos DOS
> box. What in the world is going on??? GDB also barfs out the same message
> when I am running under plain DOS with CWSDPMI R5 as my DPMI host.
> 
> After much trial and error in removing, reinstalling and installing Windos
> device drivers and such, I found the culprit. I had installed Norton
> Antivirus 95 on the new PC. When I uninstalled it GDB worked again.

I'm not sure I'm following.  You say that the same problem happened on
this machine when you run GDB in plain DOS mode?  Won't that mean that
there's no Norton Antivirus installed, since the antivirus is a
Windows program?

> It seems
> that NAVDX prevents programs from allocating huge chunks of memory.

I'm not sure it's the memory thing.  If you have time and motivation,
perhaps you could try several experiments:

  - write a test program that allocates memory in various chunk sizes
    and see how does it behave with and without the antivirus;
  - try running your program with FSDB instead of GDB, and see if you
    have the same problems as with GDB;
  - try running your program via go32-v2 and see if it behaves like
    GDB.

> Is there anyone out there who has had the same/similar experience?

I don't think anyone ever reported this, but thanks for digging into
the problem, it will be in the next release of the FAQ.

I'd suggest to contact the vendor and ask them about the problem.
Maybe they have a solution or a work-around.

> I am
> running my PC without an antivirus program, and given the nature of my job
> (freelance QA/Beta tester) it won't be long before my PC gets stoned...

Don't tell anyone: antivirus programs are almost useless these days.
Most (all) of the viruses out there spread by email, so if you are
careful to read mail with a mailer which doesn't open attachments, you
will never get burned.  Another door through which a virus can enter
is programs such as mIRC which have features to let people run
programs on your machine, but all you need is to turn those features
off.

- Raw text -


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