public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: other/3782: -fstats produces a segmentation fault
@ 2002-12-09 11:20 ehrhardt
0 siblings, 0 replies; 4+ messages in thread
From: ehrhardt @ 2002-12-09 11:20 UTC (permalink / raw)
To: Sylvain.Pion, gcc-bugs, gcc-prs, nobody
Synopsis: -fstats produces a segmentation fault
State-Changed-From-To: open->feedback
State-Changed-By: cae
State-Changed-When: Mon Dec 9 11:20:25 2002
State-Changed-Why:
I can't reproduce this with recent gcc on a similar machine.
Does this still happen with your setup?
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3782
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: other/3782: -fstats produces a segmentation fault
@ 2002-12-10 4:16 Christian Ehrhardt
0 siblings, 0 replies; 4+ messages in thread
From: Christian Ehrhardt @ 2002-12-10 4:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR other/3782; it has been noted by GNATS.
From: "Christian Ehrhardt" <ehrhardt@mathematik.uni-ulm.de>
To: Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
Cc: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org,
gcc-gnats@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: Re: other/3782: -fstats produces a segmentation fault
Date: Tue, 10 Dec 2002 13:15:39 +0100
On Tue, Dec 10, 2002 at 12:16:31PM +0100, Sylvain Pion wrote:
> > Does this still happen with your setup?
>
> Yes it does. With current mainline, I get :
Thanks for the feedback. I only tried with gcc not with g++.
I now can reproduce this, cc1plus segfaults even without ANY
input file if -quiet and -fstats is passed. This one line patch
(compiled but not bootstrap tested) fixes the ICE for me, not sure
if this is the appropriate fix though. Someone please look at this
and check it in if appropriate.
--- gcc/timevar.c.orig Tue Dec 10 13:01:22 2002
+++ gcc/timevar.c Tue Dec 10 13:05:28 2002
@@ -404,7 +404,7 @@
timevar_accumulate (elapsed, &tv->start_time, &now);
}
/* Or is TIMEVAR at the top of the timer stack? */
- else if (stack->timevar == tv)
+ else if (stack && stack->timevar == tv)
{
get_time (&now);
timevar_accumulate (elapsed, &start_time, &now);
regards Christian
--
THAT'S ALL FOLKS!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: other/3782: -fstats produces a segmentation fault
@ 2002-12-10 3:26 Sylvain Pion
0 siblings, 0 replies; 4+ messages in thread
From: Sylvain Pion @ 2002-12-10 3:26 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR other/3782; it has been noted by GNATS.
From: Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
To: ehrhardt@mathematik.uni-ulm.de, Sylvain.Pion@sophia.inria.fr,
gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org,
gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: other/3782: -fstats produces a segmentation fault
Date: Tue, 10 Dec 2002 12:16:31 +0100
On Mon, Dec 09, 2002 at 07:20:25PM -0000, ehrhardt@mathematik.uni-ulm.de wrote:
> I can't reproduce this with recent gcc on a similar machine.
> Does this still happen with your setup?
Yes it does. With current mainline, I get :
spion@mpino1212:~/GCC$ ./Linux/bin/gcc -v
Reading specs from ./Linux/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc/configure --prefix=/home/spion/GCC/Linux
--enable-languages=c++ --with-as=/home/spion/BINUTILS/Linux-2.13/bin/as
--with-ld=/home/spion/BINUTILS/Linux-2.13/bin/ld
Thread model: posix
gcc version 3.3 20021210 (experimental)
spion@mpino1212:~/GCC$ ./Linux/bin/gcc -fstats -c foo.c
cc1: warning: "-fstats" is valid for C++ but not for C/ObjC
spion@mpino1212:~/GCC$ ./Linux/bin/g++ -fstats -c foo.C
<internal>:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
--
Sylvain
^ permalink raw reply [flat|nested] 4+ messages in thread
* other/3782: -fstats produces a segmentation fault
@ 2001-07-23 14:56 Sylvain.Pion
0 siblings, 0 replies; 4+ messages in thread
From: Sylvain.Pion @ 2001-07-23 14:56 UTC (permalink / raw)
To: gcc-gnats; +Cc: Sylvain.Pion
>Number: 3782
>Category: other
>Synopsis: -fstats produces a segmentation fault
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 23 14:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Sylvain.Pion@sophia.inria.fr
>Release: 3.0
>Organization:
>Environment:
Reading specs from ./gcc/Linux_CVS/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: /u/zosma/0/prisme/spion/gcc/gcc/configure --enable-languages=c++
--prefix=/u/zosma/0/prisme/spion/gcc/Linux_CVS
Thread model: single
gcc version 3.0
>Description:
Compiling any file (C or C++), even an empty file,
with -fstats produces :
<internal>:0: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-12-10 12:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-09 11:20 other/3782: -fstats produces a segmentation fault ehrhardt
-- strict thread matches above, loose matches on Subject: below --
2002-12-10 4:16 Christian Ehrhardt
2002-12-10 3:26 Sylvain Pion
2001-07-23 14:56 Sylvain.Pion
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).