From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28715 invoked by alias); 28 Apr 2010 19:56:20 -0000 Received: (qmail 28701 invoked by uid 48); 28 Apr 2010 19:56:20 -0000 Date: Wed, 28 Apr 2010 19:56:00 -0000 From: "jlquinn at us dot ibm dot com" To: gdb-prs@sourceware.org Message-ID: <20100428195619.11555.jlquinn@us.ibm.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug gdb/11555] New: 100% CPU for minutes trying to print expresion X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q2/txt/msg00175.txt.bz2 I've build gdb 7.1 on Centos 5.4 x86_64 using the system compiler. I'm trying to debug a c++ application and moved to 7.1 to get past issues in 6.8. However, when I stop and try to print an expression, it literally takes minutes for gdb to come back with the answer on a 4 core 3GHz server. A snapshot is below. The vector below is standard stl vector and tokenOffset is just a struct. I C-c'd it after 3 minutes. It will eventually print the right answer, but it takes a ridiculous amount of time. 6.8 and 7.0.1 work as expected on the same debug binaries. I built 7.0.1 out of the box as well as 7.1. 6.8 is the system gdb. 537 vector toks; (gdb) 539 unsigned prev_type = TOK_WHITESPACE; (gdb) p toks.size() Quit (gdb) show ver verbose version (gdb) show version GNU gdb (GDB) 7.1 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: . (gdb) -- Summary: 100% CPU for minutes trying to print expresion Product: gdb Version: 7.1 Status: UNCONFIRMED Severity: critical Priority: P2 Component: gdb AssignedTo: unassigned at sourceware dot org ReportedBy: jlquinn at us dot ibm dot com CC: gdb-prs at sourceware dot org GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=11555 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.