From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Emacs:Native-Comp Backtrace Date: Tue, 25 Aug 2020 17:36:44 -0700 Message-ID: <24389.44700.121870.344164@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21994"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 26 02:37:32 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAjRU-0005bS-Ck for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Aug 2020 02:37:32 +0200 Original-Received: from localhost ([::1]:37884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAjRT-0006xS-Fr for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Aug 2020 20:37:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAjQo-00069W-Eh for emacs-devel@gnu.org; Tue, 25 Aug 2020 20:36:50 -0400 Original-Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:38847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAjQm-0003IM-IT for emacs-devel@gnu.org; Tue, 25 Aug 2020 20:36:50 -0400 Original-Received: by mail-pf1-x432.google.com with SMTP id d22so61684pfn.5 for ; Tue, 25 Aug 2020 17:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:mime-version:content-transfer-encoding:message-id:date:to:cc :subject; bh=syCzf2cDtWKE3H+0KS5/kXRGjlda1MLhT33kuqPscK8=; b=JqxP1ePdbqDr8cK48ehbSgh3QLxlaDqblKS3zaM7f8FJZizl7kGz8LvModNjK4kpRe udks+zsSixLRMTPkRQvS0qcRWdr41d5Jeiz8QL23CHYd53/kBt9bOmEhKZjB4fyC6fMq ybW0dttc/9OKI+D/Tnx4nKXZKOaonFPoEjel191W+5XVOsKj1mqCsodOoLgaN63iN49v mHq9f/mizfCBdYG2SpYcwRu1r3emI/Ut69RXozO1FVphFSE3MMCAZoebrk4OckrfDc5U piWR8o7sC5wUeKTZKf3yXkJawI2qfB2ApLKBCrWdioJEkxeFQgKs4GvomwjUQjQ4v/Cx FOag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:content-transfer-encoding :message-id:date:to:cc:subject; bh=syCzf2cDtWKE3H+0KS5/kXRGjlda1MLhT33kuqPscK8=; b=GThpmPWZ2ETazBa25y5GhFXJ0lsZ+aZhDKQqX5zZSiFs1RdfacWXqwk0Pu6DMvWUoE ihKzaiAAl31t8nEgiuJJBZWEqqzl6ofh18SOULl+2KqzhrhhVwdguqoxEuv2tVX1cZ+S BffPqkUUzBG7AVdLcuzFTegMKzLXXQ/HCABif4ylGevQ8WMnBo+hk7Vfa8d4BLNiWJa+ p6eis7yKADl4zscMiLlIs+v8OqOUtfBsP/wo/XTTbSEu+dmtYHlPyEXiHBhVj8gWFGCO GtxSwBvq2fO1sOT5gxcf2VYaeMDohqWWo6PY6xa1Q7x5bpPR6jzfajba4XnuwhuuGpgU 76jg== X-Gm-Message-State: AOAM531ey9c0dmhxDGEnvIDpkmqCSE953q/7dapHxpNJYxPz3U+mX/39 Q2mOB/vwyJaCqXwZP29byJJHvYJiJ1G0qKl0 X-Google-Smtp-Source: ABdhPJwL7uQiNsjBCQkuq7Ivbl50pN/kgzVi4f2NgqTtWiEwMNz9M+g6GeMGOpblO9RhOwPn59Ziyw== X-Received: by 2002:aa7:96c8:: with SMTP id h8mr6980946pfq.108.1598402206194; Tue, 25 Aug 2020 17:36:46 -0700 (PDT) Original-Received: from raman-glaptop.localdomain (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id x12sm459498pfr.42.2020.08.25.17.36.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 17:36:45 -0700 (PDT) Original-Received: by raman-glaptop.localdomain (Postfix, from userid 13930) id 27C9FC21316; Tue, 25 Aug 2020 17:36:44 -0700 (PDT) X-Mailer: VM 8.2.0b under 28.0.50 (x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=raman@google.com; helo=mail-pf1-x432.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254233 Archived-At: Hi Andrea and others, This is a follow-on to my earlier message re a possible race condition, this time with a backtrace. 1. I load dired-x in my emacs startup, and I have dired-omit-mode enabled via customize (settings saved to a custom file) 2. The above emacs startup works with no errors or warnings with regular emacs. 3. With emacs native-comp version, this throws a symbol's value as variable is void in the *Messages* buffer. 4. native-emacs (native comp version) does not throw a backtrace even if you start it as native-emacs --debug-init 5. I produced the attached backtrace by setting debug-on-error to t at the top of my early-init.el 6. As the backtrace below shows, the psession package in the process of restoring buffers opens a dired buffer, and at that point, dired-omit-mode is on dired-mode-hook, but apparently dired-x hasn't been fully loaded yet. Debugger entered--Lisp error: (void-function dired-om= it-mode) (dired-omit-mode) (run-hooks change-major-mode-after-body-hook dired-mode-hook) (apply run-hooks (change-major-mode-after-body-hook dired-mode-hook))= (run-mode-hooks dired-mode-hook) (dired-mode "~/Mail/foo" "-al") (dired-internal-noselect "~/Mail/foo" nil) (dired-noselect "~/Mail/foo") (run-hook-with-args-until-success dired-noselect "~/Mail/foo") (find-file-noselect "/home/raman/Mail/foo/" nowarn) (psession--restore-some-buffers) (run-hooks emacs-startup-hook term-setup-hook) (#f(compiled-function () #)) (normal-top-level) --=20 =E2=99=89Id: kg:/m/0285kf1 =F0=9F=A6=AE=E2=99=89 -- ♉Id: kg:/m/0285kf1 🦮♉