public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/14227] New: gdb hangs after entering mixed "n" and "bt" command
@ 2012-06-13  7:37 asmwarrior at gmail dot com
  2012-06-13  9:37 ` [Bug win32/14227] GDB CVS HEAD Build Error under MinGW asmwarrior at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: asmwarrior at gmail dot com @ 2012-06-13  7:37 UTC (permalink / raw)
  To: gdb-prs

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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
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<int, std::string> 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<std::string> l = {"a", "b", "c"};
(gdb) bt
#0  main () at main.cpp:18
(gdb) n
19          std::vector<std::string> v = {"a", "b", "c"};
(gdb) bt
#0  main () at main.cpp:19
(gdb) n
20          std::queue<std::string> 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 <map>
#include <list>
#include <stack>
#include <vector>
#include <queue>
#include <string>



int main()
{

    std::map<int, std::string> m;
    m[0] = "000";
    m[1] = "111";

    std::list<std::string> l = {"a", "b", "c"};
    std::vector<std::string> v = {"a", "b", "c"};
    std::queue<std::string> q;
    q.push("a");
    q.push("b");

    std::stack<std::string> 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.


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

* [Bug win32/14227] GDB CVS HEAD Build Error under MinGW
  2012-06-13  7:37 [Bug gdb/14227] New: gdb hangs after entering mixed "n" and "bt" command asmwarrior at gmail dot com
@ 2012-06-13  9:37 ` asmwarrior at gmail dot com
  2012-06-13 12:29 ` asmwarrior at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: asmwarrior at gmail dot com @ 2012-06-13  9:37 UTC (permalink / raw)
  To: gdb-prs

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

asmwarrior <asmwarrior at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|gdb                         |win32
            Summary|gdb hangs after entering    |GDB CVS HEAD Build Error
                   |mixed "n" and "bt" command  |under MinGW

--- Comment #1 from asmwarrior <asmwarrior at gmail dot com> 2012-06-13 09:37:15 UTC ---
Oh, this hang problem is caused my own local patch to workaround the build
failure on MinGW target. 

After I revert the three consecutive three commit by 
* 2012-06-11  Pedro Alves  <palves@redhat.com>

    * serial.c (do_serial_close): Remove early return when SCB is
    null.

Then, the gdb CVS head mingw build works Fine.

So, I will change the title to "build error" on MinGW target.

See: http://sourceware.org/ml/gdb/2012-06/msg00061.html

-- 
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] 6+ messages in thread

* [Bug win32/14227] GDB CVS HEAD Build Error under MinGW
  2012-06-13  7:37 [Bug gdb/14227] New: gdb hangs after entering mixed "n" and "bt" command asmwarrior at gmail dot com
  2012-06-13  9:37 ` [Bug win32/14227] GDB CVS HEAD Build Error under MinGW asmwarrior at gmail dot com
@ 2012-06-13 12:29 ` asmwarrior at gmail dot com
  2012-08-14 17:39 ` keiths at redhat dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: asmwarrior at gmail dot com @ 2012-06-13 12:29 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from asmwarrior <asmwarrior at gmail dot com> 2012-06-13 12:28:49 UTC ---
OK, this is fixed by this commit:

http://sourceware.org/ml/gdb-cvs/2012-06/msg00092.html

But there is still one left which break the mingw build.

See: http://sourceware.org/ml/gdb/2012-05/msg00051.html

-- 
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] 6+ messages in thread

* [Bug win32/14227] GDB CVS HEAD Build Error under MinGW
  2012-06-13  7:37 [Bug gdb/14227] New: gdb hangs after entering mixed "n" and "bt" command asmwarrior at gmail dot com
  2012-06-13  9:37 ` [Bug win32/14227] GDB CVS HEAD Build Error under MinGW asmwarrior at gmail dot com
  2012-06-13 12:29 ` asmwarrior at gmail dot com
@ 2012-08-14 17:39 ` keiths at redhat dot com
  2012-08-15  1:15 ` asmwarrior at gmail dot com
  2012-08-15 14:30 ` tromey at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: keiths at redhat dot com @ 2012-08-14 17:39 UTC (permalink / raw)
  To: gdb-prs

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

Keith Seitz <keiths at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |keiths at redhat dot com

--- Comment #3 from Keith Seitz <keiths at redhat dot com> 2012-08-14 17:39:02 UTC ---
Is this still a problem? I can successfully build mingw32 gdb from
7.5.50-20120808-cvs sources.

-- 
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] 6+ messages in thread

* [Bug win32/14227] GDB CVS HEAD Build Error under MinGW
  2012-06-13  7:37 [Bug gdb/14227] New: gdb hangs after entering mixed "n" and "bt" command asmwarrior at gmail dot com
                   ` (2 preceding siblings ...)
  2012-08-14 17:39 ` keiths at redhat dot com
@ 2012-08-15  1:15 ` asmwarrior at gmail dot com
  2012-08-15 14:30 ` tromey at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: asmwarrior at gmail dot com @ 2012-08-15  1:15 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from asmwarrior <asmwarrior at gmail dot com> 2012-08-15 01:15:34 UTC ---
There is no build problems under msys+mingw now. At least I can build the cvs
head (7.5.50-20120814-cvs) successfully. So, this bug can be closed. Thanks.

-- 
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] 6+ messages in thread

* [Bug win32/14227] GDB CVS HEAD Build Error under MinGW
  2012-06-13  7:37 [Bug gdb/14227] New: gdb hangs after entering mixed "n" and "bt" command asmwarrior at gmail dot com
                   ` (3 preceding siblings ...)
  2012-08-15  1:15 ` asmwarrior at gmail dot com
@ 2012-08-15 14:30 ` tromey at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at redhat dot com @ 2012-08-15 14:30 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |tromey at redhat dot com
         Resolution|                            |FIXED
   Target Milestone|---                         |7.5

--- Comment #5 from Tom Tromey <tromey at redhat dot com> 2012-08-15 14:30:16 UTC ---
Reported as fixed.

-- 
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] 6+ messages in thread

end of thread, other threads:[~2012-08-15 14:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-13  7:37 [Bug gdb/14227] New: gdb hangs after entering mixed "n" and "bt" command asmwarrior at gmail dot com
2012-06-13  9:37 ` [Bug win32/14227] GDB CVS HEAD Build Error under MinGW asmwarrior at gmail dot com
2012-06-13 12:29 ` asmwarrior at gmail dot com
2012-08-14 17:39 ` keiths at redhat dot com
2012-08-15  1:15 ` asmwarrior at gmail dot com
2012-08-15 14:30 ` tromey at redhat dot com

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