www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/26/18:29:46

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
Message-ID: <B3953869CBF8D211A1E50004AC4C1B5402F401@ULTIMATE2>
From: "Lincoln, W. Terry" <terryl AT ultimatetechnology DOT com>
To: "'linus AT odd DOT com DOT au'" <linus AT odd DOT com DOT au>
Cc: "'Cygwin Mailing List'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: RE: B20: Strange STATUS_ACCESS_VIOLATION Exception
Date: Wed, 26 May 1999 18:23:48 -0400
X-Mailer: Internet Mail Service (5.5.2448.0)

linus AT odd DOT com DOT au wrote:
> 
> This is the information about the bug
> 
> System used:
> Cygwin beta 20.1
> Windows 98
> Intel Celeron 266
> 
> Attached is the source code, core dump, cygcheck -s -v -r 
> output and the
> Makefile. (My appologies for attaching file in mailing list, 
> this is the
> first time I report a bug and I am not sure if this is appropriate).
> 
> To reproduce the error, do:
> 
> BASH.EXE-2.20$ make
> BASH.EXE-2.20$ ./a.exe <-- This is the good version
> BASH.EXE-2.20$ make test
> BASH.EXE-2.20$ ./a.exe <-- This has a STATUS_ACCESS_VIOLATION
> 
> The only different in the two programs is in the following two source
> files:
> 
> 1) ass5.cpp
> 2) test.cpp
> 
> Special thanks for Cygwin group at Cygnus Solutions for making Cygwin
> available.

FWIW:
You might try adding the following:

To array.h:

template<class G> ARRAY<G>::ARRAY( int min, int max)
{
	items = 0;  // <-- Should have this (or NULL)
	make( min, max);
}

To dbtable.h:

void add(const int idx, const T new_item) // <-- "void" return type
{
	ROW<T> *r;
	r = new ROW<T>( idx, new_item);
	table->grow( table->upper + 1);
	table->put( r, table->upper);
}

See if it works better.  Other than that I can't see any problems except for
missing destructors.

Be Well.

W. Terry Lincoln - Senior Engineer         \     \   _   /
Ultimate Technology Corporation             \     \ |J| /
a Tridex Company (NASDAQ:trdx)               \     _|E|_
ICQ <http://wwp.icq.com/39362285>             \   |_ S _|
    <mailto:WTerryLincoln AT engineer DOT com>        \    |U|
<http://www.AngelFire.com/ny/TerryLincoln>      \ / |S| \
<http://www.geocities.com/Eureka/Concourse/7326> \  | |
================================================== ~~~~~
Opinions expressed do not represent the management of UTC.


--
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