From unknown Sun Jun 22 22:41:39 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#35253 <35253@debbugs.gnu.org> To: bug#35253 <35253@debbugs.gnu.org> Subject: Status: emacs-27.0.50_2019-01-17; `-nw' option causes core dump Reply-To: bug#35253 <35253@debbugs.gnu.org> Date: Mon, 23 Jun 2025 05:41:39 +0000 retitle 35253 emacs-27.0.50_2019-01-17; `-nw' option causes core dump reassign 35253 emacs submitter 35253 Atsuo Ohki severity 35253 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 12 22:51:19 2019 Received: (at submit) by debbugs.gnu.org; 13 Apr 2019 02:51:19 +0000 Received: from localhost ([127.0.0.1]:57407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hF8lD-0006Wl-AN for submit@debbugs.gnu.org; Fri, 12 Apr 2019 22:51:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hF8aW-0006Gv-MM for submit@debbugs.gnu.org; Fri, 12 Apr 2019 22:40:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:56340) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hF8aR-0002sI-FN for submit@debbugs.gnu.org; Fri, 12 Apr 2019 22:40:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hF8aQ-0001sW-1a for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2019 22:40:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hF8aP-0002nz-0A for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2019 22:40:10 -0400 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:39279) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hF8aO-0002n6-Ie for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2019 22:40:08 -0400 Received: by mail-pl1-x643.google.com with SMTP id a96so5968720pla.6 for ; Fri, 12 Apr 2019 19:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:from:cc:to:subject:mime-version :content-transfer-encoding:date; bh=X23KO6XdGvmG0dhxBHqEv7fGwrIQdeCivwEMphI09so=; b=IQ8rW6RgYm/dUysV0jYUQf0QKucdOG3pE/+5rhKMgO01tyVsbx9YkEeV1fbUNFjeNc jl2v4OKJZC4OUGN9JL3kH09yIFmV+BVju13sq49T1JCBZi8d/aFNlxjh3WT5ivBAXNNh Nqfiqt5cqPFJxT47Kn9Y6UNtANQquEzzQpuJN5zNu3CJmRbVNFCPjL5457HEddGopI5s EKhnpG+sdbRDw0hV3Y9q/qEvwKYe7f8h5mIRwvW+5WTpU7fmD+MO1TCMuVYy/VnP7qY4 uIklsTcD9nWVKucjBKeMaLpq4ljLQ+SQaV7gaViWknhk8optRWVMI6FwUgRgmylHIsk4 wyQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:from:cc:to:subject:mime-version :content-transfer-encoding:date; bh=X23KO6XdGvmG0dhxBHqEv7fGwrIQdeCivwEMphI09so=; b=EMWrS1teNr+UkcDeoQW9eEUPefsNnZD+meRJ9jaB3D4opPqIDf+hln1d2V/2XQVd1K L8JFRNPcpF7h+Yn9lHNlIFxxlgbVQQE3W58k/nk9nWxsSngcstad+9JiVdC2+157JCBL xamRGAvfNYDWaI8hwxIwhH7j1eoUZcVjD+aTtS3yar660mnNBvu6j7r10+zYqngxEUTH gjp5Wy3orBFEziGxwmONvyOVexDjYox5DQwJzMHSvJsk8DkYqI+DsEs+V9owIhDgSspr 2PFC1RftP7L56ErL9hRRSOzmva0ChQrnbxTUJuC5airt3I2HDX6A353fmLXzplUOa8Rw M6wg== X-Gm-Message-State: APjAAAWjVRfZsECJaiAXi/vnj9wrJ3MCd1G0xA4kLf8GGgotPZr8HxQm zy6dZSIy/U0wQxHgNahdeiA= X-Google-Smtp-Source: APXvYqy2voRGzE+r0PozDiwogdfGdspUD8gks4c1ZbXKOE5SiqHvrB5iCVbyFa+V3NcV6t8a6Ppjzw== X-Received: by 2002:a17:902:4681:: with SMTP id p1mr60627081pld.42.1555123206430; Fri, 12 Apr 2019 19:40:06 -0700 (PDT) Received: from localhost (w0109-49-135-72-57.uqwimax.jp. [49.135.72.57]) by smtp.gmail.com with ESMTPSA id z14sm65342636pfn.161.2019.04.12.19.40.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Apr 2019 19:40:05 -0700 (PDT) Message-ID: <5cb14c05.1c69fb81.32f94.b343@mx.google.com> From: Atsuo Ohki To: bug-gnu-emacs@gnu.org Subject: emacs-27.0.50_2019-01-17; `-nw' option causes core dump Mime-Version: 1.0 Content-Type: text/plain;charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Date: Sat, 13 Apr 2019 11:40:02 +0900 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::643 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 12 Apr 2019 22:51:18 -0400 Cc: ohki1701g@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) emacs-27.0.50_2019-01-17 built with following configuration dumps core (segmentaion fault), when `-nw' option is specified. When built it with `--with-pdumper=no --with-dumping=unexec' configuration options, it works fine with `-nw' option. I suspected the reinitialization after loading a pdmp file is inadequate, and found the next patch fixes the problem. --- src/coding.c-ORIG 2019-01-17 19:31:05.000000000 +0900 +++ src/coding.c 2019-04-13 10:53:04.819899000 +0900 @@ -11341,4 +11341,5 @@ setup_coding_system (CODING_ID_NAME (id), this); } } + setup_coding_system (Qno_conversion, &safe_terminal_coding); } #------------------------------------------------------------------------ In GNU Emacs 27.0.50 (build 1, x86_64-pc-freebsd11, X toolkit, Xaw3d scroll bars) of 2019-04-13 built on hz550 System Description: 11.2-STABLE Recent messages: Loading /usr/local/share/emacs/site-lisp/site-start-27.x.el (source)...done Waiting for git... [2 times] For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure amd64-freebsd11 --srcdir=/usr/src/local/GNU/emacs/emacs-27.0.50 --with-x --x-includes=/usr/local/include --x-libraries=/usr/local/lib --with-x-toolkit=lucid --without-xim --with-modules --without-pop --without-xpm --without-jpeg --without-tiff --without-gif --without-png --without-rsvg --without-imagemagick --without-gpm --without-dbus --without-gconf --without-gsettings --without-selinux --without-sound --without-gnutls LDFLAGS=-L/usr/local/lib' Configured features: XAW3D NOTIFY KQUEUE ACL LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS CANNOT_DUMP LCMS2 GMP Important settings: locale-coding-system: nil Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t mouse-wheel-mode: t file-name-shadow-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-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 easymenu mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs 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 elec-pair tramp tramp-loaddefs trampver tramp-compat ucs-normalize shell pcomplete comint ansi-color ring parse-time format-spec advice auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib japan-util ps-print ps-print-loaddefs ps-def lpr disp-table mule-util 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 menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 threads kqueue lcms2 dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 178146 7158) (symbols 48 8084 1) (strings 32 23697 2126) (string-bytes 1 790174) (vectors 16 31725) (vector-slots 8 421034 10170) (floats 8 275 289) (intervals 56 140 0) (buffers 992 11)) From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 13 02:41:34 2019 Received: (at 35253) by debbugs.gnu.org; 13 Apr 2019 06:41:34 +0000 Received: from localhost ([127.0.0.1]:57535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFCM1-0003oh-RG for submit@debbugs.gnu.org; Sat, 13 Apr 2019 02:41:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFCLz-0003oT-QQ for 35253@debbugs.gnu.org; Sat, 13 Apr 2019 02:41:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFCLu-0004F6-FS; Sat, 13 Apr 2019 02:41:26 -0400 Received: from [176.228.60.248] (port=1898 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hFCLt-0008Oa-Uk; Sat, 13 Apr 2019 02:41:26 -0400 Date: Sat, 13 Apr 2019 09:41:11 +0300 Message-Id: <83bm1al854.fsf@gnu.org> From: Eli Zaretskii To: Atsuo Ohki In-reply-to: <5cb14c05.1c69fb81.32f94.b343@mx.google.com> (message from Atsuo Ohki on Sat, 13 Apr 2019 11:40:02 +0900) Subject: Re: bug#35253: emacs-27.0.50_2019-01-17; `-nw' option causes core dump References: <5cb14c05.1c69fb81.32f94.b343@mx.google.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35253 Cc: 35253@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Atsuo Ohki > Date: Sat, 13 Apr 2019 11:40:02 +0900 > Cc: ohki1701g@gmail.com > > > emacs-27.0.50_2019-01-17 built with following configuration dumps core > (segmentaion fault), when `-nw' option is specified. > > When built it with `--with-pdumper=no --with-dumping=unexec' > configuration options, it works fine with `-nw' option. > > I suspected the reinitialization after loading a pdmp file is > inadequate, and found the next patch fixes the problem. Thanks. Can you show the backtrace from the crash? Also, does "_2019-01-17" above mean that this is a Jan 2019 snapshot of the development sources? Because I think this problem was already reported and fixed since then, with this fragment at the end of coding.c in the current sources: /* In temacs the below is done by mule-conf.el, because we need to define us-ascii first. But in dumped Emacs us-ascii is restored by the above loop, and mule-conf.el will not be loaded, so we set it up now; otherwise safe_terminal_coding will remain zeroed. */ Fset_safe_terminal_coding_system_internal (Qus_ascii); From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 13 05:31:38 2019 Received: (at 35253-done) by debbugs.gnu.org; 13 Apr 2019 09:31:38 +0000 Received: from localhost ([127.0.0.1]:57974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFF0b-00084h-VE for submit@debbugs.gnu.org; Sat, 13 Apr 2019 05:31:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFF0a-00084V-Aa for 35253-done@debbugs.gnu.org; Sat, 13 Apr 2019 05:31:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFF0V-0001pB-3B; Sat, 13 Apr 2019 05:31:31 -0400 Received: from [176.228.60.248] (port=4582 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hFF0S-0005HU-U9; Sat, 13 Apr 2019 05:31:30 -0400 Date: Sat, 13 Apr 2019 12:31:14 +0300 Message-Id: <83zhoujlp9.fsf@gnu.org> From: Eli Zaretskii To: Atsuo Ohki In-reply-to: <5cb19e8c.1c69fb81.20d87.170f@mx.google.com> (message from Atsuo Ohki on Sat, 13 Apr 2019 17:32:10 +0900) Subject: Re: bug#35253: emacs-27.0.50_2019-01-17; `-nw' option causes core dump References: <5cb14c05.1c69fb81.32f94.b343@mx.google.com> <83bm1al854.fsf@gnu.org> <5cb19e8c.1c69fb81.20d87.170f@mx.google.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35253-done Cc: 35253-done@debbugs.gnu.org, ohki1701g@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Atsuo Ohki > Cc: Atsuo Ohki > Comments: In-reply-to Eli Zaretskii > message dated "Sat, 13 Apr 2019 09:41:11 +0300." > Date: Sat, 13 Apr 2019 17:32:10 +0900 > > > Also, does "_2019-01-17" above mean that this is a Jan 2019 snapshot > > of the development sources? Because I think this problem was already > > reported and fixed since then, with this fragment at the end of > > coding.c in the current sources: > > > > /* In temacs the below is done by mule-conf.el, because we need to > > define us-ascii first. But in dumped Emacs us-ascii is restored > > by the above loop, and mule-conf.el will not be loaded, so we set > > it up now; otherwise safe_terminal_coding will remain zeroed. */ > > Fset_safe_terminal_coding_system_internal (Qus_ascii); > > Thank you for an action. > > As you guess, I used a Jan 2019 snapshot of the development sources > got from http://alpha.gnu.org/gnu/emacs/pretest. > > A segmentation fault occurs in the function `encode_coding()', > when refering `coding->encoder' (`coding' is null at that point). > > So, I'm sure my bug report has already fixed. Thanks, I'm therefore closing this bug report. From unknown Sun Jun 22 22:41:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 11 May 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator