public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5246: g++ 3.0.3: exception throw crash when -O -fomit-frame-pointer
@ 2002-02-16  4:56 Gwenole Beauchesne
  0 siblings, 0 replies; 7+ messages in thread
From: Gwenole Beauchesne @ 2002-02-16  4:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/5246; it has been noted by GNATS.

From: Gwenole Beauchesne <gbeauchesne@mandrakesoft.com>
To: Gabriel Dos Reis <gdr@codesourcery.com>
Cc: <gcc-gnats@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>, <eru@netti.fi>,
        <gcc-bugs@gcc.gnu.org>, <nobody@gcc.gnu.org>
Subject: Re: c++/5246: g++ 3.0.3: exception throw crash when -O -fomit-frame-pointer
Date: Sat, 16 Feb 2002 13:56:29 +0100 (CET)

 On 15 Feb 2002, Gabriel Dos Reis wrote:
 
 > Do you have CVS write access?
 
 Nope. Do you have any hints about how that got fixed in mainline?
 
 Bye,
 Gwenole.
 


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

* Re: c++/5246: g++ 3.0.3: exception throw crash when -O -fomit-frame-pointer
@ 2002-03-03 11:31 rodrigc
  0 siblings, 0 replies; 7+ messages in thread
From: rodrigc @ 2002-03-03 11:31 UTC (permalink / raw)
  To: eru, gcc-bugs, gcc-prs, nobody

Synopsis: g++ 3.0.3: exception throw crash when -O -fomit-frame-pointer

State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Mar  3 11:31:22 2002
State-Changed-Why:
    Duplicate of PR 2447

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5246


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

* Re: c++/5246: g++ 3.0.3: exception throw crash when -O -fomit-frame-pointer
@ 2002-02-14 20:16 Gabriel Dos Reis
  0 siblings, 0 replies; 7+ messages in thread
From: Gabriel Dos Reis @ 2002-02-14 20:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/5246; it has been noted by GNATS.

From: Gabriel Dos Reis <gdr@codesourcery.com>
To: Gwenole Beauchesne <gbeauchesne@mandrakesoft.com>
Cc: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, eru@netti.fi,
   gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, gdr@codesourcery.com
Subject: Re: c++/5246: g++ 3.0.3: exception throw crash when -O -fomit-frame-pointer
Date: 15 Feb 2002 05:06:55 +0100

 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> writes:
 
 | Hi Gaby,
 | 
 | The following should fit the new-style dejagnu framework. Note: though 
 | this happens to be fixed for 3.1, the problem remains for gcc-3.0.X, 
 | even with X=4 as of 06-Feb-2002.
 | 
 | 2002-02-12  Gwenole Beauchesne  <gbeauchesne@mandrakesoft.com>
 | 
 |     PR c++/5246, PR c++/2447
 |     * g++.dg/eh/unwind1.C: New test.
 
 OK.  
 
 Do you have CVS write access?
 
 -- Gaby


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

* Re: c++/5246: g++ 3.0.3: exception throw crash when -O -fomit-frame-pointer
@ 2002-02-12  5:56 Gwenole Beauchesne
  0 siblings, 0 replies; 7+ messages in thread
From: Gwenole Beauchesne @ 2002-02-12  5:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/5246; it has been noted by GNATS.

From: Gwenole Beauchesne <gbeauchesne@mandrakesoft.com>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, eru@netti.fi,
        gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc: gdr@codesourcery.com
Subject: Re: c++/5246: g++ 3.0.3: exception throw crash when -O -fomit-frame-pointer
Date: Tue, 12 Feb 2002 16:24:36 +0100

 Hi Gaby,
 
 The following should fit the new-style dejagnu framework. Note: though 
 this happens to be fixed for 3.1, the problem remains for gcc-3.0.X, 
 even with X=4 as of 06-Feb-2002.
 
 2002-02-12  Gwenole Beauchesne  <gbeauchesne@mandrakesoft.com>
 
     PR c++/5246, PR c++/2447
     * g++.dg/eh/unwind1.C: New test.
 
 --- gcc/testsuite/g++.dg/eh/unwind1.C.eh-failure    Tue Feb 12 11:57:44 2002
 +++ gcc/testsuite/g++.dg/eh/unwind1.C    Tue Feb 12 11:57:44 2002
 @@ -0,0 +1,34 @@
 +// Reduced from PR c++/5246, PR c++/2447
 +// { dg-do run }
 +// { dg-options "-O -fomit-frame-pointer" }
 +
 +void step (int)
 +{
 +  void *sp = __builtin_alloca (0);
 +}
 +
 +void f2 (void)
 +{
 +  step (2);
 +  throw int();
 +}
 +
 +void f1 (void)
 +{
 +  try
 +    {
 +      step (1);
 +      f2 ();
 +      step (-1);
 +    }
 +  catch (int)
 +    {
 +      step (3);
 +    }
 +}
 +
 +int main ()
 +{
 +  f1 ();
 +  return 0;
 +}
 
 Bye,
 Gwenole.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5246 
 
 


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

* Re: c++/5246: g++ 3.0.3: exception throw crash when -O  -fomit-frame-pointer
@ 2002-01-04 21:26 Craig Rodrigues
  0 siblings, 0 replies; 7+ messages in thread
From: Craig Rodrigues @ 2002-01-04 21:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/5246; it has been noted by GNATS.

From: Craig Rodrigues <rodrigc@mediaone.net>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, eru@netti.fi,
   gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, gbeauchesne@mandrakesoft.com
Cc:  
Subject: Re: c++/5246: g++ 3.0.3: exception throw crash when -O 
 -fomit-frame-pointer
Date: Sat, 05 Jan 2002 00:21:33 -0500

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5246
 
 The following was submitted by gdr@codesourcery.com:
 =================================================================
 
 
 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> writes:
 
  [...]
 
  | PS: Sorry, that's probably not the ideal file test name and location.
 
  |
  | 2002-01-02  Gwenole Beauchesne  <gbeauchesne@mandrakesoft.com>
  |
  |  PR c++/5246, PR c++/2447
  |  * g++.old-deja/g++.eh/unwind2.C: New test.
 
  Hi Gwen,
 
    New C++ testcases should use the new style DejGnu framework and
  should go in the appropriate subdirectoru of g++.dg/.  If you have
  further questions, don't hesitate to ask.
 
  Best,
 
  -- Gaby
  CodeSourcery, LLC                       http://www.codesourcery.com
 
 


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

* Re: c++/5246: g++ 3.0.3: exception throw crash when -O  -fomit-frame-pointer
@ 2002-01-02 20:26 Craig Rodrigues
  0 siblings, 0 replies; 7+ messages in thread
From: Craig Rodrigues @ 2002-01-02 20:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/5246; it has been noted by GNATS.

From: Craig Rodrigues <rodrigc@mediaone.net>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, eru@netti.fi,
   gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/5246: g++ 3.0.3: exception throw crash when -O 
 -fomit-frame-pointer
Date: Wed, 02 Jan 2002 23:25:52 -0500

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5246
 
 
 
 The following was submitted by gbeauchesne@mandrakesoft.com:
 ============================================================
 
  On 2 Jan 2002 eru@netti.fi wrote:
 
  > This is a re-report of my earlier problem report 4955 for GCC 3.0.2,
 which was
  > marked closed, but the problem seems to persist in GCC 3.0.3.
  > Exception throwing through multiple levels of catch+throw
  > crashes, if the combination of some -O option and
 -fomit-frame-pointer
  > is used. Either alone works. A short self-contained test program
 attached.
 
  Here is a testcase derived from PR c++/5246 and PR c++/2447.  Problem
  reproduced with FSF gcc 3.0.3 and binutils 2.11.92.0.12-2mdk (based on
 RH
  binutils 2.11.92.0.12-8). Can't reproduce with mainline (3.1 20020102).
 
 
  PS: Sorry, that's probably not the ideal file test name and location.
 
  2002-01-02  Gwenole Beauchesne  <gbeauchesne@mandrakesoft.com>
 
   PR c++/5246, PR c++/2447
   * g++.old-deja/g++.eh/unwind2.C: New test.
 
  --- gcc/testsuite/g++.old-deja/g++.eh/unwind2.C.eh-failure Wed Jan  2
 18:54:56 2002
  +++ gcc/testsuite/g++.old-deja/g++.eh/unwind2.C Wed Jan  2 18:54:03
 2002
  @@ -0,0 +1,33 @@
  +// Reduced from PR c++/5246, PR c++/2447
  +// Special g++ Options: -O -fomit-frame-pointer
  +
  +void step (int)
  +{
  +  void *sp = __builtin_alloca (0);
  +}
  +
  +void f2 (void)
  +{
  +  step (2);
  +  throw int();
  +}
  +
  +void f1 (void)
  +{
  +  try
  +    {
  +      step (1);
  +      f2 ();
  +      step (-1);
  +    }
  +  catch (int)
  +    {
  +      step (3);
  +    }
  +}
  +
  +int main ()
  +{
  +  f1 ();
  +  return 0;
  +}
 
 
 ============================================================
 
 


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

* c++/5246: g++ 3.0.3: exception throw crash when -O -fomit-frame-pointer
@ 2002-01-02  7:36 eru
  0 siblings, 0 replies; 7+ messages in thread
From: eru @ 2002-01-02  7:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5246
>Category:       c++
>Synopsis:       g++ 3.0.3: exception throw crash when -O -fomit-frame-pointer
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 02 07:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Erkki Ruohtula (eru@netti.fi)
>Release:        3.0.3
>Organization:
>Environment:
Linux on Pentium II (Red Hat 7.1)
>Description:
This is a re-report of my earlier problem report 4955 for GCC 3.0.2, which was
marked closed, but the problem seems to persist in GCC 3.0.3.
Exception throwing through multiple levels of catch+throw
crashes, if the combination of some -O option and -fomit-frame-pointer
is used. Either alone works. A short self-contained test program attached.
>How-To-Repeat:
$ g++ -v -O -fomit-frame-pointer except-bug.cpp
Reading specs from /opt/gcc/linux/ix86/gcc_3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/specs
Configured with: /usr/local/src/gcc-3.0.3/configure --prefix=/opt/gcc/linux/ix86/gcc_3.0.3 --enable-shared --enable-threads
Thread model: posix
gcc version 3.0.3
 /opt/gcc/linux/ix86/gcc_3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=3 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ except-bug.cpp -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase except-bug.cpp -O -version -fomit-frame-pointer -o /tmp/ccq59N2w.s
GNU CPP version 3.0.3 (cpplib) (i386 Linux/ELF)
GNU C++ version 3.0.3 (i686-pc-linux-gnu)
        compiled by GNU C version 3.0.3.
ignoring nonexistent directory "/opt/gcc/linux/ix86/gcc_3.0.3/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/gcc/linux/ix86/gcc_3.0.3/include/g++-v3
 /opt/gcc/linux/ix86/gcc_3.0.3/include/g++-v3/i686-pc-linux-gnu
 /opt/gcc/linux/ix86/gcc_3.0.3/include/g++-v3/backward
 /usr/local/include
 /opt/gcc/linux/ix86/gcc_3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/include
 /usr/include
End of search list.
 as --traditional-format -V -Qy -o /tmp/ccINwvx6.o /tmp/ccq59N2w.s
GNU assembler version 2.10.91 (i386-redhat-linux) using BFD version 2.10.91.0.2
 /opt/gcc/linux/ix86/gcc_3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /opt/gcc/linux/ix86/gcc_3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/crtbegin.o -L/opt/gcc/linux/ix86/gcc_3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3 -L/opt/gcc/linux/ix86/gcc_3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../.. /tmp/ccINwvx6.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /opt/gcc/linux/ix86/gcc_3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/crtend.o /usr/lib/crtn.o
$ a.out
Starting
in proc_1
Abort (core dumped)
$ 
>Fix:
Work-around: omit -fomit-frame-pointer, but then the generated
code is not as fast.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="except-bug.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="except-bug.cpp"

LyoKICogRGVtbyBHKysgZXhjZXB0aW9uIHByb2JsZW0uIENvbXBpbGUgd2l0aCAiZysrIC1PIC1m
b21pdC1mcmFtZS1wb2ludGVyIgogKiBNYWRlIGJ5IHNpbXBsaWZ5aW5nIEpvc2VwaCBNLiBPcm9z
dCdzIEJlbmNoKysgYmVuY2htYXJrIGZpbGUgZTAwMDAwNy5jcHAKICovCgpleHRlcm4gIkMiIHsK
ICAgIGV4dGVybiBpbnQgcHV0cyhjaGFyICopOyAvLyBNYWtlIHRoaXMgc291cmNlIHNlbGYtY29u
dGFpbmVkCn07CgpjbGFzcyBleGNlcHRpb25fNyB7CnB1YmxpYzoKCWJvb2wgZmxhZzsJCS8vIGNv
bnRyb2xzIHJldHVybiBvciByYWlzZSBleGNlcHRpb24KCXZvaWQgcHJvY18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in thread

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-16  4:56 c++/5246: g++ 3.0.3: exception throw crash when -O -fomit-frame-pointer Gwenole Beauchesne
  -- strict thread matches above, loose matches on Subject: below --
2002-03-03 11:31 rodrigc
2002-02-14 20:16 Gabriel Dos Reis
2002-02-12  5:56 Gwenole Beauchesne
2002-01-04 21:26 Craig Rodrigues
2002-01-02 20:26 Craig Rodrigues
2002-01-02  7:36 eru

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