This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug mi/14225] New: Segmentation fault in gdb/mi
- From: "xdegaye at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 12 Jun 2012 10:42:12 +0000
- Subject: [Bug mi/14225] New: Segmentation fault in gdb/mi
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14225
Bug #: 14225
Summary: Segmentation fault in gdb/mi
Product: gdb
Version: 7.3
Status: NEW
Severity: normal
Priority: P2
Component: mi
AssignedTo: unassigned@sourceware.org
ReportedBy: xdegaye@gmail.com
Classification: Unclassified
Running the following commands file:
=== commands ===
-interpreter-exec console "file a.out"
-interpreter-exec console "run"
-interpreter-exec console "file dummy"
-interpreter-exec console "info files"
================
causes gdb to crash, see the following session:
$ echo "int main() {return 0;}" | gcc -g -xc -o a.out -
$ gdb --interpreter=mi a.out < commands
=thread-group-added,id="i1"
~"GNU gdb (GDB) 7.3\n"
~"Copyright (C) 2011 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to
change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by
law. Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"x86_64-unknown-linux-gnu\".\nFor bug reporting
instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>...\n"
~"Reading symbols from /path_to/a.out..."
~"done.\n"
(gdb)
~"Load new symbol table from \"/path_to/a.out\"? (y or n) [answered Y; input
not from terminal]\n"
~"Reading symbols from /path_to/a.out..."
~"done.\n"
^done
(gdb)
~"Starting program: /path_to/a.out \n"
=thread-group-started,id="i1",pid="19043"
=thread-created,id="1",group-id="i1"
^running
*running,thread-id="all"
(gdb)
=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/libc.so.6",target-name="/lib/libc.so.6",host-name="/lib/libc.so.6",symbols-loaded="0",thread-group="i1"
~"[Inferior 1 (process 19043) exited normally]\n"
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1",exit-code="0"
*stopped
(gdb)
&"dummy: No such file or directory.\n"
^error,msg="dummy: No such file or directory."
(gdb)
~"Symbols from \"/path_to/a.out\".\n"
~"Local exec file:\n"
Segmentation fault
--
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.