public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15519] New: GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file
@ 2013-05-22 21:00 psmith at gnu dot org
  2013-05-22 23:16 ` [Bug c++/15519] " psmith at gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: psmith at gnu dot org @ 2013-05-22 21:00 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15519

             Bug #: 15519
           Summary: GDB 7.6 is 94x slower than GDB 7.5.1 using a certain
                    core file
           Product: gdb
           Version: 7.6
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: psmith@gnu.org
    Classification: Unclassified


Please see this thread: http://sourceware.org/ml/gdb/2013-05/msg00074.html

I couldn't pick a particular component: the slowdown appears when running a
macro on a core file from a C++ program; the macro walks through a list of
objects referenced by another object.  Other core dumps from the same
executable do not show this slowdown, and so far we haven't been able to
reproduce it using live debugging.

Bisecting via Git declares the slowdown to have been introduced with this
commit:

677b1bfabd372790dca4dad32fcb05dd77658728 is the first bad commit
commit 677b1bfabd372790dca4dad32fcb05dd77658728
Author: Keith Seitz <keiths@redhat.com>
Date:   Fri Nov 16 20:54:28 2012 +0000


I'll see if I can get more details.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug c++/15519] GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file
  2013-05-22 21:00 [Bug c++/15519] New: GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file psmith at gnu dot org
@ 2013-05-22 23:16 ` psmith at gnu dot org
  2013-05-22 23:19 ` psmith at gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: psmith at gnu dot org @ 2013-05-22 23:16 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15519

--- Comment #1 from psmith at gnu dot org 2013-05-22 23:16:32 UTC ---
Created attachment 7037
  --> http://sourceware.org/bugzilla/attachment.cgi?id=7037
gprof output of FAST gdb run

This is the result of running gdb from the last "fast" commit,
e8127d61d885e62b8cd3bde1d1d0989819295268.  GDB built with -g -pg.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug c++/15519] GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file
  2013-05-22 21:00 [Bug c++/15519] New: GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file psmith at gnu dot org
  2013-05-22 23:16 ` [Bug c++/15519] " psmith at gnu dot org
@ 2013-05-22 23:19 ` psmith at gnu dot org
  2013-05-29 18:50 ` jan.kratochvil at redhat dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: psmith at gnu dot org @ 2013-05-22 23:19 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15519

--- Comment #2 from psmith at gnu dot org 2013-05-22 23:19:28 UTC ---
Created attachment 7038
  --> http://sourceware.org/bugzilla/attachment.cgi?id=7038
gprof output of SLOW gdb run

This is the result of running gdb from the first "slow" commit,
677b1bfabd372790dca4dad32fcb05dd77658728.  GDB built with -g -pg.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug c++/15519] GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file
  2013-05-22 21:00 [Bug c++/15519] New: GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file psmith at gnu dot org
  2013-05-22 23:16 ` [Bug c++/15519] " psmith at gnu dot org
  2013-05-22 23:19 ` psmith at gnu dot org
@ 2013-05-29 18:50 ` jan.kratochvil at redhat dot com
  2013-06-10 11:51 ` jan.kratochvil at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-05-29 18:50 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15519

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug c++/15519] GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file
  2013-05-22 21:00 [Bug c++/15519] New: GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file psmith at gnu dot org
                   ` (2 preceding siblings ...)
  2013-05-29 18:50 ` jan.kratochvil at redhat dot com
@ 2013-06-10 11:51 ` jan.kratochvil at redhat dot com
  2013-06-10 15:23 ` psmith at gnu dot org
  2013-06-27 22:18 ` cvs-commit at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-06-10 11:51 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15519

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #5 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
It seems to be fixed now, could you verify it, Paul?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug c++/15519] GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file
  2013-05-22 21:00 [Bug c++/15519] New: GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file psmith at gnu dot org
                   ` (3 preceding siblings ...)
  2013-06-10 11:51 ` jan.kratochvil at redhat dot com
@ 2013-06-10 15:23 ` psmith at gnu dot org
  2013-06-27 22:18 ` cvs-commit at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: psmith at gnu dot org @ 2013-06-10 15:23 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15519

psmith at gnu dot org changed:

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

--- Comment #6 from psmith at gnu dot org ---
Thanks Jan; I tested this morning's snapshot (7.6.50.20130610) and the massive
slowdown is not there.  Nice!

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug c++/15519] GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file
  2013-05-22 21:00 [Bug c++/15519] New: GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file psmith at gnu dot org
                   ` (4 preceding siblings ...)
  2013-06-10 15:23 ` psmith at gnu dot org
@ 2013-06-27 22:18 ` cvs-commit at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2013-06-27 22:18 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15519

--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
CVSROOT:    /cvs/src
Module name:    src
Branch:     gdb_7_6-branch
Changes by:    devans@sourceware.org    2013-06-27 22:18:33

Modified files:
    gdb            : ChangeLog cp-namespace.c 
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.cp: derivation.cc derivation.exp 
Added files:
    gdb/testsuite/gdb.cp: derivation2.cc 

Log message:
    PR 15519
    * cp-namespace.c (find_symbol_in_baseclass): Call
    cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
    Check result of call to lookup_symbol_static.
    Call lookup_static_symbol_aux unconditionally.
    Call check_typedef on base types before accessing them.
    (cp_lookup_nested_symbol): Fix comment.

    testsuite/
    * gdb.cp/derivation2.cc: New file.
    * gdb.cp/derivation.cc (main): Call foo2.
    * gdb.cp/derivation.exp: Add tests for typedefs in another
    file, and when there's an active block.

    testsuite/
    * gdb.cp/derivation.exp: Make tests have unique names.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=1.15260.2.55&r2=1.15260.2.56
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cp-namespace.c.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=1.65.2.1&r2=1.65.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=1.3580.2.22&r2=1.3580.2.23
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/derivation2.cc.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=NONE&r2=1.2.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/derivation.cc.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=1.5&r2=1.5.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/derivation.exp.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=1.24&r2=1.24.2.1

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2013-06-27 22:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-22 21:00 [Bug c++/15519] New: GDB 7.6 is 94x slower than GDB 7.5.1 using a certain core file psmith at gnu dot org
2013-05-22 23:16 ` [Bug c++/15519] " psmith at gnu dot org
2013-05-22 23:19 ` psmith at gnu dot org
2013-05-29 18:50 ` jan.kratochvil at redhat dot com
2013-06-10 11:51 ` jan.kratochvil at redhat dot com
2013-06-10 15:23 ` psmith at gnu dot org
2013-06-27 22:18 ` cvs-commit at gcc dot gnu.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).