From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34206: Pdumper giving a segfault Date: Sat, 26 Jan 2019 10:06:26 +0200 Message-ID: <83munn6dx9.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="186645"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34206@debbugs.gnu.org To: Compro Prasad Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 26 09:07:26 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gnIzt-000mPw-5S for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Jan 2019 09:07:25 +0100 Original-Received: from localhost ([127.0.0.1]:56557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnIzr-0000zF-QQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Jan 2019 03:07:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnIzh-0000yw-3r for bug-gnu-emacs@gnu.org; Sat, 26 Jan 2019 03:07:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnIzb-0001t9-QE for bug-gnu-emacs@gnu.org; Sat, 26 Jan 2019 03:07:11 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46522) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gnIzY-0001Zd-LL for bug-gnu-emacs@gnu.org; Sat, 26 Jan 2019 03:07:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gnIzW-00058G-DM for bug-gnu-emacs@gnu.org; Sat, 26 Jan 2019 03:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Jan 2019 08:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34206 X-GNU-PR-Package: emacs Original-Received: via spool by 34206-submit@debbugs.gnu.org id=B34206.154849001919719 (code B ref 34206); Sat, 26 Jan 2019 08:07:02 +0000 Original-Received: (at 34206) by debbugs.gnu.org; 26 Jan 2019 08:06:59 +0000 Original-Received: from localhost ([127.0.0.1]:45803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gnIzS-00057z-OE for submit@debbugs.gnu.org; Sat, 26 Jan 2019 03:06:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gnIzQ-00057l-Sl for 34206@debbugs.gnu.org; Sat, 26 Jan 2019 03:06:57 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnIzH-0000Ou-Ke; Sat, 26 Jan 2019 03:06:47 -0500 Original-Received: from [176.228.60.248] (port=3031 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gnIzH-0007cF-88; Sat, 26 Jan 2019 03:06:47 -0500 In-reply-to: (message from Compro Prasad on Sat, 26 Jan 2019 12:03:59 +0530) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154787 Archived-At: > From: Compro Prasad > Date: Sat, 26 Jan 2019 12:03:59 +0530 > > Emacs source: official master branch (commit: 7960951d5d) > Emacs config: https://github.com/Compro-Prasad/spacemacs/tree/pdumper-is-in-master > (commit: f5eef2127ad4d) > Spacemacs config: https://github.com/Compro-Prasad/.spacemacs.d > (commit: 8a1eebc65f9a) > > Build command: ./configure --enable-checking='yes,glyphs' > --enable-check-lisp-object-type CFLAGS='-O0 -g3' --with-xwidgets && > make -j2 > > GDB log: https://pastebin.com/2uMPHCRV This seems to indicate your configuration is quite complex, and I cannot easily understand what are you doing that is different from the normal build and "emacs -Q" to start Emacs. In particular, this: $ gdb ./src/emacs-27.0.50.11 Reading symbols from ./src/emacs-27.0.50.11...done. (gdb) r --dump-file="/home/compro/.emacs.d/.cache/dumps/spacemacs.pdmp" Starting program: /home/compro/Downloads/git.savannah.gnu.org/git/emacs/src/emacs-27.0.50.11 --dump-file="/home/compro/.emacs.d/.cache/dumps/spacemacs.pdmp" indicates that your pdump file is spacemacs.pdmp, but I don't know how that file was produced, and I cannot easily understand what is different in your build procedure from the normal upstream build of Emacs. Maybe you should first take this up with then maintainers of the Compro-Prasad/spacemacs package. > OS: Antergos(Arch Linux) > Compiler: gcc version 8.2.1 20181127 (GCC) > > Can't provide further information because Emacs segfaults before it > can load any elisp packages while loading the dump file. The backtrace indicates that it segfaults _after_ loading the dump file, inside the call to init_buffer. > I might be doing something wrong here. Can you please guide me how to > use the pdumper in Emacs or what info topic is it under? There's no difference in how pdump'ed Emacs should be used, it's the same as you'd use an unexec'ed Emacs. I suggest to file an issue with the maintainers of Compro-Prasad/spacemacs.