public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug win32/14685] New: semantic error found in windows-nat.c:986 causes permanant hang for debuggee process
@ 2012-10-08 20:55 jojelino at gmail dot com
  2012-10-08 21:23 ` [Bug win32/14685] " jojelino at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jojelino at gmail dot com @ 2012-10-08 20:55 UTC (permalink / raw)
  To: gdb-prs


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

             Bug #: 14685
           Summary: semantic error found in windows-nat.c:986 causes
                    permanant hang for debuggee process
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: critical
          Priority: P2
         Component: win32
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jojelino@gmail.com
    Classification: Unclassified


Created attachment 6673
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6673
proposed patch

http://sourceware.org/git/?p=gdb.git;a=commit;f=gdb/windows-nat.c;h=8094fa2e73f05bd42a7005fd005aeaa26ea20c26

In this commit, handle_output_debug_string modifies dwThreadId of
current_event. and there is no way to figure out which thread actually sent the
debug event after that. it would be possible unless dwThreadId hasn't modified.
In the result, there isn't any ContinueDebugEvent call for the thread that sent
the debug event to the debugger. make the debuggee hang.

So, I propose the patch which fixes the problem. please review it.

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

* [Bug win32/14685] semantic error found in windows-nat.c:986 causes permanant hang for debuggee process
  2012-10-08 20:55 [Bug win32/14685] New: semantic error found in windows-nat.c:986 causes permanant hang for debuggee process jojelino at gmail dot com
@ 2012-10-08 21:23 ` jojelino at gmail dot com
  2012-10-08 21:30 ` jojelino at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jojelino at gmail dot com @ 2012-10-08 21:23 UTC (permalink / raw)
  To: gdb-prs


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

jojelino at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |i686-pc-cygwin
           Priority|P2                          |P1
               Host|                            |i686-pc-cygwin
              Build|                            |i686-pc-cygwin

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

* [Bug win32/14685] semantic error found in windows-nat.c:986 causes permanant hang for debuggee process
  2012-10-08 20:55 [Bug win32/14685] New: semantic error found in windows-nat.c:986 causes permanant hang for debuggee process jojelino at gmail dot com
  2012-10-08 21:23 ` [Bug win32/14685] " jojelino at gmail dot com
@ 2012-10-08 21:30 ` jojelino at gmail dot com
  2012-10-26 18:24 ` tromey at redhat dot com
  2012-10-27 12:48 ` jojelino at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: jojelino at gmail dot com @ 2012-10-08 21:30 UTC (permalink / raw)
  To: gdb-prs


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

--- Comment #1 from jojelino at gmail dot com 2012-10-08 21:30:27 UTC ---
To reproduce,

debug following c source

int main(){abort();}

gdb --args a
r
#SIGABRT would received.
s
#And debuggee would hang forever. same thing happen for debugger too.

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

* [Bug win32/14685] semantic error found in windows-nat.c:986 causes permanant hang for debuggee process
  2012-10-08 20:55 [Bug win32/14685] New: semantic error found in windows-nat.c:986 causes permanant hang for debuggee process jojelino at gmail dot com
  2012-10-08 21:23 ` [Bug win32/14685] " jojelino at gmail dot com
  2012-10-08 21:30 ` jojelino at gmail dot com
@ 2012-10-26 18:24 ` tromey at redhat dot com
  2012-10-27 12:48 ` jojelino at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2012-10-26 18:24 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

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

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2012-10-26 18:24:09 UTC ---
For best results, follow the contribution instructions here
http://sourceware.org/gdb/contribute/

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

* [Bug win32/14685] semantic error found in windows-nat.c:986 causes permanant hang for debuggee process
  2012-10-08 20:55 [Bug win32/14685] New: semantic error found in windows-nat.c:986 causes permanant hang for debuggee process jojelino at gmail dot com
                   ` (2 preceding siblings ...)
  2012-10-26 18:24 ` tromey at redhat dot com
@ 2012-10-27 12:48 ` jojelino at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: jojelino at gmail dot com @ 2012-10-27 12:48 UTC (permalink / raw)
  To: gdb-prs

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

gee <jojelino at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #6673|0                           |1
        is obsolete|                            |

--- Comment #3 from gee <jojelino at gmail dot com> 2012-10-27 12:48:41 UTC ---
Created attachment 6701
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6701
proposed patch

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

end of thread, other threads:[~2012-10-27 12:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-08 20:55 [Bug win32/14685] New: semantic error found in windows-nat.c:986 causes permanant hang for debuggee process jojelino at gmail dot com
2012-10-08 21:23 ` [Bug win32/14685] " jojelino at gmail dot com
2012-10-08 21:30 ` jojelino at gmail dot com
2012-10-26 18:24 ` tromey at redhat dot com
2012-10-27 12:48 ` jojelino at gmail 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).