public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/14225] New: Segmentation fault in gdb/mi
@ 2012-06-12 10:42 xdegaye at gmail dot com
  2012-06-12 19:20 ` [Bug mi/14225] " keiths at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: xdegaye at gmail dot com @ 2012-06-12 10:42 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug mi/14225] Segmentation fault in gdb/mi
  2012-06-12 10:42 [Bug mi/14225] New: Segmentation fault in gdb/mi xdegaye at gmail dot com
@ 2012-06-12 19:20 ` keiths at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: keiths at redhat dot com @ 2012-06-12 19:20 UTC (permalink / raw)
  To: gdb-prs

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

Keith Seitz <keiths at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |keiths at redhat dot com
         Resolution|                            |FIXED
   Target Milestone|---                         |7.5

--- Comment #1 from Keith Seitz <keiths at redhat dot com> 2012-06-12 19:20:29 UTC ---
This was fixed in February:

2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>

       Fix crash on loaded shlibs without loaded exec_bfd.
       * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
       (set_section_command): Replace exec_bfd by p->bfd.

http://sourceware.org/ml/gdb-cvs/2012-02/msg00065.html

It is /not/ in the 7.4 release either. You'll have to apply the patch to your
tree or checkout the sources from CVS/GIT.

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

end of thread, other threads:[~2012-06-12 19:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-12 10:42 [Bug mi/14225] New: Segmentation fault in gdb/mi xdegaye at gmail dot com
2012-06-12 19:20 ` [Bug mi/14225] " keiths at redhat 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).