public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/14559] New: The 'interrupt' command does not work if sigwait is in use
@ 2012-09-07 19:09 luto at mit dot edu
  2012-09-11 15:22 ` [Bug gdb/14559] " jan.kratochvil at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: luto at mit dot edu @ 2012-09-07 19:09 UTC (permalink / raw)
  To: gdb-prs

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

             Bug #: 14559
           Summary: The 'interrupt' command does not work if sigwait is in
                    use
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: luto@mit.edu
    Classification: Unclassified


Take a program that uses sigwait (on Linux).  Invoke gdb.  Start the program
with r&, so it's running asynchronously.  Then type 'interrupt'.  It doesn't
work -- sigwait reports SIGINT.  IMO this is a separate gdb bug from the usual
bugs about SIGINT and sigwait not getting along (e.g. bug 9425): the interrupt
command should be directly stopping the program, not sending SIGINT.

-- 
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 gdb/14559] The 'interrupt' command does not work if sigwait is in use
  2012-09-07 19:09 [Bug gdb/14559] New: The 'interrupt' command does not work if sigwait is in use luto at mit dot edu
@ 2012-09-11 15:22 ` jan.kratochvil at redhat dot com
  2012-09-11 15:28 ` palves at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-09-11 15:22 UTC (permalink / raw)
  To: gdb-prs

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

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

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

-- 
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 gdb/14559] The 'interrupt' command does not work if sigwait is in use
  2012-09-07 19:09 [Bug gdb/14559] New: The 'interrupt' command does not work if sigwait is in use luto at mit dot edu
  2012-09-11 15:22 ` [Bug gdb/14559] " jan.kratochvil at redhat dot com
@ 2012-09-11 15:28 ` palves at redhat dot com
  2012-09-11 21:46 ` luto at mit dot edu
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: palves at redhat dot com @ 2012-09-11 15:28 UTC (permalink / raw)
  To: gdb-prs

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

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |palves at redhat dot com

--- Comment #1 from Pedro Alves <palves at redhat dot com> 2012-09-11 15:27:36 UTC ---
Could you do a little test for us, and try "interrupt" with non-stop enabled
(set non-stop on)?  That goes through a different path and stops the inferior
with SIGSTOP instead of SIGINT.  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] 7+ messages in thread

* [Bug gdb/14559] The 'interrupt' command does not work if sigwait is in use
  2012-09-07 19:09 [Bug gdb/14559] New: The 'interrupt' command does not work if sigwait is in use luto at mit dot edu
  2012-09-11 15:22 ` [Bug gdb/14559] " jan.kratochvil at redhat dot com
  2012-09-11 15:28 ` palves at redhat dot com
@ 2012-09-11 21:46 ` luto at mit dot edu
  2013-11-26 20:41 ` tromey at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: luto at mit dot edu @ 2012-09-11 21:46 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Andy Lutomirski <luto at mit dot edu> 2012-09-11 21:46:16 UTC ---
That works.  interrupt -a also appears to work.

-- 
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 gdb/14559] The 'interrupt' command does not work if sigwait is in use
  2012-09-07 19:09 [Bug gdb/14559] New: The 'interrupt' command does not work if sigwait is in use luto at mit dot edu
                   ` (2 preceding siblings ...)
  2012-09-11 21:46 ` luto at mit dot edu
@ 2013-11-26 20:41 ` tromey at redhat dot com
  2014-07-30 17:11 ` dje at google dot com
  2021-10-21  7:03 ` crystalrubytails at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at redhat dot com @ 2013-11-26 20:41 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14559

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
                 CC|                            |tromey at redhat dot com

--- Comment #3 from Tom Tromey <tromey at redhat dot com> ---
Moved out of waiting state -- seems legit to me.

See also bug #15250.

-- 
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 gdb/14559] The 'interrupt' command does not work if sigwait is in use
  2012-09-07 19:09 [Bug gdb/14559] New: The 'interrupt' command does not work if sigwait is in use luto at mit dot edu
                   ` (3 preceding siblings ...)
  2013-11-26 20:41 ` tromey at redhat dot com
@ 2014-07-30 17:11 ` dje at google dot com
  2021-10-21  7:03 ` crystalrubytails at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: dje at google dot com @ 2014-07-30 17:11 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14559

dje at google dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at google dot com

--- Comment #4 from dje at google dot com ---
(In reply to Andy Lutomirski from comment #2)
> That works.  interrupt -a also appears to work.

Clarification (for my own purposes): This is still a non-stop vs all-stop
distinction.  "interrupt -a" is an error in all-stop mode (though there's a
plan to treat it like a plain "interrupt" in all-stop).

-- 
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 gdb/14559] The 'interrupt' command does not work if sigwait is in use
  2012-09-07 19:09 [Bug gdb/14559] New: The 'interrupt' command does not work if sigwait is in use luto at mit dot edu
                   ` (4 preceding siblings ...)
  2014-07-30 17:11 ` dje at google dot com
@ 2021-10-21  7:03 ` crystalrubytails at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: crystalrubytails at gmail dot com @ 2021-10-21  7:03 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14559

Thi Milton <crystalrubytails at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |crystalrubytails at gmail dot com

--- Comment #6 from Thi Milton <crystalrubytails at gmail dot com> ---
(In reply to dje from comment #4)
> (In reply to Andy Lutomirski from comment #2)
> > That works.  interrupt -a also appears to work.
> https://friday-nightfunkin.com
> Clarification (for my own purposes): This is still a non-stop vs all-stop
> distinction.  "interrupt -a" is an error in all-stop mode (though there's a
> plan to treat it like a plain "interrupt" in all-stop).

Is this publicly released?

-- 
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:[~2021-10-21  7:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-07 19:09 [Bug gdb/14559] New: The 'interrupt' command does not work if sigwait is in use luto at mit dot edu
2012-09-11 15:22 ` [Bug gdb/14559] " jan.kratochvil at redhat dot com
2012-09-11 15:28 ` palves at redhat dot com
2012-09-11 21:46 ` luto at mit dot edu
2013-11-26 20:41 ` tromey at redhat dot com
2014-07-30 17:11 ` dje at google dot com
2021-10-21  7:03 ` crystalrubytails 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).