From: SourceForge.net <no...@so...> - 2004-06-04 18:25:04
|
Bugs item #966724, was opened at 2004-06-04 20:25 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=966724&group_id=2435 Category: gcc Group: None Status: Open Resolution: None Priority: 5 Submitted By: Gerd Behrmann (behrmann) Assigned to: Danny Smith (dannysmith) Summary: Stack corruption with C++ exceptions Initial Comment: OS: Windows 2000 gcc version 3.4.0 (mingw special) GNU ld version 2.13.90 20021005 cygwin build environment mingw runtime version: 3.3 w32 api version: 2.5 I observe stack corruption when catching exceptions in functions using variable sized arrays. I have attached a test case: When compiled with g++ test.cc and executed, the program fails in the assertion after catching the exception. If the throw is uncommented, the assertion holds. If the array declaration is changed to have a fixed size (i.e. replace int a[size] with int a[2]), the assertion also holds. I have observed the same problem with gcc 3.3.3. I have not been able to reproduce this under Linux. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=966724&group_id=2435 |