public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* STATUS_ACCESS_VIOLATION in egcs-1.1.1 (cygwin) compiled program
@ 1999-03-09 12:20 028587726-0001
       [not found] ` < 36E5ACAF.14C789B2@t-online.de >
  1999-03-31 19:45 ` 028587726-0001
  0 siblings, 2 replies; 6+ messages in thread
From: 028587726-0001 @ 1999-03-09 12:20 UTC (permalink / raw)
  To: cygwin

The following program crashes with STATUS_ACCESS_VIOLATION when
returning a class. Its compiled with egcs-2.91.60 in Cygnus b20.1. It
does not crash in a LINUX System, compiled with the same Version of the
egcs compiler.
If I'm a stupid, tell me.

gcc -v -o dump dump.cpp
Reading specs from
D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/specs

gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/cpp.exe
-lang-c++ -v -iprefix
D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/
-undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91
-Di386 -D_WIN32 -DWINNT -D_X86_=1 -D__STDC__=1
-D__stdcall=__attribute__((__stdcall__))
-D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x))
-D__i386__ -D_WIN32 -D__WINNT__ -D_X86_=1 -D__STDC__=1
-D__stdcall=__attribute__((__stdcall__))
-D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x))
-D__i386 -D__WINNT -Asystem(winnt) -Acpu(i386) -Amachine(i386)
-D__EXCEPTIONS -remap -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386
-D__i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pentium
-D__pentium__ -D__CYGWIN32__ -D__CYGWIN__ dump.cpp
C:\WINDOWS\TEMP/cctTgmB3.ii
GNU CPP version egcs-2.91.60 19981201 (egcs-1.1.1 release) (80386, BSD
syntax)
#include "..." search starts here:
#include <...> search starts here:
 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/../../../../../include/g++

 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/../../../../../include

 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/../../../../i586-cygwin32/include

 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/include

End of search list.
 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/cc1plus.exe
C:\WINDOWS\TEMP/cctTgmB3.ii -quiet -dumpbase dump.cc -version -o
C:\WINDOWS\TEMP/ccvN2ZO6.s
GNU C++ version egcs-2.91.60 19981201 (egcs-1.1.1 release)
(i586-cygwin32) compiled by GNU C version egcs-2.91.60 19981201
(egcs-1.1.1 release).
 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/../../../../i586-cygwin32/bin/as.exe
-o C:\WINDOWS\TEMP/ccno1tcm.o C:\WINDOWS\TEMP/ccvN2ZO6.s
 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/collect2.exe
-o dump.exe
D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/../../../../i586-cygwin32/lib/crt0.o
-LD:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60
-LD:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib
-LD:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/../../../../i586-cygwin32/lib
-LD:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/../../..
C:\WINDOWS\TEMP/ccno1tcm.o -lgcc -lcygwin -lkernel32 -ladvapi32
-lshell32 -lgcc
./dump
[main] E:\SOURCEN\DUMP_CYGNUS\DUMP.EXE 1104 (0) handle_exceptions:
Exception: STATUS_ACCESS_VIOLATION
[main] DUMP 1104 (0) handle_exceptions: Dumping stack trace to
DUMP.EXE.core

My program:

int  return1() {return 1;}
struct B {
  int i;
  B() {i=1;}
  ~B() {}
};
B returnB() {
  B erg;
  return erg;
};
void  test()  {
  for(int k=0;k<2;k++) {
    returnB();
    int d=return1()+return1();
  }
}
void main(void)
{
  test();
}

Every line seems to be important !

Thanks for the delightfull compiler and cygwin.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: STATUS_ACCESS_VIOLATION in egcs-1.1.1 (cygwin) compiled program
       [not found] ` < 36E5ACAF.14C789B2@t-online.de >
@ 1999-03-09 15:15   ` Mumit Khan
       [not found]     ` < Pine.SUN.3.93.990309171422.25021C-100000@modi.xraylith.wisc.edu >
  1999-03-31 19:45     ` Mumit Khan
  0 siblings, 2 replies; 6+ messages in thread
From: Mumit Khan @ 1999-03-09 15:15 UTC (permalink / raw)
  To: 028587726-0001; +Cc: cygwin

On Wed, 10 Mar 1999, 028587726-0001 wrote:

> The following program crashes with STATUS_ACCESS_VIOLATION when
> returning a class. Its compiled with egcs-2.91.60 in Cygnus b20.1. It
> does not crash in a LINUX System, compiled with the same Version of the
> egcs compiler.
> If I'm a stupid, tell me.

This is fixed in upcoming egcs-1.1.2. I'll announce the binaries as soon
as EGCS group announces the source release (hopefully early next week).

Regards,
Mumit




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: STATUS_ACCESS_VIOLATION in egcs-1.1.1 (cygwin) compiled program
       [not found]     ` < Pine.SUN.3.93.990309171422.25021C-100000@modi.xraylith.wisc.edu >
@ 1999-03-09 15:21       ` Mumit Khan
  1999-03-31 19:45         ` Mumit Khan
  0 siblings, 1 reply; 6+ messages in thread
From: Mumit Khan @ 1999-03-09 15:21 UTC (permalink / raw)
  To: 028587726-0001; +Cc: cygwin

On Tue, 9 Mar 1999, Mumit Khan wrote:

> On Wed, 10 Mar 1999, 028587726-0001 wrote:
> 
> > The following program crashes with STATUS_ACCESS_VIOLATION when
> > returning a class. Its compiled with egcs-2.91.60 in Cygnus b20.1. It
> > does not crash in a LINUX System, compiled with the same Version of the
> > egcs compiler.
> > If I'm a stupid, tell me.
> 
> This is fixed in upcoming egcs-1.1.2. I'll announce the binaries as soon
> as EGCS group announces the source release (hopefully early next week).
> 

Ooops. Sorry, but I was thinking about a similar, but unrelated bug! 

You may be running into a problem with the exception handling that is
win32 specific (or rather specific to targets that are using setjmp/
longjmp based exception handling).

A workaround is to turn on optimization. I'll take a closer look soon and
let you know.

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: STATUS_ACCESS_VIOLATION in egcs-1.1.1 (cygwin) compiled program
  1999-03-09 15:21       ` Mumit Khan
@ 1999-03-31 19:45         ` Mumit Khan
  0 siblings, 0 replies; 6+ messages in thread
From: Mumit Khan @ 1999-03-31 19:45 UTC (permalink / raw)
  To: 028587726-0001; +Cc: cygwin

On Tue, 9 Mar 1999, Mumit Khan wrote:

> On Wed, 10 Mar 1999, 028587726-0001 wrote:
> 
> > The following program crashes with STATUS_ACCESS_VIOLATION when
> > returning a class. Its compiled with egcs-2.91.60 in Cygnus b20.1. It
> > does not crash in a LINUX System, compiled with the same Version of the
> > egcs compiler.
> > If I'm a stupid, tell me.
> 
> This is fixed in upcoming egcs-1.1.2. I'll announce the binaries as soon
> as EGCS group announces the source release (hopefully early next week).
> 

Ooops. Sorry, but I was thinking about a similar, but unrelated bug! 

You may be running into a problem with the exception handling that is
win32 specific (or rather specific to targets that are using setjmp/
longjmp based exception handling).

A workaround is to turn on optimization. I'll take a closer look soon and
let you know.

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: STATUS_ACCESS_VIOLATION in egcs-1.1.1 (cygwin) compiled program
  1999-03-09 15:15   ` Mumit Khan
       [not found]     ` < Pine.SUN.3.93.990309171422.25021C-100000@modi.xraylith.wisc.edu >
@ 1999-03-31 19:45     ` Mumit Khan
  1 sibling, 0 replies; 6+ messages in thread
From: Mumit Khan @ 1999-03-31 19:45 UTC (permalink / raw)
  To: 028587726-0001; +Cc: cygwin

On Wed, 10 Mar 1999, 028587726-0001 wrote:

> The following program crashes with STATUS_ACCESS_VIOLATION when
> returning a class. Its compiled with egcs-2.91.60 in Cygnus b20.1. It
> does not crash in a LINUX System, compiled with the same Version of the
> egcs compiler.
> If I'm a stupid, tell me.

This is fixed in upcoming egcs-1.1.2. I'll announce the binaries as soon
as EGCS group announces the source release (hopefully early next week).

Regards,
Mumit




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* STATUS_ACCESS_VIOLATION in egcs-1.1.1 (cygwin) compiled program
  1999-03-09 12:20 STATUS_ACCESS_VIOLATION in egcs-1.1.1 (cygwin) compiled program 028587726-0001
       [not found] ` < 36E5ACAF.14C789B2@t-online.de >
@ 1999-03-31 19:45 ` 028587726-0001
  1 sibling, 0 replies; 6+ messages in thread
From: 028587726-0001 @ 1999-03-31 19:45 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 3471 bytes --]

The following program crashes with STATUS_ACCESS_VIOLATION when
returning a class. Its compiled with egcs-2.91.60 in Cygnus b20.1. It
does not crash in a LINUX System, compiled with the same Version of the
egcs compiler.
If I'm a stupid, tell me.

gcc -v -o dump dump.cpp
Reading specs from
D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/specs

gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/cpp.exe
-lang-c++ -v -iprefix
D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/
-undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91
-Di386 -D_WIN32 -DWINNT -D_X86_=1 -D__STDC__=1
-D__stdcall=__attribute__((__stdcall__))
-D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x))
-D__i386__ -D_WIN32 -D__WINNT__ -D_X86_=1 -D__STDC__=1
-D__stdcall=__attribute__((__stdcall__))
-D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x))
-D__i386 -D__WINNT -Asystem(winnt) -Acpu(i386) -Amachine(i386)
-D__EXCEPTIONS -remap -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386
-D__i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pentium
-D__pentium__ -D__CYGWIN32__ -D__CYGWIN__ dump.cpp
C:\WINDOWS\TEMP/cctTgmB3.ii
GNU CPP version egcs-2.91.60 19981201 (egcs-1.1.1 release) (80386, BSD
syntax)
#include "..." search starts here:
#include <...> search starts here:
 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/../../../../../include/g++

 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/../../../../../include

 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/../../../../i586-cygwin32/include

 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/include

End of search list.
 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/cc1plus.exe
C:\WINDOWS\TEMP/cctTgmB3.ii -quiet -dumpbase dump.cc -version -o
C:\WINDOWS\TEMP/ccvN2ZO6.s
GNU C++ version egcs-2.91.60 19981201 (egcs-1.1.1 release)
(i586-cygwin32) compiled by GNU C version egcs-2.91.60 19981201
(egcs-1.1.1 release).
 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/../../../../i586-cygwin32/bin/as.exe
-o C:\WINDOWS\TEMP/ccno1tcm.o C:\WINDOWS\TEMP/ccvN2ZO6.s
 D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/collect2.exe
-o dump.exe
D:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/../../../../i586-cygwin32/lib/crt0.o
-LD:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60
-LD:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib
-LD:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/../../../../i586-cygwin32/lib
-LD:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.60/../../..
C:\WINDOWS\TEMP/ccno1tcm.o -lgcc -lcygwin -lkernel32 -ladvapi32
-lshell32 -lgcc
./dump
[main] E:\SOURCEN\DUMP_CYGNUS\DUMP.EXE 1104 (0) handle_exceptions:
Exception: STATUS_ACCESS_VIOLATION
[main] DUMP 1104 (0) handle_exceptions: Dumping stack trace to
DUMP.EXE.core

My program:

int  return1() {return 1;}
struct B {
  int i;
  B() {i=1;}
  ~B() {}
};
B returnB() {
  B erg;
  return erg;
};
void  test()  {
  for(int k=0;k<2;k++) {
    returnB();
    int d=return1()+return1();
  }
}
void main(void)
{
  test();
}

Every line seems to be important !

Thanks for the delightfull compiler and cygwin.

[-- Attachment #2: dump.cpp --]
[-- Type: text/x-c, Size: 259 bytes --]

int  return1() {return 1;}
struct B {
  int i;
  B() {i=1;}
  ~B() {}
};
B returnB() {
  B erg;
  return erg;
};
void  test()  {
  for(int k=0;k<2;k++) { 
    returnB();
    int d=return1()+return1(); 
  } 
}
void main(void)
{
  test();
}

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-03-31 19:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-09 12:20 STATUS_ACCESS_VIOLATION in egcs-1.1.1 (cygwin) compiled program 028587726-0001
     [not found] ` < 36E5ACAF.14C789B2@t-online.de >
1999-03-09 15:15   ` Mumit Khan
     [not found]     ` < Pine.SUN.3.93.990309171422.25021C-100000@modi.xraylith.wisc.edu >
1999-03-09 15:21       ` Mumit Khan
1999-03-31 19:45         ` Mumit Khan
1999-03-31 19:45     ` Mumit Khan
1999-03-31 19:45 ` 028587726-0001

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).