public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/10347] gdb crashes with MI commands in hook-stop
[not found] <bug-10347-4717@http.sourceware.org/bugzilla/>
@ 2022-08-12 19:16 ` tromey at sourceware dot org
2022-08-12 19:51 ` tromey at sourceware dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2022-08-12 19:16 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=10347
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
Fixing the crash is easy enough but then this trips over
bug #21388.
Also the test hits the double-prompt issue pointed out in
https://sourceware.org/bugzilla/show_bug.cgi?id=23544#c1
--
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 mi/10347] gdb crashes with MI commands in hook-stop
[not found] <bug-10347-4717@http.sourceware.org/bugzilla/>
2022-08-12 19:16 ` [Bug mi/10347] gdb crashes with MI commands in hook-stop tromey at sourceware dot org
@ 2022-08-12 19:51 ` tromey at sourceware dot org
2022-08-31 17:15 ` cvs-commit at gcc dot gnu.org
2022-08-31 17:15 ` tromey at sourceware dot org
3 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2022-08-12 19:51 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=10347
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2022-08-12
Assignee|unassigned at sourceware dot org |tromey at sourceware dot org
Status|UNCONFIRMED |NEW
--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
I have a patch.
--
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 mi/10347] gdb crashes with MI commands in hook-stop
[not found] <bug-10347-4717@http.sourceware.org/bugzilla/>
2022-08-12 19:16 ` [Bug mi/10347] gdb crashes with MI commands in hook-stop tromey at sourceware dot org
2022-08-12 19:51 ` tromey at sourceware dot org
@ 2022-08-31 17:15 ` cvs-commit at gcc dot gnu.org
2022-08-31 17:15 ` tromey at sourceware dot org
3 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-08-31 17:15 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=10347
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=058dc2c95935d54caa8891613a1080d57665fc43
commit 058dc2c95935d54caa8891613a1080d57665fc43
Author: Tom Tromey <tromey@adacore.com>
Date: Fri Aug 12 13:15:01 2022 -0600
Fix interpreter-exec crash
PR mi/10347 points out that using interpreter-exec inside of a
"define" command will crash gdb. The bug here is that
gdb_setup_readline doesn't check for the case where instream==nullptr.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=10347
--
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 mi/10347] gdb crashes with MI commands in hook-stop
[not found] <bug-10347-4717@http.sourceware.org/bugzilla/>
` (2 preceding siblings ...)
2022-08-31 17:15 ` cvs-commit at gcc dot gnu.org
@ 2022-08-31 17:15 ` tromey at sourceware dot org
3 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2022-08-31 17:15 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=10347
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|6.8 |13.1
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #5 from Tom Tromey <tromey at sourceware dot org> ---
Fixed.
--
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 mi/10347] gdb crashes with MI commands in hook-stop
2009-06-30 11:02 [Bug tdep/10347] New: " andre dot poenitz at nokia dot com
2009-06-30 13:04 ` [Bug mi/10347] " pedro at codesourcery dot com
@ 2009-07-22 17:06 ` marc dot khouzam at ericsson dot com
1 sibling, 0 replies; 6+ messages in thread
From: marc dot khouzam at ericsson dot com @ 2009-07-22 17:06 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From marc dot khouzam at ericsson dot com 2009-07-22 17:06 -------
This crash actually happens when using "interpreter mi" inside a define.
It is not only with hook-stop. Below is an analysis from Paul P that comes from
http://sourceware.org/ml/gdb/2009-07/msg00152.html
-----Original Message-----
From: Paul Pluzhnikov [mailto:ppluzhnikov@google.com]
Sent: Tuesday, July 21, 2009 1:44 AM
The problem is that in cli/cli-script.c, execute_user_command(),
instream is set to NULL:
312 /* Set the instream to 0, indicating execution of a
313 user-defined function. */
314 make_cleanup (do_restore_instream_cleanup, instream);
315 instream = (FILE *) 0;
and later used for fileno():
#0 0x00007ffff6ea19f0 in fileno_unlocked () from /lib/libc.so.6
#1 0x000000000051d2ff in gdb_setup_readline () at
../../src/gdb/event-top.c:1086
#2 0x00000000004aaa09 in mi_interpreter_resume (data=0x0) at
../../src/gdb/mi/mi-interp.c:107
#3 0x00000000005180d7 in interp_set (interp=0xa7a850, top_level=0) at
../../src/gdb/interps.c:197
#4 0x000000000051834e in interpreter_exec_cmd (args=<value optimized
out>, from_tty=<value optimized out>) at ../../src/gdb/interps.c:398
#5 0x0000000000459984 in execute_command (p=0xb295fd "t", from_tty=0)
at ../../src/gdb/top.c:442
#6 0x00000000004a2c04 in execute_control_command (cmd=0xb23c40) at
../../src/gdb/cli/cli-script.c:400
#7 0x00000000004a31ad in execute_user_command (c=0xb3fd60, args=0x0)
at ../../src/gdb/cli/cli-script.c:324
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10347
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug mi/10347] gdb crashes with MI commands in hook-stop
2009-06-30 11:02 [Bug tdep/10347] New: " andre dot poenitz at nokia dot com
@ 2009-06-30 13:04 ` pedro at codesourcery dot com
2009-07-22 17:06 ` marc dot khouzam at ericsson dot com
1 sibling, 0 replies; 6+ messages in thread
From: pedro at codesourcery dot com @ 2009-06-30 13:04 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Component|tdep |mi
http://sourceware.org/bugzilla/show_bug.cgi?id=10347
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-08-31 17:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-10347-4717@http.sourceware.org/bugzilla/>
2022-08-12 19:16 ` [Bug mi/10347] gdb crashes with MI commands in hook-stop tromey at sourceware dot org
2022-08-12 19:51 ` tromey at sourceware dot org
2022-08-31 17:15 ` cvs-commit at gcc dot gnu.org
2022-08-31 17:15 ` tromey at sourceware dot org
2009-06-30 11:02 [Bug tdep/10347] New: " andre dot poenitz at nokia dot com
2009-06-30 13:04 ` [Bug mi/10347] " pedro at codesourcery dot com
2009-07-22 17:06 ` marc dot khouzam at ericsson 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).