From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Skipping unexec via a big .elc file Date: Fri, 16 Dec 2016 15:22:23 +0100 Organization: not if I can help it Message-ID: <8737ho3qe8.fsf@gmail.com> References: <8360ojpndr.fsf@gnu.org> <83shrnm0k1.fsf@gnu.org> <075B0922-F07A-4FBA-AE71-027E964A5ED4@raeburn.org> <54AAC13A-CF56-4393-A932-DC6CBBF51259@raeburn.org> <3CC6BB36-1794-4202-8243-132E0345B236@raeburn.org> <52BDCC33-546C-4F47-A230-00EBC813B038@raeburn.org> <15CF14CC-C7DE-44BA-AC7D-F0BF1F160979@raeburn.org> <9463F91F-DB82-48E1-BE01-1E2BC8DA0766@raeburn.org> <5b39d866-16ea-8cf1-f25e-6bfc3304ac2a@cornell.edu> <16B1EC9C-9BF7-432E-BE42-154740B04679@raeburn.org> <00AE6236-2C0B-4E2A-8A53-16A5C42D41A9@raeburn.org> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1481898167 17805 195.159.176.226 (16 Dec 2016 14:22:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2016 14:22:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 16 15:22:42 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHtPE-0003eR-BH for ged-emacs-devel@m.gmane.org; Fri, 16 Dec 2016 15:22:40 +0100 Original-Received: from localhost ([::1]:60791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHtPI-00012A-Jy for ged-emacs-devel@m.gmane.org; Fri, 16 Dec 2016 09:22:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHtPA-0000vA-D1 for emacs-devel@gnu.org; Fri, 16 Dec 2016 09:22:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHtP7-0007ma-OZ for emacs-devel@gnu.org; Fri, 16 Dec 2016 09:22:36 -0500 Original-Received: from [195.159.176.226] (port=41546 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cHtP7-0007lq-Eu for emacs-devel@gnu.org; Fri, 16 Dec 2016 09:22:33 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cHtOy-0001Wj-KX for emacs-devel@gnu.org; Fri, 16 Dec 2016 15:22:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 134 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:mNwerwNJLrC9YagDXBkFxryCCbo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:210511 Archived-At: Ken Raeburn writes: > Branch scratch/raeburn-startup deleted and re-pushed. > > In addition to the changes I mentioned earlier, I found an unnecessary > memset in the face reinitialization code that could go, and an > initialization form was being emitted that tried to incorporate the > obarray by value (which wouldn’t work because the symbol chains don’t > all get dumped); omitting the latter for now cuts the file size a > percent or so. Hmm, it crashes for me when doing a bootstrap on GNU/Linux Mint (based on Ubuntu 16.04) /bin/bash: line 1: 21979 Aborted EMACSLOADPATH= '../src/emacs' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' -f batch-byte-compile calc/calcalg2.el Makefile:282: recipe for target 'calc/calcalg2.elc' failed Backtrace (this is compiled -ggdb -O0 with gcc 5.4.0) (gdb) bt #0 terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:367 #1 0x00000000005866d3 in emacs_abort () at sysdep.c:2337 #2 0x000000000057100d in unblock_input_to (level=-1) at keyboard.c:7170 #3 0x0000000000571024 in unblock_input () at keyboard.c:7186 #4 0x0000000000639605 in read1 (readcharfun=25152, pch=0x7fffffff719c, first_in_list=false) at lread.c:3446 #5 0x000000000063a906 in read_list (flag=false, readcharfun=25152) at lread.c:3928 #6 0x00000000006371e9 in read1 (readcharfun=25152, pch=0x7fffffff7514, first_in_list=false) at lread.c:2629 #7 0x0000000000636336 in read0 (readcharfun=25152) at lread.c:2210 #8 0x00000000006361fb in read_internal_start (stream=25152, start=0, end=0) at lread.c:2176 #9 0x0000000000635ef2 in Fread (stream=25152) at lread.c:2110 #10 0x000000000060748d in Ffuncall (nargs=2, args=0x7fffffff76b0) at eval.c:2715 #11 0x0000000000606d54 in call1 (fn=39792, arg1=25152) at eval.c:2574 #12 0x00000000006358a5 in readevalloop (readcharfun=25152, stream=0x19bc7a0, sourcename=26993220, printflag=false, unibyte=0, readfun=0, start=0, end=0) at lread.c:1958 #13 0x0000000000633fed in Fload (file=10190276, noerror=0, nomessage=45216, nosuffix=0, must_suffix=45216) at lread.c:1367 #14 0x00000000006136d9 in Frequire (feature=4534752, filename=0, noerror=0) at fns.c:2894 #15 0x0000000000607516 in Ffuncall (nargs=2, args=0x7fffffff7ae8) at eval.c:2722 #16 0x000000000064e9ef in exec_byte_code (bytestr=26973012, vector=22861437, maxdepth=10, args_template=0, nargs=0, args=0x0) at bytecode.c:639 #17 0x000000000064dd56 in Fbyte_code (bytestr=26973012, vector=22861437, maxdepth=10) at bytecode.c:319 #18 0x0000000000605f02 in eval_sub (form=26933523) at eval.c:2194 #19 0x00000000006359c3 in readevalloop (readcharfun=25152, stream=0x18c7190, sourcename=26972436, printflag=false, unibyte=0, readfun=0, start=0, end=0) at lread.c:1980 #20 0x0000000000633fed in Fload (file=26802292, noerror=0, nomessage=45216, nosuffix=0, must_suffix=45216) at lread.c:1367 #21 0x00000000006136d9 in Frequire (feature=13579232, filename=0, noerror=0) at fns.c:2894 #22 0x0000000000607516 in Ffuncall (nargs=2, args=0x7fffffff8518) at eval.c:2722 #23 0x00000000006063fa in Fapply (nargs=2, args=0x7fffffff8518) at eval.c:2300 #24 0x000000000060735d in Ffuncall (nargs=3, args=0x7fffffff8510) at eval.c:2695 #25 0x000000000064e9ef in exec_byte_code (bytestr=25727860, vector=22453597, maxdepth=38, args_template=1030, nargs=1, args=0x7fffffff8a78) at bytecode.c:639 #26 0x0000000000607dd8 in funcall_lambda (fun=22453765, nargs=1, arg_vector=0x7fffffff8a70) at eval.c:2879 #27 0x00000000006077ae in Ffuncall (nargs=2, args=0x7fffffff8a68) at eval.c:2764 #28 0x000000000064e9ef in exec_byte_code (bytestr=25715156, vector=22445469, maxdepth=18, args_template=1030, nargs=1, args=0x7fffffff8f60) at bytecode.c:639 #29 0x0000000000607dd8 in funcall_lambda (fun=22445517, nargs=1, arg_vector=0x7fffffff8f58) at eval.c:2879 #30 0x00000000006077ae in Ffuncall (nargs=2, args=0x7fffffff8f50) at eval.c:2764 #31 0x000000000064e9ef in exec_byte_code (bytestr=25714756, vector=22445325, maxdepth=22, args_template=1030, nargs=1, args=0x7fffffff9438) at bytecode.c:639 #32 0x0000000000607dd8 in funcall_lambda (fun=22445373, nargs=1, arg_vector=0x7fffffff9430) at eval.c:2879 #33 0x00000000006077ae in Ffuncall (nargs=2, args=0x7fffffff9428) at eval.c:2764 #34 0x000000000064e9ef in exec_byte_code (bytestr=17023828, vector=22255765, maxdepth=42, args_template=2058, nargs=2, args=0x7fffffff9948) at bytecode.c:639 #35 0x0000000000607dd8 in funcall_lambda (fun=22255869, nargs=2, arg_vector=0x7fffffff9938) at eval.c:2879 #36 0x00000000006077ae in Ffuncall (nargs=3, args=0x7fffffff9930) at eval.c:2764 #37 0x000000000064e9ef in exec_byte_code (bytestr=25714692, vector=22433525, maxdepth=18, args_template=1030, nargs=1, args=0x7fffffff9e08) at bytecode.c:639 #38 0x0000000000607dd8 in funcall_lambda (fun=22445421, nargs=1, arg_vector=0x7fffffff9e00) at eval.c:2879 #39 0x00000000006077ae in Ffuncall (nargs=2, args=0x7fffffff9df8) at eval.c:2764 #40 0x000000000064e9ef in exec_byte_code (bytestr=25699108, vector=22436957, maxdepth=22, args_template=1030, nargs=1, args=0x7fffffffa330) at bytecode.c:639 #41 0x0000000000607dd8 in funcall_lambda (fun=22433429, nargs=1, arg_vector=0x7fffffffa328) at eval.c:2879 #42 0x00000000006077ae in Ffuncall (nargs=2, args=0x7fffffffa320) at eval.c:2764 #43 0x000000000064e9ef in exec_byte_code (bytestr=25698596, vector=22437133, maxdepth=66, args_template=1030, nargs=1, args=0x7fffffffa978) at bytecode.c:639 #44 0x0000000000607dd8 in funcall_lambda (fun=22433477, nargs=1, arg_vector=0x7fffffffa970) at eval.c:2879 #45 0x00000000006077ae in Ffuncall (nargs=2, args=0x7fffffffa968) at eval.c:2764 #46 0x000000000064e9ef in exec_byte_code (bytestr=25677076, vector=22432581, maxdepth=66, args_template=2054, nargs=1, args=0x7fffffffb030) at bytecode.c:639 #47 0x0000000000607dd8 in funcall_lambda (fun=22429357, nargs=1, arg_vector=0x7fffffffb028) at eval.c:2879 #48 0x00000000006077ae in Ffuncall (nargs=2, args=0x7fffffffb020) at eval.c:2764 #49 0x000000000064e9ef in exec_byte_code (bytestr=25918004, vector=19599701, maxdepth=34, args_template=1030, nargs=1, args=0x7fffffffb578) at bytecode.c:639 #50 0x0000000000607dd8 in funcall_lambda (fun=19599829, nargs=1, arg_vector=0x7fffffffb570) at eval.c:2879 #51 0x00000000006077ae in Ffuncall (nargs=2, args=0x7fffffffb568) at eval.c:2764 #52 0x000000000064e9ef in exec_byte_code (bytestr=25917348, vector=20758333, maxdepth=42, args_template=1026, nargs=0, args=0x7fffffffbb58) at bytecode.c:639 #53 0x0000000000607dd8 in funcall_lambda (fun=20758493, nargs=0, arg_vector=0x7fffffffbb58) at eval.c:2879 #54 0x00000000006077ae in Ffuncall (nargs=1, args=0x7fffffffbb50) at eval.c:2764 #55 0x000000000064e9ef in exec_byte_code (bytestr=10932540, vector=10932573, maxdepth=94, args_template=1030, nargs=1, args=0x7fffffffc4e8) at bytecode.c:639 #56 0x0000000000607dd8 in funcall_lambda (fun=10932493, nargs=1, arg_vector=0x7fffffffc4e0) at eval.c:2879 #57 0x00000000006077ae in Ffuncall (nargs=2, args=0x7fffffffc4d8) at eval.c:2764 #58 0x000000000064e9ef in exec_byte_code (bytestr=10909516, vector=10909549, maxdepth=86, args_template=2, nargs=0, args=0x7fffffffd108) at bytecode.c:639 #59 0x0000000000607dd8 in funcall_lambda (fun=10909469, nargs=0, arg_vector=0x7fffffffd108) at eval.c:2879 #60 0x00000000006077ae in Ffuncall (nargs=1, args=0x7fffffffd100) at eval.c:2764 #61 0x000000000064e9ef in exec_byte_code (bytestr=10905556, vector=10905589, maxdepth=50, args_template=2, nargs=0, args=0x7fffffffd6f0) at bytecode.c:639 #62 0x0000000000607dd8 in funcall_lambda (fun=10905509, nargs=0, arg_vector=0x7fffffffd6f0) at eval.c:2879 #63 0x0000000000607b46 in apply_lambda (fun=10905509, args=0, count=4) at eval.c:2816 #64 0x000000000060607e in eval_sub (form=19109027) at eval.c:2233 #65 0x0000000000605572 in Feval (form=19109027, lexical=0) at eval.c:2010 #66 0x00000000005644f6 in top_level_2 () at keyboard.c:1127 #67 0x0000000000603fbd in internal_condition_case (bfun=0x5644d3 , handlers=19536, hfun=0x563f70 ) at eval.c:1314 #68 0x0000000000564537 in top_level_1 (ignore=0) at keyboard.c:1135 #69 0x00000000006038cc in internal_catch (tag=46608, func=0x5644f8 , arg=0) at eval.c:1080 #70 0x000000000056442b in command_loop () at keyboard.c:1096 #71 0x0000000000563b55 in recursive_edit_1 () at keyboard.c:703 #72 0x0000000000563ccc in Frecursive_edit () at keyboard.c:774 #73 0x0000000000561951 in main (argc=9, argv=0x7fffffffdc38) at emacs.c:1698 Lisp Backtrace: "read" (0xffff76b8) "require" (0xffff7af0) "byte-code" (0xffff7f20) "require" (0xffff8520) "apply" (0xffff8518) "byte-compile-file-form-require" (0xffff8a70) "byte-compile-file-form" (0xffff8f58) 0x1567d38 PVEC_COMPILED "byte-compile-recurse-toplevel" (0xffff9938) "byte-compile-toplevel-file-form" (0xffff9e00) 0x1564e90 PVEC_COMPILED "byte-compile-from-buffer" (0xffffa970) "byte-compile-file" (0xffffb028) "batch-byte-compile-file" (0xffffb570) "batch-byte-compile" (0xffffbb58) "command-line-1" (0xffffc4e0) "command-line" (0xffffd108) "normal-top-level" (0xffffd6f0) (gdb)