From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Compro Prasad Newsgroups: gmane.emacs.bugs Subject: bug#34206: Pdumper giving a segfault Date: Sat, 26 Jan 2019 20:35:41 +0530 Message-ID: References: <83munn6dx9.fsf@gnu.org> <83imyb66dn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="61466"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34206@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 26 16:07:11 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 1gnPY7-000Ftq-4L for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Jan 2019 16:07:11 +0100 Original-Received: from localhost ([127.0.0.1]:60532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnPY6-0003az-2m for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Jan 2019 10:07:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnPXz-0003aq-MO for bug-gnu-emacs@gnu.org; Sat, 26 Jan 2019 10:07:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnPXy-0005hq-MV for bug-gnu-emacs@gnu.org; Sat, 26 Jan 2019 10:07:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47409) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gnPXy-0005gk-J8 for bug-gnu-emacs@gnu.org; Sat, 26 Jan 2019 10:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gnPXy-0000YA-7c for bug-gnu-emacs@gnu.org; Sat, 26 Jan 2019 10:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Compro Prasad Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Jan 2019 15: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.15485151662041 (code B ref 34206); Sat, 26 Jan 2019 15:07:02 +0000 Original-Received: (at 34206) by debbugs.gnu.org; 26 Jan 2019 15:06:06 +0000 Original-Received: from localhost ([127.0.0.1]:46690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gnPX4-0000Wr-CC for submit@debbugs.gnu.org; Sat, 26 Jan 2019 10:06:06 -0500 Original-Received: from mail-oi1-f169.google.com ([209.85.167.169]:39242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gnPX1-0000WN-Ph for 34206@debbugs.gnu.org; Sat, 26 Jan 2019 10:06:04 -0500 Original-Received: by mail-oi1-f169.google.com with SMTP id i6so9848454oia.6 for <34206@debbugs.gnu.org>; Sat, 26 Jan 2019 07:06:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vR43kCoC6rc5S+L+nGkGzS0Rs/BTx5sroohQV9+QfU4=; b=txWisB1/9iXWShDrjl6TtDXpPHoUN0O8l4JLNHFJwX8YjhI6bsja7+sA7rEFTKZ3QK 9AA7/l+9Qucn1C3xE8TMtLW6Z7pO4x2HqCvSsJVkvMvr8kPK23Vad+umtV+BE9dHXU45 B8fYA6V62ai979NlPoHfQilHIxyN+5iJ6nhHRo45R5o6c/BvgW3yGYLrmEnBTIHBbtVl evS4YjZqtYv3CtLJlDMWHplQbctuvTZoV0jCFD3YCIoFpmB9xTbU4N0UkZ84TOEcV3lt TpuLId4ZIvO6fpq6MJKxEHHJdH4sx2ZWRaCKhVLN+/mN9TDu3uXEetF9z11pizCjMEsH /0Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vR43kCoC6rc5S+L+nGkGzS0Rs/BTx5sroohQV9+QfU4=; b=dlQE9w/5bZxsJSBLZ0DkLU2KUTWju9Whnkr/hO6RuEm1nCBlEm0D5RtTrtCXefB7A7 xDX9DHF3Is4Zgj8bmHRZzvM3imeYT2JG3buXnjTw1Q3dBrk7MlJ7khI1frCjimmTx/zH tlMi9BoiwB++dm6yIH0BYRfF/zfUNgTcglmEreXES/eQdDu1bd29BLAwAM3Spz8rYgBf 2kK3UztCfZVc2ZPvi7kE57Ms2WKqXdvt9cS6BbZwySnybLMR55U2IsXH4D/2EhUhY76s H/JGR3Xo9HdY1+PG+uzkObrl2xx4Ti8zm0hZJ9aukVwvbFujsMl3Q5aKrD0xWFvn3ZNO xA2A== X-Gm-Message-State: AJcUukfSQO0PLMEokHHXV0PV2JXH4yTA26fWtsT7QnA74VTKhilfA70w OPT+yAMRolQ60C1kZX4SwZm4e0SRYK2vyWLN9wA= X-Google-Smtp-Source: ALg8bN4d52sbCefw4mwRtk3EXwgvYd9SK/03OTC4jKX/OSmBvLrSlssFWx93NxkyyN6sVUNzjXJ9JJuciXFjK+kW0h0= X-Received: by 2002:aca:195:: with SMTP id 143mr1167034oib.322.1548515157941; Sat, 26 Jan 2019 07:05:57 -0800 (PST) In-Reply-To: <83imyb66dn.fsf@gnu.org> 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:154797 Archived-At: On Sat, Jan 26, 2019 at 4:19 PM Eli Zaretskii wrote: > > > From: Compro Prasad > > Date: Sat, 26 Jan 2019 14:33:57 +0530 > > Cc: 34206@debbugs.gnu.org > > > > > > 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. > > I don't know if you can help me but I have some more information on > > how the dump might be produced. > > > > https://github.com/Compro-Prasad/spacemacs/blob/pdumper-is-in-master/core/core-dumper.el#L68 > > I don't think this helps much, as I don't really know anything about > spacemacs and its build procedures. Spacemacs is just another Emacs configuration. It doesn't mess with the official Emacs source. This doesn't require any additional build steps. > > I went a bit further and tried executing the following using `C-x C-e` > > while running spacemacs: > > > > (dump-emacs-portable "~/test.pdmp") > > > > It gave me: eval: unsupported object type in dump: window configuration > > > > Is this a bug or I am supposed to run Emacs in batch mode while dumping? > > Yes, dump-emacs-portable can only be invoked in batch mode. Thanks for the information. Can you please give a simple example of the best way to dump Emacs and reload the dump file? I would also appreciate any links to the Emacs info manual.