public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/48670] New: explosion in time and stack usage when using -ggdb
@ 2011-04-18 17:49 matt at use dot net
  2011-04-19  9:45 ` [Bug debug/48670] " rguenth at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: matt at use dot net @ 2011-04-18 17:49 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: explosion in time and stack usage when using -ggdb
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: matt@use.net


When compiling the attached preprocessed source with -O1 -ggdb, an explosion in
memory usage occurs. If I remove the -ggdb, the problem doesn't happen. This
seems to affect 32-bit targets more deeply:
g++ -march=pentium4 -ggdb -O1 -c bts.i

Oddly, the problem doesn't happen when running under valgrind. The problem does
happen under gdb, though, so that's something.


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

* [Bug debug/48670] explosion in time and stack usage when using -ggdb
  2011-04-18 17:49 [Bug debug/48670] New: explosion in time and stack usage when using -ggdb matt at use dot net
@ 2011-04-19  9:45 ` rguenth at gcc dot gnu.org
  2011-04-20 23:55 ` matt at use dot net
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-19  9:45 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011.04.19 09:44:21
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-19 09:44:21 UTC ---
Attachment missing.


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

* [Bug debug/48670] explosion in time and stack usage when using -ggdb
  2011-04-18 17:49 [Bug debug/48670] New: explosion in time and stack usage when using -ggdb matt at use dot net
  2011-04-19  9:45 ` [Bug debug/48670] " rguenth at gcc dot gnu.org
@ 2011-04-20 23:55 ` matt at use dot net
  2011-04-20 23:59 ` matt at use dot net
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: matt at use dot net @ 2011-04-20 23:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Matt Hargett <matt at use dot net> 2011-04-20 23:54:54 UTC ---
Created attachment 24065
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24065
reduced test case, commandline to compile in bug comments


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

* [Bug debug/48670] explosion in time and stack usage when using -ggdb
  2011-04-18 17:49 [Bug debug/48670] New: explosion in time and stack usage when using -ggdb matt at use dot net
  2011-04-19  9:45 ` [Bug debug/48670] " rguenth at gcc dot gnu.org
  2011-04-20 23:55 ` matt at use dot net
@ 2011-04-20 23:59 ` matt at use dot net
  2011-04-25 18:56 ` matt at use dot net
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: matt at use dot net @ 2011-04-20 23:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Matt Hargett <matt at use dot net> 2011-04-20 23:59:45 UTC ---
When compiling the example with 4.5.2, memory usage peaks at around 216meg on
my Ubuntu 10.10/amd64 machine. With 4.6, it peaks at 3.2gig(!)

In the non-reduced test case, it gets up to 7 gig before the machine (which has
9gig total) starts swapping to the point where I have to kill the process.

Interestingly (maybe), a GCC 4.6 snapshot from early march doesn't exhibit the
problem as badly. It peaks at 'only' 636meg.

PS: Sorry for the missing attachment, not sure why attach isn't working upon
initial submission...


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

* [Bug debug/48670] explosion in time and stack usage when using -ggdb
  2011-04-18 17:49 [Bug debug/48670] New: explosion in time and stack usage when using -ggdb matt at use dot net
                   ` (2 preceding siblings ...)
  2011-04-20 23:59 ` matt at use dot net
@ 2011-04-25 18:56 ` matt at use dot net
  2011-04-28 23:16 ` [Bug debug/48670] [4.6 regression] explosion in time and stack usage when using -ggdb on a class with many members rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: matt at use dot net @ 2011-04-25 18:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Matt Hargett <matt at use dot net> 2011-04-25 18:55:36 UTC ---
ping? Anything else you need from me on this?


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

* [Bug debug/48670] [4.6 regression] explosion in time and stack usage when using -ggdb on a class with many members
  2011-04-18 17:49 [Bug debug/48670] New: explosion in time and stack usage when using -ggdb matt at use dot net
                   ` (3 preceding siblings ...)
  2011-04-25 18:56 ` matt at use dot net
@ 2011-04-28 23:16 ` rguenth at gcc dot gnu.org
  2011-04-29  6:17 ` jakub at gcc dot gnu.org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-28 23:16 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
   Target Milestone|---                         |4.6.1


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

* [Bug debug/48670] [4.6 regression] explosion in time and stack usage when using -ggdb on a class with many members
  2011-04-18 17:49 [Bug debug/48670] New: explosion in time and stack usage when using -ggdb matt at use dot net
                   ` (4 preceding siblings ...)
  2011-04-28 23:16 ` [Bug debug/48670] [4.6 regression] explosion in time and stack usage when using -ggdb on a class with many members rguenth at gcc dot gnu.org
@ 2011-04-29  6:17 ` jakub at gcc dot gnu.org
  2011-05-10 10:40 ` jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-04-29  6:17 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-29 06:17:27 UTC ---
Why do you use -ggdb?  STABS is very obsolete debugging format, I see no reason
why it should be used on targets that support DWARF{2,3,4}.


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

* [Bug debug/48670] [4.6 regression] explosion in time and stack usage when using -ggdb on a class with many members
  2011-04-18 17:49 [Bug debug/48670] New: explosion in time and stack usage when using -ggdb matt at use dot net
                   ` (5 preceding siblings ...)
  2011-04-29  6:17 ` jakub at gcc dot gnu.org
@ 2011-05-10 10:40 ` jakub at gcc dot gnu.org
  2011-06-12 13:11 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-10 10:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-10 10:34:52 UTC ---
Anyway, most likely PR48190, i.e.
http://gcc.gnu.org/viewcvs?view=revision&revision=171655


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

* [Bug debug/48670] [4.6 regression] explosion in time and stack usage when using -ggdb on a class with many members
  2011-04-18 17:49 [Bug debug/48670] New: explosion in time and stack usage when using -ggdb matt at use dot net
                   ` (6 preceding siblings ...)
  2011-05-10 10:40 ` jakub at gcc dot gnu.org
@ 2011-06-12 13:11 ` rguenth at gcc dot gnu.org
  2011-06-27 16:13 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-12 13:11 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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

* [Bug debug/48670] [4.6 regression] explosion in time and stack usage when using -ggdb on a class with many members
  2011-04-18 17:49 [Bug debug/48670] New: explosion in time and stack usage when using -ggdb matt at use dot net
                   ` (7 preceding siblings ...)
  2011-06-12 13:11 ` rguenth at gcc dot gnu.org
@ 2011-06-27 16:13 ` jakub at gcc dot gnu.org
  2011-10-26 17:29 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-06-27 16:13 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.1                       |4.6.2

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-06-27 12:32:52 UTC ---
GCC 4.6.1 is being released.


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

* [Bug debug/48670] [4.6 regression] explosion in time and stack usage when using -ggdb on a class with many members
  2011-04-18 17:49 [Bug debug/48670] New: explosion in time and stack usage when using -ggdb matt at use dot net
                   ` (8 preceding siblings ...)
  2011-06-27 16:13 ` jakub at gcc dot gnu.org
@ 2011-10-26 17:29 ` jakub at gcc dot gnu.org
  2012-03-01 14:54 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-10-26 17:29 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.2                       |4.6.3

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-10-26 17:13:41 UTC ---
GCC 4.6.2 is being released.


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

* [Bug debug/48670] [4.6 regression] explosion in time and stack usage when using -ggdb on a class with many members
  2011-04-18 17:49 [Bug debug/48670] New: explosion in time and stack usage when using -ggdb matt at use dot net
                   ` (9 preceding siblings ...)
  2011-10-26 17:29 ` jakub at gcc dot gnu.org
@ 2012-03-01 14:54 ` jakub at gcc dot gnu.org
  2012-12-03 23:18 ` matt at use dot net
  2012-12-04  0:03 ` matt at use dot net
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-01 14:54 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.3                       |4.6.4

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-01 14:38:39 UTC ---
GCC 4.6.3 is being released.


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

* [Bug debug/48670] [4.6 regression] explosion in time and stack usage when using -ggdb on a class with many members
  2011-04-18 17:49 [Bug debug/48670] New: explosion in time and stack usage when using -ggdb matt at use dot net
                   ` (10 preceding siblings ...)
  2012-03-01 14:54 ` jakub at gcc dot gnu.org
@ 2012-12-03 23:18 ` matt at use dot net
  2012-12-04  0:03 ` matt at use dot net
  12 siblings, 0 replies; 14+ messages in thread
From: matt at use dot net @ 2012-12-03 23:18 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #10 from Matt Hargett <matt at use dot net> 2012-12-03 23:17:22 UTC ---
I no longer have access to the source tree that exhibited this problem, but it
was likely the same as the qemu issue referenced earlier. Feel free to resolve
as fixed.


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

* [Bug debug/48670] [4.6 regression] explosion in time and stack usage when using -ggdb on a class with many members
  2011-04-18 17:49 [Bug debug/48670] New: explosion in time and stack usage when using -ggdb matt at use dot net
                   ` (11 preceding siblings ...)
  2012-12-03 23:18 ` matt at use dot net
@ 2012-12-04  0:03 ` matt at use dot net
  12 siblings, 0 replies; 14+ messages in thread
From: matt at use dot net @ 2012-12-04  0:03 UTC (permalink / raw)
  To: gcc-bugs


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

Matt Hargett <matt at use dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #11 from Matt Hargett <matt at use dot net> 2012-12-04 00:02:52 UTC ---
Marking it resolved myself.


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

end of thread, other threads:[~2012-12-04  0:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-18 17:49 [Bug debug/48670] New: explosion in time and stack usage when using -ggdb matt at use dot net
2011-04-19  9:45 ` [Bug debug/48670] " rguenth at gcc dot gnu.org
2011-04-20 23:55 ` matt at use dot net
2011-04-20 23:59 ` matt at use dot net
2011-04-25 18:56 ` matt at use dot net
2011-04-28 23:16 ` [Bug debug/48670] [4.6 regression] explosion in time and stack usage when using -ggdb on a class with many members rguenth at gcc dot gnu.org
2011-04-29  6:17 ` jakub at gcc dot gnu.org
2011-05-10 10:40 ` jakub at gcc dot gnu.org
2011-06-12 13:11 ` rguenth at gcc dot gnu.org
2011-06-27 16:13 ` jakub at gcc dot gnu.org
2011-10-26 17:29 ` jakub at gcc dot gnu.org
2012-03-01 14:54 ` jakub at gcc dot gnu.org
2012-12-03 23:18 ` matt at use dot net
2012-12-04  0:03 ` matt at use dot net

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