From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Date: Sun, 18 Apr 2021 03:00:17 +1200 Message-ID: <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19497"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: jonas@bernoul.li, wilde@sha-bang.de, 47800@debbugs.gnu.org, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 17 17:02:13 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 1lXmSb-0004zZ-M1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Apr 2021 17:02:13 +0200 Original-Received: from localhost ([::1]:58262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXmSa-0003zo-No for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Apr 2021 11:02:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXmRZ-0003yp-24 for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 11:01:10 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60840) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXmRS-0007tm-9n for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 11:01:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXmRS-0002TG-8p for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 11:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 15:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47800 X-GNU-PR-Package: emacs Original-Received: via spool by 47800-submit@debbugs.gnu.org id=B47800.16186716269431 (code B ref 47800); Sat, 17 Apr 2021 15:01:02 +0000 Original-Received: (at 47800) by debbugs.gnu.org; 17 Apr 2021 15:00:26 +0000 Original-Received: from localhost ([127.0.0.1]:44152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXmQs-0002Rx-Cm for submit@debbugs.gnu.org; Sat, 17 Apr 2021 11:00:26 -0400 Original-Received: from smtp-1.orcon.net.nz ([60.234.4.34]:57353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXmQp-0002Rj-7r; Sat, 17 Apr 2021 11:00:23 -0400 Original-Received: from [101.53.216.162] (port=14615 helo=[192.168.20.103]) by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lXmQk-0004W5-Bu; Sun, 18 Apr 2021 03:00:18 +1200 In-Reply-To: <8335vpvva8.fsf@gnu.org> Content-Language: en-GB X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- 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:204215 Archived-At: On 18/04/21 2:29 am, Eli Zaretskii wrote: > How about now? This time it compiled; but with the following warnings, and when I run it from the installed location (whether using the absolute path or a symlink) I get a seg fault / core dump: $ /home/phil/emacs/native-comp/usr/local/bin/emacs --version Segmentation fault (core dumped) Running the uninstalled version works: $ ./src/emacs --version GNU Emacs 28.0.50 Copyright (C) 2021 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. -Phil (finished for the night, but can test more tomorrow) CC emacs.o In function ‘load_pdump’, inlined from ‘main’ at emacs.c:1289:5: emacs.c:920:13: warning: argument 1 null where non-null expected [-Wnonnull] 920 | needed += strlen (strip_suffix) - strlen (suffix) + strlen (go_up); | ^~~~~~~~~~~~~~~~~~~~~ In file included from ../lib/string.h:41, from lisp.h:29, from emacs.c:33: emacs.c: In function ‘main’: /usr/include/string.h:384:15: note: in a call to function ‘strlen’ declared here 384 | extern size_t strlen (const char *__s) | ^~~~~~ In file included from /usr/include/stdio.h:862, from ../lib/stdio.h:43, from lisp.h:4731, from emacs.c:33: In function ‘sprintf’, inlined from ‘load_pdump’ at emacs.c:927:3, inlined from ‘main’ at emacs.c:1289:5: /usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 33 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 34 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~