public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/25985] New: Control+C on python-interactive prompt crashes GDB
@ 2020-05-13 13:41 bugmenot at mailinator dot com
2020-05-15 17:59 ` [Bug python/25985] " cbiesinger at google dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bugmenot at mailinator dot com @ 2020-05-13 13:41 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25985
Bug ID: 25985
Summary: Control+C on python-interactive prompt crashes GDB
Product: gdb
Version: 9.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: bugmenot at mailinator dot com
Target Milestone: ---
Reproduce:
* Start gdb
* Enter `pi` (`python-interactive`)
* Press Control+C
Expected behavior: the current line is discarded (similar to how control+C
works in other prompts)
Actual behavior: gdb crashes, without any prompt/warning. (for example, the "A
debugging session is active. Inferior 1 will be killed. Quit anyway?" prompt)
Operating system: Arch Linux
======
In the current version (9.1) it's possible to do nothing on Control+C (and
prevent the crash) with
```
python import signal; signal.signal(signal.SIGINT, signal.SIG_IGN)
```
This will also do nothing on Control+C on the `(gdb)` prompt as well (which can
be a good thing, because Control+C by default does not reset the readline
state, which can be annoying)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug python/25985] Control+C on python-interactive prompt crashes GDB
2020-05-13 13:41 [Bug python/25985] New: Control+C on python-interactive prompt crashes GDB bugmenot at mailinator dot com
@ 2020-05-15 17:59 ` cbiesinger at google dot com
2020-07-27 3:32 ` bugmenot at mailinator dot com
2022-06-05 16:06 ` tromey at sourceware dot org
2 siblings, 0 replies; 4+ messages in thread
From: cbiesinger at google dot com @ 2020-05-15 17:59 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25985
Christian Biesinger <cbiesinger at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cbiesinger at google dot com
--- Comment #1 from Christian Biesinger <cbiesinger at google dot com> ---
> Control+C by default does not reset the readline state
Is that fixed by
https://sourceware.org/pipermail/gdb-patches/2020-May/168595.html ?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug python/25985] Control+C on python-interactive prompt crashes GDB
2020-05-13 13:41 [Bug python/25985] New: Control+C on python-interactive prompt crashes GDB bugmenot at mailinator dot com
2020-05-15 17:59 ` [Bug python/25985] " cbiesinger at google dot com
@ 2020-07-27 3:32 ` bugmenot at mailinator dot com
2022-06-05 16:06 ` tromey at sourceware dot org
2 siblings, 0 replies; 4+ messages in thread
From: bugmenot at mailinator dot com @ 2020-07-27 3:32 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25985
--- Comment #2 from John Doe <bugmenot at mailinator dot com> ---
Edit: `signal.signal(signal.SIGINT, signal.SIG_IGN)` will make control+C do
nothing while the inferior process runs (instead of interrupting the process).
Regarding the patch: it may fix the read line reset state bug, but I think it
won't fix this bug.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug python/25985] Control+C on python-interactive prompt crashes GDB
2020-05-13 13:41 [Bug python/25985] New: Control+C on python-interactive prompt crashes GDB bugmenot at mailinator dot com
2020-05-15 17:59 ` [Bug python/25985] " cbiesinger at google dot com
2020-07-27 3:32 ` bugmenot at mailinator dot com
@ 2022-06-05 16:06 ` tromey at sourceware dot org
2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2022-06-05 16:06 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25985
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
CC| |tromey at sourceware dot org
--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
This seems to work fine for me now.
(gdb) pi
>>>
KeyboardInterrupt
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-05 16:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13 13:41 [Bug python/25985] New: Control+C on python-interactive prompt crashes GDB bugmenot at mailinator dot com
2020-05-15 17:59 ` [Bug python/25985] " cbiesinger at google dot com
2020-07-27 3:32 ` bugmenot at mailinator dot com
2022-06-05 16:06 ` tromey at sourceware dot org
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).