public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/15325] New: crashes with "segmentation fault" for self-created dwarf-file
@ 2013-03-30 12:48 smarf at gmx dot de
  2013-03-31 20:16 ` [Bug gdb/15325] " smarf at gmx dot de
  2013-04-12 17:44 ` tromey at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: smarf at gmx dot de @ 2013-03-30 12:48 UTC (permalink / raw)
  To: gdb-prs

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

             Bug #: 15325
           Summary: crashes with "segmentation fault" for self-created
                    dwarf-file
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: smarf@gmx.de
    Classification: Unclassified


Created attachment 6961
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6961
floppy disk image and dwarf debug info

I tried to build a dwarf-file for a bootable image (see attached file
floppy.img which can be started via "qemu -fda floppy.img -boot a -s"). This
dwarf-file (see attached file dwarf) seems to be ok for readelf and dwarfdump,
but not for gdb. 

Starting gdb with "gdb --se=dwarf" and connecting to qemu with "target remote
:1234", I get "0x001045ea in ?? (warning: (Internal error: pc 0x1045ea in read
in psymtab, but not in symtab.)" from gdb 7.1 and "Segmentation fault" from gdb
7.5.1 without anything else.

I would expect gdb to recognize 0x1045ea as being in Kernel.main as "dwarfdump
-a -vv" shows
<0><   11>    DW_TAG_compile_unit <abbrev 1>
        DW_AT_name                  Kernel
        DW_AT_producer              SJC
        DW_AT_language              DW_LANG_C
        DW_AT_low_pc                0x104320
        DW_AT_high_pc               0x108dd9
<0><   30>    DW_TAG_subprogram <abbrev 2>
        DW_AT_name                  main
        DW_AT_external              yes(1)
        DW_AT_low_pc                0x104320
        DW_AT_high_pc               0x1045ed

I think giving "Segmentation fault" is a bug in gdb. Additionally, if anyone
can suggest changes to get gdb accepting it, I would be very happy.

Thanks in advance! :-)

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

* [Bug gdb/15325] crashes with "segmentation fault" for self-created dwarf-file
  2013-03-30 12:48 [Bug gdb/15325] New: crashes with "segmentation fault" for self-created dwarf-file smarf at gmx dot de
@ 2013-03-31 20:16 ` smarf at gmx dot de
  2013-04-12 17:44 ` tromey at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: smarf at gmx dot de @ 2013-03-31 20:16 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from smarf at gmx dot de 2013-03-31 20:16:13 UTC ---
A colleague found the causing line:
    at buildsym.c:454
    454      if (start != BLOCK_START (block)
block is 0, the access in BLOCK_START will result in segv.

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

* [Bug gdb/15325] crashes with "segmentation fault" for self-created dwarf-file
  2013-03-30 12:48 [Bug gdb/15325] New: crashes with "segmentation fault" for self-created dwarf-file smarf at gmx dot de
  2013-03-31 20:16 ` [Bug gdb/15325] " smarf at gmx dot de
@ 2013-04-12 17:44 ` tromey at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2013-04-12 17:44 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |tromey at redhat dot com
         Resolution|                            |DUPLICATE

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2013-04-12 17:44:23 UTC ---
Dup.

*** This bug has been marked as a duplicate of bug 14983 ***

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

end of thread, other threads:[~2013-04-12 17:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-30 12:48 [Bug gdb/15325] New: crashes with "segmentation fault" for self-created dwarf-file smarf at gmx dot de
2013-03-31 20:16 ` [Bug gdb/15325] " smarf at gmx dot de
2013-04-12 17:44 ` tromey 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).