public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19876] New: g++ starts eating all the memory and the CPU
@ 2005-02-10 21:04 pied at fnux dot org
  2005-02-10 21:10 ` [Bug c++/19876] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: pied at fnux dot org @ 2005-02-10 21:04 UTC (permalink / raw)
  To: gcc-bugs

Hi    
    
I'm developing a linux distribution with friends, and we decided to use gcc 4.    
A few days ago, KDE 3.3.92 was released.     
But it doesn't compile :( Especially, with the kdepim package, g++ starts    
eating all the memory and all the CPU on a file.     
I can't submit this file because it relies on a lot of headers and libs from    
KDE and Qt so it would be to heavy.    
Here is the command line :   
if /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H   
-I. -I. -I.. -I../libkmime -I../libkpgp -I../libkdenetwork -I../libkdepim   
-I../libkpimidentities -I../libemailfunctions -I../libksieve -I../mimelib   
-I../certmanager/lib -I..  -I../libkdepim -I/usr/lib/qt3/include   
-I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT   
-D_FILE_OFFSET_BITS=64  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi   
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts   
-Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security   
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common   
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT   
-DQT_NO_TRANSLATION  -MT globalsettings.lo -MD -MP -MF   
".deps/globalsettings.Tpo" -c -o globalsettings.lo globalsettings.cpp; \   
then mv -f ".deps/globalsettings.Tpo" ".deps/globalsettings.Plo"; else rm -f   
".deps/globalsettings.Tpo"; exit 1; fi   
   
Configure of gcc :   
../gcc-4.0-20050130/configure --prefix=/usr --libexecdir=/usr/lib  
--enable-shared --enable-threads=posix --enable-__cxa_atexit  
--enable-clocale=gnu --enable-languages=c,c++,java,objc --with-libffi  
--enable-libffi  
 
I reported the bug on bugs.kde.org too : 
http://bugs.kde.org/show_bug.cgi?id=99045 
 
Thanks

-- 
           Summary: g++ starts eating all the memory and the CPU
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pied at fnux dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19876


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

* [Bug c++/19876] g++ starts eating all the memory and the CPU
  2005-02-10 21:04 [Bug c++/19876] New: g++ starts eating all the memory and the CPU pied at fnux dot org
@ 2005-02-10 21:10 ` pinskia at gcc dot gnu dot org
  2005-02-10 21:13 ` pied at fnux dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-10 21:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-10 18:06 -------
Did you read <http://gcc.gnu.org/bugs.html>.  We need the preprocessed source.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
           Keywords|                            |memory-hog


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19876


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

* [Bug middle-end/19876] [4.0 Regression] g++ starts eating all the memory and the CPU
  2005-02-10 21:04 [Bug c++/19876] New: g++ starts eating all the memory and the CPU pied at fnux dot org
  2005-02-10 21:10 ` [Bug c++/19876] " pinskia at gcc dot gnu dot org
  2005-02-10 21:13 ` pied at fnux dot org
@ 2005-02-10 21:13 ` pinskia at gcc dot gnu dot org
  2005-02-10 21:28 ` [Bug tree-optimization/19876] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-10 21:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-10 18:30 -------
Ok, I can confirm this with the following options on powerpc-darwin (which means it is most likely a 
tree optimizator problem but I could be wrong).
 -fno-exceptions -fno-check-new -fno-common -O2

It worked in 3.3.2 so this is a regression.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |middle-end
      Known to fail|                            |4.0.0
      Known to work|                            |3.3.2
            Summary|g++ starts eating all the   |[4.0 Regression] g++ starts
                   |memory and the CPU          |eating all the memory and
                   |                            |the CPU
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19876


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

* [Bug c++/19876] g++ starts eating all the memory and the CPU
  2005-02-10 21:04 [Bug c++/19876] New: g++ starts eating all the memory and the CPU pied at fnux dot org
  2005-02-10 21:10 ` [Bug c++/19876] " pinskia at gcc dot gnu dot org
@ 2005-02-10 21:13 ` pied at fnux dot org
  2005-02-10 21:13 ` [Bug middle-end/19876] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pied at fnux dot org @ 2005-02-10 21:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pied at fnux dot org  2005-02-10 18:13 -------
Created an attachment (id=8162)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8162&action=view)
The prepocessed source

I'm sorry, really sorry !
I generated the file, but forget to send it :/

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19876


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

* [Bug tree-optimization/19876] [4.0 Regression] g++ starts eating all the memory and the CPU
  2005-02-10 21:04 [Bug c++/19876] New: g++ starts eating all the memory and the CPU pied at fnux dot org
                   ` (2 preceding siblings ...)
  2005-02-10 21:13 ` [Bug middle-end/19876] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2005-02-10 21:28 ` pinskia at gcc dot gnu dot org
  2005-02-10 22:09 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-10 21:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-10 18:35 -------
PRE is eating up a huge amount of memory.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dberlin at gcc dot gnu dot
                   |                            |org, pinskia at gcc dot gnu
                   |                            |dot org
          Component|middle-end                  |tree-optimization


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19876


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

* [Bug tree-optimization/19876] [4.0 Regression] g++ starts eating all the memory and the CPU
  2005-02-10 21:04 [Bug c++/19876] New: g++ starts eating all the memory and the CPU pied at fnux dot org
                   ` (3 preceding siblings ...)
  2005-02-10 21:28 ` [Bug tree-optimization/19876] " pinskia at gcc dot gnu dot org
@ 2005-02-10 22:09 ` pinskia at gcc dot gnu dot org
  2005-02-10 22:13 ` dberlin at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-10 22:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-10 19:04 -------
Reverting the following patch fixes the bug:
2005-01-14  Steven Bosscher  <stevenb@suse.de>

        * tree-ssa-dce.c (visited_control_parents): New sbitmap to
        replace BB_VISITED uses.
        (find_obviously_necessary_stmts): Don't clear BB_VISITED.
        (propagate_necessity): Check the bitmap instead of BB_VISITED.
        (tree_dce_done): Free visited_control_parents.
        (perform_tree_ssa_dce): Allocate and clear it.
        * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
        (compute_antic): Iterate from here using a DFS.  Use an sbitmap
        instead of BB_VISITED.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steven at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-10 19:04:05
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19876


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

* [Bug tree-optimization/19876] [4.0 Regression] g++ starts eating all the memory and the CPU
  2005-02-10 21:04 [Bug c++/19876] New: g++ starts eating all the memory and the CPU pied at fnux dot org
                   ` (4 preceding siblings ...)
  2005-02-10 22:09 ` pinskia at gcc dot gnu dot org
@ 2005-02-10 22:13 ` dberlin at gcc dot gnu dot org
  2005-02-10 22:28 ` steven at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dberlin at gcc dot gnu dot org @ 2005-02-10 22:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dberlin at gcc dot gnu dot org  2005-02-10 19:06 -------
Pinski is correct (i know because i told him that was the cause :P)

It no longer converges (i suspect some strange bug in your logic).
Before it converged in 2 iterations.
I stopped it at 958 iterations because i was running out of memory.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19876


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

* [Bug tree-optimization/19876] [4.0 Regression] g++ starts eating all the memory and the CPU
  2005-02-10 21:04 [Bug c++/19876] New: g++ starts eating all the memory and the CPU pied at fnux dot org
                   ` (5 preceding siblings ...)
  2005-02-10 22:13 ` dberlin at gcc dot gnu dot org
@ 2005-02-10 22:28 ` steven at gcc dot gnu dot org
  2005-02-12  8:00 ` cvs-commit at gcc dot gnu dot org
  2005-02-12  8:11 ` steven at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-02-10 22:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2005-02-10 19:15 -------
I'll look into it. 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|steven at gcc dot gnu dot   |
                   |org                         |
         AssignedTo|unassigned at gcc dot gnu   |steven at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-02-10 19:04:05         |2005-02-10 19:15:22
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19876


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

* [Bug tree-optimization/19876] [4.0 Regression] g++ starts eating all the memory and the CPU
  2005-02-10 21:04 [Bug c++/19876] New: g++ starts eating all the memory and the CPU pied at fnux dot org
                   ` (6 preceding siblings ...)
  2005-02-10 22:28 ` steven at gcc dot gnu dot org
@ 2005-02-12  8:00 ` cvs-commit at gcc dot gnu dot org
  2005-02-12  8:11 ` steven at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-12  8:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-11 21:52 -------
Subject: Bug 19876

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	steven@gcc.gnu.org	2005-02-11 21:52:39

Modified files:
	gcc            : ChangeLog tree-ssa-pre.c 

Log message:
	PR tree-optimization/19876
	Partially revert my change from 2005-01-14
	* tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
	(compute_antic): ...and remove the loop here.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7450&r2=2.7451
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-pre.c.diff?cvsroot=gcc&r1=2.63&r2=2.64



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19876


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

* [Bug tree-optimization/19876] [4.0 Regression] g++ starts eating all the memory and the CPU
  2005-02-10 21:04 [Bug c++/19876] New: g++ starts eating all the memory and the CPU pied at fnux dot org
                   ` (7 preceding siblings ...)
  2005-02-12  8:00 ` cvs-commit at gcc dot gnu dot org
@ 2005-02-12  8:11 ` steven at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-02-12  8:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2005-02-11 21:56 -------
Should be fixed now.  Bash me if it is not. 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19876


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

end of thread, other threads:[~2005-02-11 21:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-10 21:04 [Bug c++/19876] New: g++ starts eating all the memory and the CPU pied at fnux dot org
2005-02-10 21:10 ` [Bug c++/19876] " pinskia at gcc dot gnu dot org
2005-02-10 21:13 ` pied at fnux dot org
2005-02-10 21:13 ` [Bug middle-end/19876] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-02-10 21:28 ` [Bug tree-optimization/19876] " pinskia at gcc dot gnu dot org
2005-02-10 22:09 ` pinskia at gcc dot gnu dot org
2005-02-10 22:13 ` dberlin at gcc dot gnu dot org
2005-02-10 22:28 ` steven at gcc dot gnu dot org
2005-02-12  8:00 ` cvs-commit at gcc dot gnu dot org
2005-02-12  8:11 ` steven at gcc dot gnu dot org

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