From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: git+master: c6e6503900534d939dd94b812563c27f22c49b7d crash when using gnus Date: Sat, 28 Apr 2018 15:09:10 +0300 Message-ID: <83a7tnttw9.fsf@gnu.org> References: <87o9i3ya1x.fsf@mat.ucm.es> <83efizu0nm.fsf@gnu.org> <87o9i3iqs1.fsf@mat.ucm.es> <83bme3txq2.fsf@gnu.org> <874ljvh7df.fsf@mat.ucm.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1524917299 3016 195.159.176.226 (28 Apr 2018 12:08:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 28 Apr 2018 12:08:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Uwe Brauer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 28 14:08:15 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fCOeE-0000iO-V1 for ged-emacs-devel@m.gmane.org; Sat, 28 Apr 2018 14:08:15 +0200 Original-Received: from localhost ([::1]:51952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCOgL-0004ME-T8 for ged-emacs-devel@m.gmane.org; Sat, 28 Apr 2018 08:10:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCOfT-0004Kl-8Y for emacs-devel@gnu.org; Sat, 28 Apr 2018 08:09:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCOfQ-0002HF-3E for emacs-devel@gnu.org; Sat, 28 Apr 2018 08:09:31 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCOfP-0002H4-Vs; Sat, 28 Apr 2018 08:09:28 -0400 Original-Received: from [176.228.60.248] (port=2993 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fCOfP-0007rs-8N; Sat, 28 Apr 2018 08:09:27 -0400 In-reply-to: <874ljvh7df.fsf@mat.ucm.es> (message from Uwe Brauer on Sat, 28 Apr 2018 13:56:28 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224935 Archived-At: > From: Uwe Brauer > Cc: Uwe Brauer , emacs-devel@gnu.org > Date: Sat, 28 Apr 2018 13:56:28 +0200 > > > Basically, start GDB with Emacs as the executable to debug, then run > > Emacs from GDB's command line. > > > Oh well, > > I tried gdb /opt/emacs27/bin/emacs > and I obtained > Reading symbols from /opt/emacs27/bin/emacs...(no debugging symbols > found)...done. Your Emacs was not built with debugging symbols. The "Preliminaries" section of etc/DEBUG explains how to build with debugging symbols. > But no emacs started. Because you didn't start it. The GDB "run" command starts the executable. This is again described in etc/DEBUG. > The message indicates that I should recompile emacs? Yes. > > No need to google, the answer is under your fingertips: see the > > beginning of the file etc/DEBUG in the Emacs source tree. > > Thanks, but just read it, but it is a bit confusing, since it is not > clear to me whether I could start emacs first and then start gdb within > emacs. You can either start GDB from (another session of) Emacs, or start GDB from the shell prompt. In both cases, you should then start Emacs from GDB. > So shall I recompile emacs with debug options like > > CFLAGS='-O0 -g3' ./configure --enable-checking='yes,glyphs' --enable-check-lisp-object-type Yes, that's a good beginning.