unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Cc: Noam Postavsky <npostavs@users.sourceforge.net>
Subject: Re: Help getting backtrace in gdb
Date: Tue, 03 Oct 2017 21:09:14 +0000	[thread overview]
Message-ID: <CAFyQvY1WnPc84m3w580VTaE-XWbkd-PpaRWEFNmxxC3yzEcQtQ@mail.gmail.com> (raw)
In-Reply-To: <CAM-tV-_Vgs7AMOAOijFRBDYj1JamcR2gyTzUnOxfvdMvWCrV_A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2798 bytes --]

On Tue, Jun 27, 2017 at 7:27 PM Noam Postavsky <
npostavs@users.sourceforge.net> wrote:

> On Tue, Jun 27, 2017 at 6:01 PM, Kaushal Modi <kaushal.modi@gmail.com>
> wrote:
> >
> > My assumption was that Fsignal would get called before the seg fault.
>
> I would not expect it to be called, if you're strictly following the
> recipe for Bug#27504.
>
> >>
> >> You can try evaluating (signal 'wrong-number-of-arguments '(x y)) to
> >> see if your Fsignal breakpoint is working.
> >
> >
> > Nope, it does not work..
>

Hello all,

This is a non-Emacs question .. I am having trouble getting gdb to work.
But I need gdb to work to help provide more debug info for an Emacs bug.

If I use the gdb that has shipped with my RHEL OS, gdb is unable to catch
any of the errors that happen in Emacs.. even evaluating (error "foo") does
not give control back to gdb.

gdb version:

GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.

So I built the latest gdb from source (v8.0.1), and there I get this
another issue (see below):

GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./emacs...done.
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from
terminal]
DISPLAY = :1.0
TERM = screen-256color
Breakpoint 1 at 0x55e4e7: file emacs.c, line 364.
Temporary breakpoint 2 at 0x582a67: file sysdep.c, line 1031.
(gdb) break Fsignal
Breakpoint 3 at 0x606ee5: file eval.c, line 1514.
(gdb) r -Q
Starting program: /home/kmodi/downloads/git/emacs/src/emacs -Q
Could not trace the inferior process.
Error: ptrace: No such processDuring startup program exited with code 127.
(gdb) q

Can I get help getting gdb working?
-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 4265 bytes --]

  parent reply	other threads:[~2017-10-03 21:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-26 18:33 Help getting backtrace in gdb Kaushal Modi
2017-06-27 21:11 ` Noam Postavsky
2017-06-27 22:01   ` Kaushal Modi
2017-06-27 23:27     ` Noam Postavsky
2017-06-27 23:50       ` Davis Herring
2017-06-28  0:05         ` Noam Postavsky
2017-10-03 21:09       ` Kaushal Modi [this message]
2017-10-04  5:38         ` Eli Zaretskii
2017-10-04 10:53           ` Kaushal Modi
2017-10-04 11:08             ` Eli Zaretskii
2017-10-06 17:35               ` Kaushal Modi
2017-10-06 17:42                 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFyQvY1WnPc84m3w580VTaE-XWbkd-PpaRWEFNmxxC3yzEcQtQ@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=npostavs@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).