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>
Subject: Help getting backtrace in gdb
Date: Mon, 26 Jun 2017 18:33:06 +0000	[thread overview]
Message-ID: <CAFyQvY3_ryE2wdhtjtMbCTwxjovToSd8Vxx2iNaOBTKHn+z6ug@mail.gmail.com> (raw)

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

Hello,

It has been a while (about a year) since I did backtracing in gdb. I
followed my notes from then to look at a backtrace for an emacs crash, but
it's not working.

km²~/downloads/:git/emacs/src> gdb ./emacs
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/>...
Reading symbols from /home/kmodi/downloads/git/emacs/src/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 = tmux-24bits
Breakpoint 1 at 0x55c782: file emacs.c, line 364.
Temporary breakpoint 2 at 0x580423: file sysdep.c, line 1022.
(gdb) break Fsignal
Breakpoint 3 at 0x605535: file eval.c, line 1508.
(gdb) r -Q
Starting program: /home/kmodi/downloads/git/emacs/src/emacs -Q

(emacs:19646): GLib-GIO-CRITICAL **: g_settings_schema_source_lookup:
assertion 'source != NULL' failed

Backtrace:
[0x0]
[0x0]
[0x0]
During startup program terminated with signal SIGSEGV, Segmentation fault.
(gdb) bt
No stack.
You can't do that without a process to debug.

(If interested, this is what causes the crash on emacs -Q:
http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00508.html )

The difference in behavior I see is that the breakpoint on Fsignal is not
working.

I have built emacs from the latest version of master branch with these
options:

./configure options:
  --with-modules --prefix=/home/kmodi/usr_local/apps/6/emacs/master
'--program-transform-name=s/^ctags$/ctags_emacs/' 'CPPFLAGS=-fgnu89-inline
-I/home/kmodi/usr_local/6/include -I/usr/include/freetype2 -I/usr/include'
'CFLAGS=-ggdb3 -O0' 'CXXFLAGS=-ggdb3 -O0'
'LDFLAGS=-L/home/kmodi/usr_local/6/lib -L/home/kmodi/usr_local/6/lib64
-ggdb3'

Features:
  XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK2 X11 MODULES

Has something changed about configure (some new flag that I need to add?)
to enable debug in gdb?
-- 

Kaushal Modi

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

             reply	other threads:[~2017-06-26 18:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-26 18:33 Kaushal Modi [this message]
2017-06-27 21:11 ` Help getting backtrace in gdb 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
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=CAFyQvY3_ryE2wdhtjtMbCTwxjovToSd8Vxx2iNaOBTKHn+z6ug@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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).