public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tui/13422] New: Segmentation fault due to lack of tui setup
@ 2011-11-21 19:25 sphink at gmail dot com
  2015-07-02 14:21 ` [Bug tui/13422] " palves at redhat dot com
  2015-07-08 23:44 ` sphink at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: sphink at gmail dot com @ 2011-11-21 19:25 UTC (permalink / raw)
  To: gdb-prs

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

             Bug #: 13422
           Summary: Segmentation fault due to lack of tui setup
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tui
        AssignedTo: unassigned@sourceware.org
        ReportedBy: sphink@gmail.com
    Classification: Unclassified


I have a script that starts up gdb inside of emacs from the command line, and
it began seg faulting on startup after updating gdb.

I can't remember how I managed to catch this in the debugger (it involved a
weird timing hack), but I can reproduce this with just the command line

  emacs --eval '(gdb "/home/sfink/src/archer/gdb/gdb --annotate=3
/usr/bin/flac")'

where /usr/bin/flac can be any binary for which debug info is available.
Switching to a binary with no debug info will eliminate the crash, as will
removing the --annotate=3. The crash is a NULL pointer dereference on some tui
data structure.

Reverting commit edde6978a5c3ee8a2eeafa99a13a6ecb95bf1aff fixes the problem for
me.

-- 
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 tui/13422] Segmentation fault due to lack of tui setup
  2011-11-21 19:25 [Bug tui/13422] New: Segmentation fault due to lack of tui setup sphink at gmail dot com
@ 2015-07-02 14:21 ` palves at redhat dot com
  2015-07-08 23:44 ` sphink at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: palves at redhat dot com @ 2015-07-02 14:21 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=13422

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |palves at redhat dot com

--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
Can you still reproduce this with current master?  emacs nowadays wants MI
mode, so I don't know how to reproduce this.

-- 
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 tui/13422] Segmentation fault due to lack of tui setup
  2011-11-21 19:25 [Bug tui/13422] New: Segmentation fault due to lack of tui setup sphink at gmail dot com
  2015-07-02 14:21 ` [Bug tui/13422] " palves at redhat dot com
@ 2015-07-08 23:44 ` sphink at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: sphink at gmail dot com @ 2015-07-08 23:44 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=13422

Steve Fink <sphink at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Steve Fink <sphink at gmail dot com> ---
I cannot reproduce with gdb 7.7.1-21.fc20, emacs 24.3.1, with:

emacs --eval '(gud-gdb "/usr/bin/gdb --annotate=3 /usr/bin/flac")'

(gud-gdb even in current emacs will not use MI mode, which is good for me and
others because MI mode is still flaky, at least with the versions of things I
use.)

Nor can I reproduce it with /home/sfink/src/archer/gdb/gdb, though I have no
idea whether that's still the same version as when I filed this bug. Its
timestamp is from 2012, so probably not. (Why didn't I record the rev that I
had the problem in? Because I'm an idiot.)

That version of gdb *does* spit out "Dwarf Error: Cannot handle
DW_FORM_<unknown> in DWARF reader [in module
/usr/lib/debug/usr/bin/flac.debug]", fwiw.

-- 
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:[~2015-07-08 23:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-21 19:25 [Bug tui/13422] New: Segmentation fault due to lack of tui setup sphink at gmail dot com
2015-07-02 14:21 ` [Bug tui/13422] " palves at redhat dot com
2015-07-08 23:44 ` sphink at gmail 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).