delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/20/13:31:54

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
To: cygwin AT sourceware DOT cygnus DOT com
Date: Sun, 21 Feb 1999 12:32:36 -0600
Subject: runtime STATUS ACCESS VIOLATIONS
Message-ID: <19990221.123247.-193569.1.murli@juno.com>
X-Mailer: Juno 2.0.11
X-Juno-Line-Breaks: 0-22,24,26-30
X-Juno-Att: 0
MIME-Version: 1.0
From: Murli Ganeshan <murli AT juno DOT com>

I have cygwin 20.1 installed on my windows 95 machine and observe
errors while trying to run some c++ code compiled with g++ (2.8.1)

I have a simple c++ program that generates ACCESS VIOLATIONS at
runtime. The same code does not generate any runtime errors while
running the executable generated from djgpp on the same machine. Also,
there are no runtime errors when compiled on a Linux 2.0.36 box or a
SUNos 4.1.4 box.

I believe this error is due to dynamic memory allocation but cannot
figure out why I dont get the same error while using djgpp gcc
(2.7.2)? Also the gdb with cygnus does not seem to read the core file.

I saw some old postings related to ACCESS VIOLATIONS with malloc and
the solution was to replace that with mmalloc. Is there a similar one
for the "new" dynamic memory allocator in c++ that I can use?

Here's a command line snippet. I would appreciate any
feedback/suggestions to debug the problem.


bash.exe-2.02$ g++ list2.cpp listex2.cxx -o exam
bash.exe-2.02$ exam
[main] C:\MSDEV\PROJECTS\HMWK3\EXAM.EXE 1011 (0) handle_exceptions:
Exception: STATUS_ACCESS_VIOLATION
[main] EXAM 1011 (0) handle_exceptions: Dumping stack trace to
EXAM.EXE.core

thanks
murli


___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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