From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31082 invoked by alias); 13 Jun 2012 07:37:43 -0000 Received: (qmail 30929 invoked by uid 22791); 13 Jun 2012 07:37:42 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TO_NO_BRKTS_PCNT X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Jun 2012 07:37:29 +0000 From: "asmwarrior at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/14227] New: gdb hangs after entering mixed "n" and "bt" command Date: Wed, 13 Jun 2012 07:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: asmwarrior at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-q2/txt/msg00225.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14227 Bug #: 14227 Summary: gdb hangs after entering mixed "n" and "bt" command Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb AssignedTo: unassigned@sourceware.org ReportedBy: asmwarrior@gmail.com Classification: Unclassified I just found that using the gdb CVS mingw build 2012-06-13, gdb will hang at some time when I enter some command. Here is the log message: Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. E:\code\cb\test_code\gdbpython-demo\bin>gdb a.exe GNU gdb (GDB) 7.4.50.20120613-cvs Copyright (C) 2012 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 "mingw32". For bug reporting instructions, please see: ... Reading symbols from E:\code\cb\test_code\gdbpython-demo\bin\a.exe...done. (gdb) b main() Breakpoint 1 at 0x4016f3: file main.cpp, line 14. (gdb) n The program is not being run. (gdb) n The program is not being run. (gdb) r Starting program: E:\code\cb\test_code\gdbpython-demo\bin\a.exe [New Thread 5556.0x1284] Breakpoint 1, main () at main.cpp:14 14 std::map m; (gdb) e Ambiguous command "e": echo, edit, en, enable, end, eval, exec-file, explore. (gdb) e Ambiguous command "e": echo, edit, en, enable, end, eval, exec-file, explore. (gdb) n 15 m[0] = "000"; (gdb) n 16 m[1] = "111"; (gdb) bt #0 main () at main.cpp:16 (gdb) n 18 std::list l = {"a", "b", "c"}; (gdb) bt #0 main () at main.cpp:18 (gdb) n 19 std::vector v = {"a", "b", "c"}; (gdb) bt #0 main () at main.cpp:19 (gdb) n 20 std::queue q; (gdb) b Note, that when I try to enter the "bt" command in the last line, gdb just hangs, and I can do nothing. GDB CVS 2012-06-09 version does not have such issue. My test code was: #include #include #include #include #include #include int main() { std::map m; m[0] = "000"; m[1] = "111"; std::list l = {"a", "b", "c"}; std::vector v = {"a", "b", "c"}; std::queue q; q.push("a"); q.push("b"); std::stack s; s.push("a"); s.push("b"); return 0; } The build log was: [ 50.0%] g++.exe -Wall -g -pipe -mthreads -fexceptions -std=gnu++0x -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -c main.cpp -o obj\main.o [100.0%] g++.exe -o bin\a.exe obj\main.o Output size is 603.11 KB -- 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.