public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4955: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer
@ 2001-12-01 0:24 rodrigc
0 siblings, 0 replies; 6+ messages in thread
From: rodrigc @ 2001-12-01 0:24 UTC (permalink / raw)
To: eru, gcc-bugs, gcc-gnats, gcc-prs, nobody, pinskia, rodrigc
Synopsis: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer
State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Dec 1 00:24:08 2001
State-Changed-Why:
Fixed in gcc version 3.0.3 20011119 (prerelease).
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4955&database=gcc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: c++/4955: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer
@ 2001-12-01 0:26 rodrigc
0 siblings, 0 replies; 6+ messages in thread
From: rodrigc @ 2001-12-01 0:26 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/4955; it has been noted by GNATS.
From: rodrigc@gcc.gnu.org
To: eru@netti.fi, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, pinskia@physics.uc.edu,
rodrigc@gcc.gnu.org
Cc:
Subject: Re: c++/4955: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer
Date: 1 Dec 2001 08:24:08 -0000
Synopsis: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer
State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Dec 1 00:24:08 2001
State-Changed-Why:
Fixed in gcc version 3.0.3 20011119 (prerelease).
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4955&database=gcc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: c++/4955: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer
@ 2001-11-22 7:06 Andris Pavenis
0 siblings, 0 replies; 6+ messages in thread
From: Andris Pavenis @ 2001-11-22 7:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/4955; it has been noted by GNATS.
From: Andris Pavenis <pavenis@latnet.lv>
To: rodrigc@gcc.gnu.org, eru@netti.fi, gcc-bugs@gcc.gnu.org,
gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org,
pinskia@physics.uc.edu
Cc:
Subject: Re: c++/4955: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer
Date: Fri, 30 Nov 2001 08:52:16 +0200
On Thursday 29 November 2001 18:08, rodrigc@gcc.gnu.org wrote:
> Synopsis: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer
>
> State-Changed-From-To: open->feedback
> State-Changed-By: rodrigc
> State-Changed-When: Thu Nov 29 08:08:33 2001
> State-Changed-Why:
> Does this patch help?
> http://gcc.gnu.org/ml/gcc-patches/2001-11/msg00698.html
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4955&datab
>ase=gcc
Verified crashes with gcc-3.0.3 20011128 (prerelease) built for
i686-pc-linux-gnu and works with gcc-3.1 20011128 (experimental)
built for the same target. So patch mentioned above doesn't seem to fix that
for i686-ps-linux-gnu
gcc-3.0.3 20011128:
andris@hal:~$ ./except-bug
Starting
in proc_1
Aborted (core dumped)
gcc-3.1 20011128:
andris@hal:~$ ./except-bug
Starting
in proc_1
Done
Strange but I got an oposite results when tested the same example some days
ago for i586-pc-msdosdjgpp:
gcc-3.0.1 - crash
gcc-3.0.3 20011126 (prerelease) - Ok
gcc-3.1 20011123 (experimental) - crash
Andris
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: c++/4955: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer
@ 2001-11-21 22:44 rodrigc
0 siblings, 0 replies; 6+ messages in thread
From: rodrigc @ 2001-11-21 22:44 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/4955; it has been noted by GNATS.
From: rodrigc@gcc.gnu.org
To: eru@netti.fi, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, pinskia@physics.uc.edu,
rodrigc@gcc.gnu.org
Cc:
Subject: Re: c++/4955: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer
Date: 29 Nov 2001 16:08:34 -0000
Synopsis: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer
State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Thu Nov 29 08:08:33 2001
State-Changed-Why:
Does this patch help?
http://gcc.gnu.org/ml/gcc-patches/2001-11/msg00698.html
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4955&database=gcc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: c++/4955: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer
@ 2001-11-21 22:42 rodrigc
0 siblings, 0 replies; 6+ messages in thread
From: rodrigc @ 2001-11-21 22:42 UTC (permalink / raw)
To: eru, gcc-bugs, gcc-gnats, gcc-prs, nobody, pinskia, rodrigc
Synopsis: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer
State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Thu Nov 29 08:08:33 2001
State-Changed-Why:
Does this patch help?
http://gcc.gnu.org/ml/gcc-patches/2001-11/msg00698.html
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4955&database=gcc
^ permalink raw reply [flat|nested] 6+ messages in thread
* c++/4955: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer
@ 2001-11-21 5:06 eru
0 siblings, 0 replies; 6+ messages in thread
From: eru @ 2001-11-21 5:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 4955
>Category: c++
>Synopsis: g++ 3.0.2: 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: Tue Nov 27 06:36:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: eru@netti.fi
>Release: 3.0.2
>Organization:
>Environment:
Linux on Pentium II (distro Red Hat 7.1)
>Description:
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. Observed in one test case from the "Bench++"
suite. A simplified, self-contained version of the case is in the
attachment.
>How-To-Repeat:
$ g++ -v -O -fomit-frame-pointer except-bug.cpp
Reading specs from /opt/gcc/linux/ix86/gcc_3.0.2/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/specs
Configured with: /usr/local/src/gcc-3.0.2/configure --prefix=/opt/gcc/linux/ix86/gcc_3.0.2 --enable-shared --enable-threads
Thread model: posix
gcc version 3.0.2
/opt/gcc/linux/ix86/gcc_3.0.2/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=2 -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/cc8HQroN.s
GNU CPP version 3.0.2 (cpplib) (i386 Linux/ELF)
GNU C++ version 3.0.2 (i686-pc-linux-gnu)
compiled by GNU C version 3.0.2.
ignoring nonexistent directory "/opt/gcc/linux/ix86/gcc_3.0.2/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/gcc/linux/ix86/gcc_3.0.2/include/g++-v3
/opt/gcc/linux/ix86/gcc_3.0.2/include/g++-v3/i686-pc-linux-gnu
/opt/gcc/linux/ix86/gcc_3.0.2/include/g++-v3/backward
/usr/local/include
/opt/gcc/linux/ix86/gcc_3.0.2/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/include
/usr/include
End of search list.
as --traditional-format -V -Qy -o /tmp/ccMTqZ0C.o /tmp/cc8HQroN.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.2/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/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.2/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/crtbegin.o -L/opt/gcc/linux/ix86/gcc_3.0.2/lib/gcc-lib/i686-pc-linux-gnu/3.0.2 -L/opt/gcc/linux/ix86/gcc_3.0.2/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/../../.. /tmp/ccMTqZ0C.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /opt/gcc/linux/ix86/gcc_3.0.2/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/crtend.o /usr/lib/crtn.o
$ a.out
Starting
in proc_1
Abort (core dumped)
>Fix:
Workaround: 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
dCdzIEJlbmNoKysgYmVuY2htYXJrIGZpbGUgZTAwMDAwNy5j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JCXByb2NfMigpOwoJfSBjYXRjaCAoZXhjZXB0
aW9uXzcgZXgpIHsKCQl0aHJvdzsKCX0KfQoKdm9pZCAKZXhjZXB0aW9uXzc6OnByb2NfNCh2b2lk
KQp7Cgl0cnkgewoJCXByb2NfMygpOwoJfSBjYXRjaCAoZXhjZXB0aW9uXzcgZXgpIHsKCQl0aHJv
dzsKCX0KfQo=
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-12-01 8:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-01 0:24 c++/4955: g++ 3.0.2: exception throw crash when -O -fomit-frame-pointer rodrigc
-- strict thread matches above, loose matches on Subject: below --
2001-12-01 0:26 rodrigc
2001-11-22 7:06 Andris Pavenis
2001-11-21 22:44 rodrigc
2001-11-21 22:42 rodrigc
2001-11-21 5:06 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).