From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Naofumi Yasufuku Newsgroups: gmane.emacs.bugs Subject: bug#49507: 28.0.50; macOS: =?UTF-8?Q?Symbol=E2=80=99s?= value as variable is void: lock-file-name-transforms Date: Fri, 16 Jul 2021 23:07:06 +0900 Message-ID: References: <87eebya2o9.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13579"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.15; emacs 28.0.50 Cc: 49507@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 16 16:08:28 2021 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 1m4OVv-0003NY-QV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Jul 2021 16:08:27 +0200 Original-Received: from localhost ([::1]:57938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4OVt-0006rZ-SY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Jul 2021 10:08:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4OVW-0006q3-DT for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2021 10:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40413) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4OVW-0001Di-4V for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2021 10:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m4OVV-0006cp-TU for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2021 10:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Naofumi Yasufuku Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Jul 2021 14:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49507 X-GNU-PR-Package: emacs Original-Received: via spool by 49507-submit@debbugs.gnu.org id=B49507.162644445325429 (code B ref 49507); Fri, 16 Jul 2021 14:08:01 +0000 Original-Received: (at 49507) by debbugs.gnu.org; 16 Jul 2021 14:07:33 +0000 Original-Received: from localhost ([127.0.0.1]:51959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4OUy-0006c0-1u for submit@debbugs.gnu.org; Fri, 16 Jul 2021 10:07:33 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:41985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4OUs-0006bi-8v for 49507@debbugs.gnu.org; Fri, 16 Jul 2021 10:07:26 -0400 Original-Received: (Authenticated sender: naofumi@yasufuku.dev) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 670FB1BF207; Fri, 16 Jul 2021 14:07:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yasufuku.dev; s=gm1; t=1626444435; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+zViQR1H5D1l6LZPUkI1fEThGbOzb9RGXWPQLU1vLCM=; b=H2UDZaYVKgK/DWj76N8ga16XUnFfo+LhR4GshEKRlGEKQAHclAVKtyJG/dmhbl7GMdv30o vKtjoP8Zj1utdxlKblqosmTonxLNnfKLzB8VG9lQdWRK/SIjCSPhlbpYQG0Dr4yhhEN+U/ ul+99OGPrxchEV3jvGuLVcxoqmLujeVSNawtd+SRR7xMcZ7ERNhvh3iOeBVopEz7yjqX+P GmNYEmztqiim2Xyai1Emswe937WYlVxO7Y0DRpEBtoUkRdrRXrNBgoLkbWoOHiuWZjwOO/ 3pHbd+Sr9Me4Y8Ri/nHuiQCQP0v/kPFAKKb0mRkZoTIF2fllXqG6XIDnu/LsuQ== In-reply-to: <87eebya2o9.fsf@gnus.org> 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:210102 Archived-At: Lars Ingebrigtsen writes: > > I've now removed the :initialize form from the defcustom, so the build > should work better now. (I'll be filing a new bug report about > :initialize 'custom-initialize-delay in general.) Thank you, Lars and everyone. Sorry for my absence. I confirmed that 'LANG=ja_JP.UTF-8 emacs' starts up without error after commit 561ef16fd0. I agree that defcustom `custom-initialize-delay' implementation issue still remains, and this workaround lacks a bit of consistency of `make-lock-file-name' with custom `lock-file-name-transforms' variable. In closing, let me summarize this issue: -------- $ ./configure --with-native-compilation ... $ make -j8 bootstrap STEP 0) Make sure that ~/.emacs/eln-cache doesn't exist. Remove or rename it if exists. $ mv ~/.emacs/eln-cache ~/.emacs/eln-cache.old STEP 1) Run emacs with $LANG that can invoke async native compilation of lisp/language/*-util.el. $ LANG=ja_JP.UTF-8 ./src/emacs -Q Symbol’s value as variable is void: lock-file-name-transforms $ $ LANG=zh_CN.UTF-8 ./src/emacs -Q Symbol's value as variable is void: lock-file-name-transforms $ $ ls aclocal.m4 configure.ac lwlib admin CONTRIBUTE m4 autogen.sh COPYING make-dist autom4te.cache doc Makefile BUGS emacs-async-comp-china-util-C75DZz.el Makefile.in build-aux emacs-async-comp-japan-util-eJHmFp.el modules ChangeLog.1 etc msdos ChangeLog.2 GNUmakefile native-lisp ChangeLog.3 info nextstep compile_commands.json INSTALL nt config.bat INSTALL.REPO oldXMenu config.log leim README config.log~ lib src config.status lib-src test configure lisp $ TRACE) This error can happen if `write-region' by async native compilation runs at early stage of emacs startup. Not macOS-specific. $ cd src $ export LANG=ja_JP.UTF-8 $ gdb emacs .. Breakpoint 1 at 0x1000d3a00: terminate_due_to_signal. (2 locations) (gdb) b make_lock_file_name Breakpoint 2 at 0x100100aa8: make_lock_file_name. (3 locations) (gdb) r -Q Starting program: /home/naofumi/src/git.sv.gnu.org/emacs/src/emacs -Q [New Thread 0x2303 of process 36192] [New Thread 0x2203 of process 36192] warning: unhandled dyld version (17) [New Thread 0x1907 of process 36192] [New Thread 0x2003 of process 36192] [New Thread 0x2103 of process 36192] Thread 2 hit Breakpoint 2, make_lock_file_name (fn=XIL(0x14562c9a4)) at filelock.c:625 625 return call1 (Qmake_lock_file_name, Fexpand_file_name (fn, Qnil)); (gdb) bt #0 make_lock_file_name (fn=XIL(0x14562c9a4)) at filelock.c:625 #1 lock_file (fn=XIL(0x14562c9a4)) at filelock.c:666 #2 Flock_file (file=XIL(0x14562c9a4)) at filelock.c:755 #3 0x000000010010c9b5 in write_region (start=, end=, filename=, append=, visit=make_fixnum(0), lockname=, mustbenew=XIL(0), desc=10) at fileio.c:5230 ... Lisp Backtrace: "write-region" (0xefbfdd58) "comp-run-async-workers" (0xefbfdf10) "native--compile-async" (0xefbfe180) "defalias" (0xefbfe250) "set-language-environment" (0xefbfeac8) "set-locale-environment" (0xefbfee88) "normal-top-level" (0xefbfef30) (gdb) s Symbol’s value as variable is void: lock-file-name-transforms [Inferior 1 (process 36192) exited with code 0377] (gdb) q EXPECTED BEHAVIOR) Emacs starts up and async native compilation runs without error like this: *Async-native-compile-log* -------- Compiling /home/naofumi/src/git.sv.gnu.org/emacs/lisp/language/japan-util.el... Compiling /home/naofumi/src/git.sv.gnu.org/emacs/lisp/emacs-lisp/cl-lib.el... Compiling /home/naofumi/src/git.sv.gnu.org/emacs/lisp/emacs-lisp/seq.el... ... -------- AN INTERIM WORKAROUND 1) Specify LANG=C or en_US $ LANG=en_US.UTF-8 ./src/emacs -Q $ AN INTERIM WORKAROUND 2) -------- lisp/files.el | 1 - 1 file changed, 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index 0dfcab8f89..894a06e6e7 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -424,7 +424,6 @@ lock-file-name-transforms :type '(repeat (list (regexp :tag "Regexp") (string :tag "Replacement") (boolean :tag "Uniquify"))) - :initialize 'custom-initialize-delay :version "28.1") (defvar auto-save--timer nil "Timer for `auto-save-visited-mode'.") -------- In GNU Emacs 28.0.50 (build 1, aarch64-unknown-linux-gnu, GTK+ Version 3.24.25, cairo version 1.16.0) of 2021-07-16 built on phoebe Repository revision: 865535a24cd07efee3c2d323de6e9baae8bc817d Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101001 System Description: Ubuntu 21.04 Configured using: 'configure --prefix=/home/naofumi/.local/emacs-head --with-mailutils --with-native-compilation --with-xwidgets' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: ja_JP.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source eieio eieio-core eieio-loaddefs password-cache json map text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils comp comp-cstr warnings subr-x rx cl-seq cl-macs cl-extra help-mode seq byte-opt gv cl-loaddefs cl-lib bytecomp byte-compile cconv iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads xwidget-internal dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 73557 8376) (symbols 48 7820 1) (strings 32 21016 3598) (string-bytes 1 690372) (vectors 16 17084) (vector-slots 8 281899 11071) (floats 8 27 36) (intervals 56 218 0) (buffers 992 12))