From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: akshaychavan20031@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#44583: 25.3; Emacs aborts with fatal error when a keyboard macro (saved in init.el) is set to run automatically at Emacs startup (Windows 10) Date: Wed, 11 Nov 2020 23:51:01 +0530 Message-ID: <864klvhi0i.fsf@DESKTOP-IVLB171.i-did-not-set--mail-host-address--so-tickle-me> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24143"; mail-complaints-to="usenet@ciao.gmane.io" To: 44583@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 11 20:17:50 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kcvcs-0006CP-Jz for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Nov 2020 20:17:50 +0100 Original-Received: from localhost ([::1]:50732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kcvcr-0006m2-L5 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Nov 2020 14:17:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcvcB-0006kf-Tz for bug-gnu-emacs@gnu.org; Wed, 11 Nov 2020 14:17:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59551) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kcvc6-0004mN-18 for bug-gnu-emacs@gnu.org; Wed, 11 Nov 2020 14:17:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kcvc5-0006aQ-TC for bug-gnu-emacs@gnu.org; Wed, 11 Nov 2020 14:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: akshaychavan20031@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Nov 2020 19:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44583 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160512220925294 (code B ref -1); Wed, 11 Nov 2020 19:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Nov 2020 19:16:49 +0000 Original-Received: from localhost ([127.0.0.1]:42864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kcvbs-0006Zu-NT for submit@debbugs.gnu.org; Wed, 11 Nov 2020 14:16:49 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:38140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kcvYX-0006UM-Tb for submit@debbugs.gnu.org; Wed, 11 Nov 2020 14:13:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcvYX-0005ms-N4 for bug-gnu-emacs@gnu.org; Wed, 11 Nov 2020 14:13:21 -0500 Original-Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:42197) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kcvYV-0003Ix-Ot for bug-gnu-emacs@gnu.org; Wed, 11 Nov 2020 14:13:21 -0500 Original-Received: by mail-pl1-x631.google.com with SMTP id s2so1461738plr.9 for ; Wed, 11 Nov 2020 11:13:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=/4Ykm3hQLLJ1RjlbvqT3fq0giKgUcL7zds46wkM2xfU=; b=ZD5DF8ExcAqBPIOPqnu4rXIGOLbc1o0zpgX6e38hFqt66l0LdkGeknjTtdhp5UfrB0 j/cCTF0OvfDQQKN9c4cEP7cv+lMaMAmrr0JPpVmQdWiOef8JOo/ISlbRG1jpvFYvcuqC SOCI/DLBBIBHkT4aQiNx/5ByL1vMFozBZRhNQSjLQnMVF+8LV9c+7Ak2pmeragylooFj db48YOnWIzZelpmc9PIbF1iCJkF7Dmv9Z6PDYmJWiyxa3gZnG9fBEbDmoyguwGW1sWmw 99xMFqVMfVD9bfru2diCmxAybWtzbRgx/fM+nBKjWs235/bDhsVvljaFJ3wVpRdzDoJm fTkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=/4Ykm3hQLLJ1RjlbvqT3fq0giKgUcL7zds46wkM2xfU=; b=f7JoQBWC+GtJgkLCTiYwQigY/NQcYSPBb4+w8mlsIxzoELkLeP/cBv1RbKN6tZqkLf jxapR/+8Huz3EkjVDSr5UvtdEqEPqLHcWYwEbDfa4LannjKPjmPReGaXqupEGAhsJDPC y2hyYoMUpWQmdP6jpACMI2LVSYjvET2X9cKZa6lS53r33ah6O+DiiKXXRGCUXqxce5De njbLynPoLfguxOkGVYSZpPe8WEa1TS6ZikKPuhszIFoAU2tVoKN62k8+jAs2tmqgLsWq pZ96fMitNcxZtg0UTLgLv2wS3YpOketshwNK9o4XY4EU1PQaX8iNHgnkj2ATS0VdHl+l f9tA== X-Gm-Message-State: AOAM531vSwKjaAZ5oYK4xzMH8Dmu3r5nUcWmhFU5byQSfVGn4bh3sO/E 3OBCJ4z7/ky2z/mlxPkwflS7l/QFtaA= X-Google-Smtp-Source: ABdhPJx5/N3DA/EdJpFaoKeBw/3F8/TKDPrAoUspdG6hGdaNcnltQQZIwvIEHHqt5yJWtowWlXIxpw== X-Received: by 2002:a17:902:bb94:b029:d6:edb2:4f41 with SMTP id m20-20020a170902bb94b02900d6edb24f41mr22497655pls.3.1605121997522; Wed, 11 Nov 2020 11:13:17 -0800 (PST) Original-Received: from DESKTOP-IVLB171 ([117.217.44.26]) by smtp.gmail.com with ESMTPSA id k4sm3207233pjo.54.2020.11.11.11.13.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Nov 2020 11:13:17 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=akshaychavan20031@gmail.com; helo=mail-pl1-x631.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: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 11 Nov 2020 14:16:47 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193126 Archived-At: In GNU Emacs 25.3.1 (x86_64-w64-mingw32) of 2017-09-17 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 10.0.17134 Configured using: 'configure --without-dbus --without-compress-install 'CFLAGS=-O2 -static -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: savehist-mode: t save-place-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t transient-mark-mode: t Recent messages: Starting Emacs daemon. When done with this frame, type C-x 5 0 Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message idna dired format-spec rfc822 mml mml-sec password-cache epg gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils server time-date imenu finder-inf edmacro kmacro package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib savehist saveplace mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 228843 16607) (symbols 56 25882 0) (miscs 48 52 128) (strings 32 63017 18885) (string-bytes 1 1525123) (vectors 16 19795) (vector-slots 8 536167 4328) (floats 8 193 3) (intervals 56 763 30) (buffers 976 20)) Hello, I encountered a fatal error which caused Emacs to abort at startup (running as Daemon). The actions which led to this bug are as follows: 1. I recorded a keyboard macro and inserted its elisp code in init.el with the M-x insert-kbd-macro function. 2. The elisp code for the macro is ;; This macro automatically runs remember-notes on Emacs startup and ;; then runs recover-this-file to recover autosave data of notes and ;; then enters 'yes' to the minibuffer prompt (fset 'remember-notes-my-macro (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ([134217848 114 101 109 101 109 98 101 114 45 110 111 116 101 115 return 134217848 114 101 99 111 118 101 114 45 116 104 105 115 45 102 105 108 101 return 121 101 115 return] 0 "%d")) arg))) ;; Macro ends here 3. I wished for this macro execute automatically when Emacs Daemon is launched at System startup. So I added the following line to my init.el (remember-notes-my-macro) 4. When Emacs is started, I get a dialog box with the following text: QUOTE A fatal error has occured! Would you like to attach a debugger? Select: YES -- To debug Emacs, or NO -- to abort Emacs and produce a backtrace (emacs_backtrace.txt in current directory). (type 'gdb -p ' and 'continue' inside GDB before clicking YES.) UNQUOTE 5. However, this macro RUNS FINE when invoked in a running Emacs instance by M-x remember-notes-my-macro 6. Please find the emacs_backtrace.txt in the attachment to this email. <#part type=text filename="c:/Users/USER/Desktop/emacs_backtrace.txt" disposition=inline description=emacs_backtrace.txt> <#/part> Warm regards, Akshay