From unknown Sat Jun 21 10:13:33 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#2507 <2507@debbugs.gnu.org> To: bug#2507 <2507@debbugs.gnu.org> Subject: Status: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program Reply-To: bug#2507 <2507@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:13:33 +0000 retitle 2507 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid= program reassign 2507 emacs submitter 2507 Eli Zaretskii severity 2507 minor thanks From eliz@gnu.org Sat Feb 28 03:01:10 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 28 Feb 2009 11:01:10 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.1 required=4.0 tests=FOURLA,PUSSY autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1SB179i014291 for ; Sat, 28 Feb 2009 03:01:08 -0800 Received: from mx10.gnu.org ([199.232.76.166]:50434) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LdMu6-0001L5-6O for emacs-pretest-bug@gnu.org; Sat, 28 Feb 2009 05:58:46 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LdMwK-0003EO-9n for emacs-pretest-bug@gnu.org; Sat, 28 Feb 2009 06:01:05 -0500 Received: from mtaout1.012.net.il ([84.95.2.1]:45964) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LdMwJ-0003E4-SO for emacs-pretest-bug@gnu.org; Sat, 28 Feb 2009 06:01:04 -0500 Received: from conversion-daemon.i-mtaout1.012.net.il by i-mtaout1.012.net.il (HyperSendmail v2007.08) id <0KFR00900VN8QP00@i-mtaout1.012.net.il> for emacs-pretest-bug@gnu.org; Sat, 28 Feb 2009 13:01:41 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.167.119]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KFR00AX9VYSQS00@i-mtaout1.012.net.il> for emacs-pretest-bug@gnu.org; Sat, 28 Feb 2009 13:01:40 +0200 (IST) Date: Sat, 28 Feb 2009 13:01:07 +0200 From: Eli Zaretskii Subject: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program X-012-Sender: halo1@inter.net.il To: emacs-pretest-bug@gnu.org Reply-to: Eli Zaretskii Message-id: X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: strip emacs.exe emacs -Q results in the OS popping an error dialog saying: emacs.exe is not a valid Win32 application If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file d:/gnu/emacs/etc/DEBUG for instructions. In GNU Emacs 23.0.91.1 (i386-mingw-nt5.1.2600) of 2009-02-28 on HOME-C4E4A596F7 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1255 default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m a c s - b u Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. From eliz@gnu.org Sat Feb 28 04:15:15 2009 Received: (at 2507) by emacsbugs.donarmstrong.com; 28 Feb 2009 12:15:15 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.0 required=4.0 tests=HAS_BUG_NUMBER,PUSSY autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout1.012.net.il (mtaout1.012.net.il [84.95.2.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1SCFBoJ009114 for <2507@emacsbugs.donarmstrong.com>; Sat, 28 Feb 2009 04:15:13 -0800 Received: from conversion-daemon.i-mtaout1.012.net.il by i-mtaout1.012.net.il (HyperSendmail v2007.08) id <0KFR00300XB6NQ00@i-mtaout1.012.net.il> for 2507@emacsbugs.donarmstrong.com; Sat, 28 Feb 2009 14:14:50 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.167.119]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KFR004ENZCP0VB0@i-mtaout1.012.net.il> for 2507@emacsbugs.donarmstrong.com; Sat, 28 Feb 2009 14:14:50 +0200 (IST) Date: Sat, 28 Feb 2009 14:14:16 +0200 From: Eli Zaretskii Subject: Re: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program In-reply-to: X-012-Sender: halo1@inter.net.il To: 2507@debbugs.gnu.org Reply-to: Eli Zaretskii Message-id: References: > Date: Sat, 28 Feb 2009 13:01:07 +0200 > From: Eli Zaretskii > Cc: > > strip emacs.exe > emacs -Q > > results in the OS popping an error dialog saying: > > emacs.exe is not a valid Win32 application More info: building Emacs like this: make USER_LDFLAGS=-s install produces an already stripped emacs.exe that is 8548352 bytes large. So this should serve as a stop-gap in case we cannot easily find a cure for running `strip' on the dumped Emacs. One further idea to ponder is that the fact we now compile with DWARF-2 debug info is the reason for the problem with stripping the dumped Emacs. Can someone please try rebuilding with "-gstabs" instead of "-gdwarf-2 -g3", and see if that produces an emacs.exe which can be safely stripped? From rgm@gnu.org Sat Feb 28 16:52:44 2009 Received: (at control) by emacsbugs.donarmstrong.com; 1 Mar 2009 00:52:44 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.0 required=4.0 tests=VALID_BTS_CONTROL, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n210qfGH021286 for ; Sat, 28 Feb 2009 16:52:42 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LdZsq-0003VT-LX; Sat, 28 Feb 2009 19:50:20 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18857.56268.608351.997365@fencepost.gnu.org> Date: Sat, 28 Feb 2009 19:50:20 -0500 From: Glenn Morris To: control Subject: control message X-Debbugs-No-Ack: yes reassign 2505 spam reassign 2507 emacs,w32 reassign 2508 spam reassign 2509 spam reassign 2510 spam reassign 2511 spam reassign 2513 spam reassign 2516 spam reassign 2518 spam reassign 2519 spam From harald@maierh.de Sat Feb 28 22:01:51 2009 Received: (at 2507) by emacsbugs.donarmstrong.com; 1 Mar 2009 06:01:51 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.0 required=4.0 tests=HAS_BUG_NUMBER,PUSSY autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2161lOi003784 for <2507@emacsbugs.donarmstrong.com>; Sat, 28 Feb 2009 22:01:49 -0800 Received: from ate.maierh (p5498622F.dip.t-dialin.net [84.152.98.47]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1Ldejx15Vo-0006Au; Sun, 01 Mar 2009 07:01:29 +0100 Received: by ate.maierh (Postfix, from userid 501) id 345AA65D7F9; Sun, 1 Mar 2009 07:01:27 +0100 (CET) From: Harald Maier To: Eli Zaretskii Cc: 2507@debbugs.gnu.org Subject: Re: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program References: Date: Sun, 01 Mar 2009 07:01:27 +0100 In-Reply-To: (Eli Zaretskii's message of "Sat, 28 Feb 2009 14:14:16 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Provags-ID: V01U2FsdGVkX18WvLWJfb26TfHZK88z+ZNzBFiq1Pw3FlWcYIh K20QPmPyDz3uF8mefQy9WQRsNSvORDqOuXQP17QpsI66+CBv75 t9uW2Jk0GK7yiexYYCEig== Eli Zaretskii writes: >> Date: Sat, 28 Feb 2009 13:01:07 +0200 >> From: Eli Zaretskii >> Cc: >> >> strip emacs.exe >> emacs -Q >> >> results in the OS popping an error dialog saying: >> >> emacs.exe is not a valid Win32 application > > More info: building Emacs like this: > > make USER_LDFLAGS=-s install > > produces an already stripped emacs.exe that is 8548352 bytes large. > So this should serve as a stop-gap in case we cannot easily find a > cure for running `strip' on the dumped Emacs. > > One further idea to ponder is that the fact we now compile with > DWARF-2 debug info is the reason for the problem with stripping the > dumped Emacs. Can someone please try rebuilding with "-gstabs" > instead of "-gdwarf-2 -g3", and see if that produces an emacs.exe > which can be safely stripped? I tried the "-gstabs" debug info, but after stripping it didn't work too. But the output size of that compilation and linking is far smaller. Result: 12.55 MB (-gstabs) instead of 31.33 MB (-gdwarf2 -g3). Harald From eliz@gnu.org Sun Mar 1 09:15:44 2009 Received: (at 2507) by emacsbugs.donarmstrong.com; 1 Mar 2009 17:15:44 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.5 required=4.0 tests=HAS_BUG_NUMBER,PUSSY, RCVD_IN_NIX1 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout2.012.net.il (mtaout2.012.net.il [84.95.2.4]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n21HFfil014220 for <2507@emacsbugs.donarmstrong.com>; Sun, 1 Mar 2009 09:15:42 -0800 Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KFU006007EUPD00@i_mtaout2.012.net.il> for 2507@emacsbugs.donarmstrong.com; Sun, 01 Mar 2009 19:16:12 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.167.119]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KFU00EWZ7YKAEV0@i_mtaout2.012.net.il>; Sun, 01 Mar 2009 19:15:57 +0200 (IST) Date: Sun, 01 Mar 2009 19:15:24 +0200 From: Eli Zaretskii Subject: Re: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program In-reply-to: X-012-Sender: halo1@inter.net.il To: Harald Maier Cc: 2507@debbugs.gnu.org Reply-to: Eli Zaretskii Message-id: References: > From: Harald Maier > Cc: 2507@emacsbugs.donarmstrong.com > Date: Sun, 01 Mar 2009 07:01:27 +0100 > > > One further idea to ponder is that the fact we now compile with > > DWARF-2 debug info is the reason for the problem with stripping the > > dumped Emacs. Can someone please try rebuilding with "-gstabs" > > instead of "-gdwarf-2 -g3", and see if that produces an emacs.exe > > which can be safely stripped? > > I tried the "-gstabs" debug info, but after stripping it didn't work > too. Thanks for trying. > But the output size of that compilation and linking is far smaller. > > Result: 12.55 MB (-gstabs) instead of 31.33 MB (-gdwarf2 -g3). This is expected: DWARF-2 produces much more voluminous debug information (and thus enables several useful debugging features in GDB). Btw, the 32MB executable is only that large on disk; when you invoke it, the debug info is not read at all, so the memory footprint of a running Emacs is not affected. The debug info is read only by GDB when you run Emacs under the debugger. (I'm not saying that we should ignore this problem, just that it only matters for disk space and the size of the tarball.) From lekktu@gmail.com Mon Mar 2 03:55:23 2009 Received: (at 2507) by emacsbugs.donarmstrong.com; 2 Mar 2009 11:55:23 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.0 required=4.0 tests=HAS_BUG_NUMBER,PUSSY autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-ew0-f176.google.com (mail-ew0-f176.google.com [209.85.219.176]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n22BtJIS006118 for <2507@emacsbugs.donarmstrong.com>; Mon, 2 Mar 2009 03:55:21 -0800 Received: by ewy24 with SMTP id 24so2140378ewy.1 for <2507@emacsbugs.donarmstrong.com>; Mon, 02 Mar 2009 03:55:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=bnu9Zb8byEgE8T0LNbd2+5pCwKktvgYjQzq0a1dJx4o=; b=dkkW3cEVYIHC99ZPu7f9tZjj5nDvPtrnv+Lu2lxIpgS4dPVvbNHKlEj0Njmu/S+L+N o0YUvocgPPk9keNLdcRBKtL/ywxFXjQegAkCm+kvd1CR/veYJ0gTxHmfvmIyvupTkEh8 y12cEzTooWY63WZtfkm3PNPd6k9GfTPr/Ci1o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=k6T5rg60b3FzCVgpaqnbUc7A4um4w/rvLEuTW1KCSXUUEZwp8AyfMwqAdffwQjXsMR relt4+Nc6wOQSPOiOASi5yX+Zc2tUTzVNuG15C+FadNqFghwmb55aW9xriYDnttqQCzp lEVxMAAUpb9tFHRhg2r+Np1ritb3zbjGBP+pY= MIME-Version: 1.0 Received: by 10.210.33.3 with SMTP id g3mr3162831ebg.88.1235994914169; Mon, 02 Mar 2009 03:55:14 -0800 (PST) In-Reply-To: References: Date: Mon, 2 Mar 2009 12:55:14 +0100 Message-ID: Subject: Re: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program From: Juanma Barranquero To: Eli Zaretskii , 2507@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Sat, Feb 28, 2009 at 13:14, Eli Zaretskii wrote: > a cure for running `strip' on the dumped Emacs. AFAICS, the problem is not limited to the dumped Emacs. A stripped temacs.exe fails in the same way. Juanma From eliz@gnu.org Mon Mar 2 11:06:09 2009 Received: (at 2507) by emacsbugs.donarmstrong.com; 2 Mar 2009 19:06:09 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=GMAIL,HAS_BUG_NUMBER,PUSSY autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout6.012.net.il (mtaout6.012.net.il [84.95.2.16]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n22J65Zd020356 for <2507@emacsbugs.donarmstrong.com>; Mon, 2 Mar 2009 11:06:06 -0800 Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KFW000007I49A00@i-mtaout6.012.net.il> for 2507@emacsbugs.donarmstrong.com; Mon, 02 Mar 2009 21:06:37 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.248.57]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KFW009AJ7R0I801@i-mtaout6.012.net.il>; Mon, 02 Mar 2009 21:06:37 +0200 (IST) Date: Mon, 02 Mar 2009 21:05:57 +0200 From: Eli Zaretskii Subject: Re: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program In-reply-to: X-012-Sender: halo1@inter.net.il To: Juanma Barranquero Cc: 2507@debbugs.gnu.org Reply-to: Eli Zaretskii Message-id: References: > Date: Mon, 2 Mar 2009 12:55:14 +0100 > From: Juanma Barranquero > > On Sat, Feb 28, 2009 at 13:14, Eli Zaretskii wrote: > > > a cure for running `strip' on the dumped Emacs. > > AFAICS, the problem is not limited to the dumped Emacs. A stripped > temacs.exe fails in the same way. Probably because temacs.exe is a product of dumping temacs.bin. See src/makefile.w32-in. Here's the relevant fragment from a typical build session: "../nt/oo-spd/i386/addsection" "oo-spd/i386/temacs.bin" "oo-spd/i386/temacs.exe" EMHEAP 16 Dumping from oo-spd/i386/temacs.bin to oo-spd/i386/temacs.exe From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 24 14:23:37 2010 Received: (at control) by debbugs.gnu.org; 24 Jun 2010 18:23:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORr5N-00051L-8v for submit@debbugs.gnu.org; Thu, 24 Jun 2010 14:23:37 -0400 Received: from pantheon-po41.its.yale.edu ([130.132.50.98]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORr5K-00051G-K0 for control@debbugs.gnu.org; Thu, 24 Jun 2010 14:23:35 -0400 Received: from furry (dhcp128036014221.central.yale.edu [128.36.14.221]) (authenticated bits=0) by pantheon-po41.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o5OINUI2013527 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 24 Jun 2010 14:23:30 -0400 Received: by furry (Postfix, from userid 1000) id 5BF4B16D416; Thu, 24 Jun 2010 20:23:29 +0200 (CEST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 1382 Date: Thu, 24 Jun 2010 14:23:29 -0400 Message-ID: <87r5jw5ly6.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) severity 135 minor tags 710 + moreinfo unreproducible close 756 tags 844 + moreinfo unreproducible close 917 close 1000 tags 1125 + moreinfo unreproducible close 1159 severity 1238 wishlist close 1247 close 1381 close 1382 tags 1708 + moreinfo unreproducible close 1993 severity 2024 wishlist close 2236 severity 2299 wishlist tags 2394 + moreinfo unreproducible severity 2507 minor close 2583 tags 2690 + moreinfo unreproducible tags 2812 + moreinfo unreproducible tags 2843 + moreinfo unreproducible tags 2870 + moreinfo unreproducible tags 2877 + moreinfo unreproducible close 3032 close 3273 close 3349 close 4046 close 4358 close 4591 close 4656 thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 09:58:20 2011 Received: (at 2507) by debbugs.gnu.org; 11 Jul 2011 13:58:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgH08-0007SX-F1 for submit@debbugs.gnu.org; Mon, 11 Jul 2011 09:58:20 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgH05-0007Rx-Ce for 2507@debbugs.gnu.org; Mon, 11 Jul 2011 09:58:18 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QgGzm-000119-K7; Mon, 11 Jul 2011 15:57:58 +0200 From: Lars Magne Ingebrigtsen To: Eli Zaretskii Subject: Re: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program In-Reply-To: (Eli Zaretskii's message of "Sat, 28 Feb 2009 13:01:07 +0200") Date: Mon, 11 Jul 2011 15:53:45 +0200 Message-ID: References: User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Wire's _Red Barked Tree_: "Clay" X-Hashcash: 1:23:110711:2507@debbugs.gnu.org::iE2zBsXqqwNvn4JR:000000000000000000000000000000000000000007OGi X-Hashcash: 1:23:110711:eliz@gnu.org::4NvCiMUc/tdHETI4:000009vX+ MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1QgGzm-000119-K7 X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1310997479.43485@pUC4EGmUmfyl8gEhEyx2Rg X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 2507 Cc: 2507@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Eli Zaretskii writes: > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > strip emacs.exe > emacs -Q > > results in the OS popping an error dialog saying: > > emacs.exe is not a valid Win32 application Presumably Emacs doesn't strip itself, otherwise it wouldn't work at all on Windows, which it apparently does. :-) So it this still a problem? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 10:13:16 2011 Received: (at 2507) by debbugs.gnu.org; 11 Jul 2011 14:13:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgHEa-0000Fe-2T for submit@debbugs.gnu.org; Mon, 11 Jul 2011 10:13:16 -0400 Received: from mail-pz0-f44.google.com ([209.85.210.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgHER-0000Eq-6k for 2507@debbugs.gnu.org; Mon, 11 Jul 2011 10:13:14 -0400 Received: by pzk5 with SMTP id 5so3374311pzk.3 for <2507@debbugs.gnu.org>; Mon, 11 Jul 2011 07:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=H0g4BFKOoV7fe0+H/PuOX6HrsYFoL/47wRuFWB232yo=; b=DqcFbYkjN+02VNwAJYe6QEY4E40u7aPBbd8jMxpadFgVpJp20LbkF8qeoAKtfUOMhh onyrdz5g3zzJSCWCG+W0BOt6m2tuBZSPECnR+aBPfu02S1Axoc6n7Yfx2FUvbQCB6hlC fMYIHj2LR2FXD/Ow/fJVIO0+r+qAXQZgPLiEI= Received: by 10.68.14.202 with SMTP id r10mr8023883pbc.492.1310393581130; Mon, 11 Jul 2011 07:13:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.144.4 with HTTP; Mon, 11 Jul 2011 07:12:20 -0700 (PDT) In-Reply-To: References: From: Juanma Barranquero Date: Mon, 11 Jul 2011 16:12:20 +0200 Message-ID: Subject: Re: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program To: Lars Magne Ingebrigtsen Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 2507 Cc: Eli Zaretskii , 2507@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) On Mon, Jul 11, 2011 at 15:53, Lars Magne Ingebrigtsen wro= te: > So it this still a problem? It still happens, yes. =C2=A0 =C2=A0 Juanma From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 12:01:31 2011 Received: (at 2507) by debbugs.gnu.org; 11 Jul 2011 16:01:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgIvK-0001Hv-Il for submit@debbugs.gnu.org; Mon, 11 Jul 2011 12:01:30 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgIvH-0001HY-Tr for 2507@debbugs.gnu.org; Mon, 11 Jul 2011 12:01:29 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LO600M00F3WIT00@a-mtaout21.012.net.il> for 2507@debbugs.gnu.org; Mon, 11 Jul 2011 19:01:21 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.156.102]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LO600MNVF65GA60@a-mtaout21.012.net.il>; Mon, 11 Jul 2011 19:01:18 +0300 (IDT) Date: Mon, 11 Jul 2011 19:03:20 +0300 From: Eli Zaretskii Subject: Re: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program In-reply-to: X-012-Sender: halo1@inter.net.il To: Lars Magne Ingebrigtsen Message-id: <83y604n6t3.fsf@gnu.org> References: X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 2507 Cc: 2507@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Lars Magne Ingebrigtsen > Cc: 2507@debbugs.gnu.org > Date: Mon, 11 Jul 2011 15:53:45 +0200 > > Eli Zaretskii writes: > > > Please describe exactly what actions triggered the bug > > and the precise symptoms of the bug: > > > > strip emacs.exe > > emacs -Q > > > > results in the OS popping an error dialog saying: > > > > emacs.exe is not a valid Win32 application > > Presumably Emacs doesn't strip itself, otherwise it wouldn't work at all > on Windows, which it apparently does. :-) The default link command produces an unstripped binary, as on other supported platforms. > So it this still a problem? Yes, of course. No one did anything about this problem, AFAIK. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 12:10:08 2011 Received: (at 2507) by debbugs.gnu.org; 11 Jul 2011 16:10:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgJ3g-0001Y3-77 for submit@debbugs.gnu.org; Mon, 11 Jul 2011 12:10:08 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgJ3b-0001XM-DR for 2507@debbugs.gnu.org; Mon, 11 Jul 2011 12:10:04 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QgJ3P-00085N-Dj; Mon, 11 Jul 2011 18:09:51 +0200 From: Lars Magne Ingebrigtsen To: Eli Zaretskii Subject: Re: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program In-Reply-To: <83y604n6t3.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 11 Jul 2011 19:03:20 +0300") Date: Mon, 11 Jul 2011 18:09:41 +0200 Message-ID: References: <83y604n6t3.fsf@gnu.org> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXHvbxvZGL+/v7q5uiB eXcSCwpEOTejlpO+rYSxAAACYUlEQVQ4jW2TQW8aMRCF3ZjU17VqvFcUKnFdZUm5YtXga1aKnSvb YHM1Yln//Y7Hi5KizmXFfH4zfjOGPN3Fsm0JRCJ3+W/e1f8DCwtxAsD+BctrBjamewUKQJLiHdhY 5wG8T2DZ3PAvJ4z01jEstYBDb88IHp0gjba2NN/lst1DBlcXqrH3NmawKg1fM/DhWCmotQXQvhTg EJxqwtTcHsAJ9wXYBwTZ9Q6BtV/A/EjEtrnaCkH4BNcuRsp2BbjjPNzAS5eGyPb2gor38TRYKzNY dUYYsnctKk4s0Xk3Q4tS6Eiur00GnWGRXk8Jrf/swVugGfhOpEjHD1bm7sTgf+ASvdOJtOlQTQCG ThEEt+eXhuz/FBDCqZ2A5ZHQ5vGh9Dhu2xvwABoyK4I9JHM0WQEXIYRinlF8P1MpVycEyyal+PQE aQZmCAxXcQSblIYUocygOZSHDQ+cNABS0klpCKM4r2FW3VlHAAsQ6JRDCcUFKDoOoH1ezTDJuTBc SU6kSxxm0rZrbaAYhlJcEi7rBA7bRmozYFpoyEsC4r4eklZJ99N5LbjsSQg1HuShNwa+5Qf00EqG wKElLEJPoTIwiWAwOHCYAM8gTI8kcEO/nycgAHzG4A/qi8KFEt71lNV4XQU34YSBqWw5tsyHsfQW GfSiqKXv6boSWmR/GQy8hCEb/zEOnwDuT3KpQXZ0BIXKvXNzCSvMzfu48dVY7KFiS8qK2f6t2f1W qtzWcXL737hqHS47rlCRAawCzsOmz8dGXgY83wcn4ZVAj6yo1x2ZQ3OlYaoADI4jK95mPUVPGfR/ AbA8+OgTiegrAAAAAElFTkSuQmCC X-Now-Playing: Tegan and Sara's _Sainthood_: "Sentimental Tune" X-Hashcash: 1:23:110711:eliz@gnu.org::iGOKTniduKfzKNcl:000000H3n X-Hashcash: 1:23:110711:2507@debbugs.gnu.org::tsy6jyX4zr8P7xR3:00000000000000000000000000000000000000000jZQ3 MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1QgJ3P-00085N-Dj X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311005392.22585@5XcYlivinR9obGlz81cWsw X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 2507 Cc: 2507@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Eli Zaretskii writes: > Yes, of course. No one did anything about this problem, AFAIK. Is it something that should be done anything about, though? Is stripping the binary something that you'd want to do? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 12:20:51 2011 Received: (at 2507) by debbugs.gnu.org; 11 Jul 2011 16:20:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgJE3-0002dU-Lq for submit@debbugs.gnu.org; Mon, 11 Jul 2011 12:20:51 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgJE1-0002dG-6k for 2507@debbugs.gnu.org; Mon, 11 Jul 2011 12:20:50 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LO600300G0OZL00@a-mtaout22.012.net.il> for 2507@debbugs.gnu.org; Mon, 11 Jul 2011 19:20:42 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.156.102]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LO6003JGG2H7IE0@a-mtaout22.012.net.il>; Mon, 11 Jul 2011 19:20:42 +0300 (IDT) Date: Mon, 11 Jul 2011 19:22:44 +0300 From: Eli Zaretskii Subject: Re: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program In-reply-to: X-012-Sender: halo1@inter.net.il To: Lars Magne Ingebrigtsen Message-id: <83sjqcn5wr.fsf@gnu.org> References: <83y604n6t3.fsf@gnu.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 2507 Cc: 2507@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Lars Magne Ingebrigtsen > Cc: 2507@debbugs.gnu.org > Date: Mon, 11 Jul 2011 18:09:41 +0200 > > Eli Zaretskii writes: > > > Yes, of course. No one did anything about this problem, AFAIK. > > Is it something that should be done anything about, though? Yes. > Is stripping the binary something that you'd want to do? Yes. For shipping a an official release's binaries, for example. Or for taking Emacs on a small mobile device. The unstripped binary measures 37MB on Windows, most of which is DWARF2 debug info. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 15:36:57 2011 Received: (at 2507) by debbugs.gnu.org; 11 Jul 2011 19:36:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgMHp-00027t-7o for submit@debbugs.gnu.org; Mon, 11 Jul 2011 15:36:57 -0400 Received: from mail-iy0-f172.google.com ([209.85.210.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgMHn-00027i-PJ for 2507@debbugs.gnu.org; Mon, 11 Jul 2011 15:36:56 -0400 Received: by iye7 with SMTP id 7so3999609iye.3 for <2507@debbugs.gnu.org>; Mon, 11 Jul 2011 12:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=junFUFzhdsb6DzkCSpq8RzzYG/bovB/thDiFIa9n8vE=; b=cIdtxm265FPVpBu6+VGofKgkvJgVIHJ3cJHXtVxHX05rGnNEq+xiYzLyG7/9jtVkSn 4TvKTCb2aG3yS+7hz1luP0JwBMZJw2BfyIaIHCZm9SpXZ46bX/mcqV82m8iMyeFjT7er yVWhn1To0o/cTlOfvjApW89XNdCEt16VloBxg= Received: by 10.143.90.11 with SMTP id s11mr346747wfl.366.1310413009122; Mon, 11 Jul 2011 12:36:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.144.4 with HTTP; Mon, 11 Jul 2011 12:36:09 -0700 (PDT) In-Reply-To: <83sjqcn5wr.fsf@gnu.org> References: <83y604n6t3.fsf@gnu.org> <83sjqcn5wr.fsf@gnu.org> From: Juanma Barranquero Date: Mon, 11 Jul 2011 21:36:09 +0200 Message-ID: Subject: Re: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 2507 Cc: Lars Magne Ingebrigtsen , 2507@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) On Mon, Jul 11, 2011 at 18:22, Eli Zaretskii wrote: > The unstripped binary > measures 37MB on Windows Or more. Mine is at ~42 MiB unstripped, ~10 MiB stripped (but I doesn't work, of course). =C2=A0 =C2=A0 Juanma From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 12 00:56:36 2011 Received: (at 2507) by debbugs.gnu.org; 12 Jul 2011 04:56:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgV1Q-000448-7O for submit@debbugs.gnu.org; Tue, 12 Jul 2011 00:56:36 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgV1O-00043t-AC for 2507@debbugs.gnu.org; Tue, 12 Jul 2011 00:56:34 -0400 Received: from cpe-66-108-39-217.nyc.res.rr.com ([66.108.39.217]:35300 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QgV1I-0003kc-Eu; Tue, 12 Jul 2011 00:56:28 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 4AFE9660D5; Tue, 12 Jul 2011 00:56:27 -0400 (EDT) From: Stefan Monnier To: Juanma Barranquero Subject: Re: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program Message-ID: References: <83y604n6t3.fsf@gnu.org> <83sjqcn5wr.fsf@gnu.org> Date: Tue, 12 Jul 2011 00:56:27 -0400 In-Reply-To: (Juanma Barranquero's message of "Mon, 11 Jul 2011 21:36:09 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: 2507 Cc: Eli Zaretskii , Lars Magne Ingebrigtsen , 2507@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) >> The unstripped binary measures 37MB on Windows > Or more. Mine is at ~42 MiB unstripped, ~10 MiB stripped (but I > doesn't work, of course). So the stripped version can be compressed *much* further without losing any functionality. Cool! Stefan "feeling silly" From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 12 07:04:09 2011 Received: (at 2507) by debbugs.gnu.org; 12 Jul 2011 11:04:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qgal5-0007S7-Vt for submit@debbugs.gnu.org; Tue, 12 Jul 2011 07:04:08 -0400 Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qgal4-0007Re-4L for 2507@debbugs.gnu.org; Tue, 12 Jul 2011 07:04:06 -0400 Received: by pvh18 with SMTP id 18so3913068pvh.3 for <2507@debbugs.gnu.org>; Tue, 12 Jul 2011 04:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=IwJICWch5ByFkhroPDl1ZxXdHwG4h/jAtJJdI7B/MCI=; b=nORZVFEXDasBKzqhIzbX+KdHETIyyFahlaDcyPTwseNynHPjR8HTfdY8RbteceeCU7 LVNlb6OkNk+EIodgcwByaAv9wUWDMy/EvW7z6RvGIEZNfIVjZCwkbGDrepgsEJKsjAKA xea2xFRNyKfhxZtQfqsQCcwtQUJZ6J/YBWod0= Received: by 10.143.90.11 with SMTP id s11mr673204wfl.366.1310468640107; Tue, 12 Jul 2011 04:04:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.144.4 with HTTP; Tue, 12 Jul 2011 04:03:19 -0700 (PDT) In-Reply-To: References: <83y604n6t3.fsf@gnu.org> <83sjqcn5wr.fsf@gnu.org> From: Juanma Barranquero Date: Tue, 12 Jul 2011 13:03:19 +0200 Message-ID: Subject: Re: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program To: Stefan Monnier Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: 2507 Cc: Eli Zaretskii , Lars Magne Ingebrigtsen , 2507@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) On Tue, Jul 12, 2011 at 06:56, Stefan Monnier wr= ote: > So the stripped version can be compressed *much* further without losing > any functionality. =C2=A0Cool! Well, yeah. A lot. > =C2=A0 =C2=A0 =C2=A0 =C2=A0Stefan "feeling silly" As we Spaniards use to say: "Ja, ja, me parto". =C2=A0 =C2=A0 Juanma From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 10:16:56 2011 Received: (at 2507) by debbugs.gnu.org; 13 Jul 2011 14:16:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh0FE-0003TW-4l for submit@debbugs.gnu.org; Wed, 13 Jul 2011 10:16:56 -0400 Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh0FC-0003TJ-MJ for 2507@debbugs.gnu.org; Wed, 13 Jul 2011 10:16:55 -0400 Received: by pvh18 with SMTP id 18so5081224pvh.3 for <2507@debbugs.gnu.org>; Wed, 13 Jul 2011 07:16:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=Mcu+TYH1Fa+iECb8RrIAQXK2wuGHiv3xsvvWhYOFA34=; b=BXFLOaEyPQWYODqKHByQYlnYCKyzgLjHGYlqVmAggPNVFMF4ujsDOoz4EIcIhkWNyy Wls0pMLiLPGzgFgvC0hgkwx1ivuNk3x7Ewp0sqdw21266S1EoUe25q5UlcbLy5m5CCCe 4gj8FRkn2SOmgiOMYE/JXSorMxN2bVGx49OK4= Received: by 10.68.0.163 with SMTP id 3mr1560450pbf.137.1310566608189; Wed, 13 Jul 2011 07:16:48 -0700 (PDT) Received: from home.jasonrumney.net ([180.75.129.32]) by mx.google.com with ESMTPS id x2sm9256277pbn.93.2011.07.13.07.16.43 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Jul 2011 07:16:47 -0700 (PDT) Received: by home.jasonrumney.net (Postfix, from userid 1000) id 319601449; Wed, 13 Jul 2011 22:16:37 +0800 (MYT) From: Jason Rumney To: Stefan Monnier Subject: Re: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program References: <83y604n6t3.fsf@gnu.org> <83sjqcn5wr.fsf@gnu.org> Date: Wed, 13 Jul 2011 22:16:36 +0800 In-Reply-To: (Stefan Monnier's message of "Tue, 12 Jul 2011 00:56:27 -0400") Message-ID: <877h7mz2nv.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 2507 Cc: Juanma Barranquero , Lars Magne Ingebrigtsen , 2507@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) Stefan Monnier writes: >>> The unstripped binary measures 37MB on Windows >> Or more. Mine is at ~42 MiB unstripped, ~10 MiB stripped (but I >> doesn't work, of course). > > So the stripped version can be compressed *much* further without losing > any functionality. Cool! If you build without debug info in the first place, it does work, at around the same size. Also if you strip temacs before dumping, it works. The problem is only in stripping a dumped binary that had debug info to start with. It seems the strip command removes some info that Emacs needs to reconstruct the heap from the dumped image. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 07 12:48:07 2013 Received: (at 2507) by debbugs.gnu.org; 7 Apr 2013 16:48:07 +0000 Received: from localhost ([127.0.0.1]:38639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UOsl9-0000Zg-Nl for submit@debbugs.gnu.org; Sun, 07 Apr 2013 12:48:07 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:36272) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UOsl2-0000ZB-HK for 2507@debbugs.gnu.org; Sun, 07 Apr 2013 12:48:01 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MKW00J0093MUW00@a-mtaout22.012.net.il> for 2507@debbugs.gnu.org; Sun, 07 Apr 2013 19:44:21 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MKW00JE295WKM70@a-mtaout22.012.net.il>; Sun, 07 Apr 2013 19:44:21 +0300 (IDT) Date: Sun, 07 Apr 2013 19:44:28 +0300 From: Eli Zaretskii Subject: Re: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program In-reply-to: <877h7mz2nv.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: Jason Rumney Message-id: <83bo9qcmtv.fsf@gnu.org> References: <83y604n6t3.fsf@gnu.org> <83sjqcn5wr.fsf@gnu.org> <877h7mz2nv.fsf@gnu.org> X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Jason Rumney > Date: Wed, 13 Jul 2011 22:16:36 +0800 > Cc: Juanma Barranquero , > Lars Magne Ingebrigtsen , 2507@debbugs.gnu.org > > If you build without debug info in the first place, it does work, at > around the same size. Also if you strip temacs before dumping, it > works. The problem is only in stripping a dumped binary that had > debug info to start with. It seems the strip command removes some info > that Emacs needs to reconstruct the heap from the dumped image. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.172 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4758] X-Debbugs-Envelope-To: 2507 Cc: lekktu@gmail.com, larsi@gnus.org, monnier@iro.umontreal.ca, 2507@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.2 (/) > From: Jason Rumney > Date: Wed, 13 Jul 2011 22:16:36 +0800 > Cc: Juanma Barranquero , > Lars Magne Ingebrigtsen , 2507@debbugs.gnu.org > > If you build without debug info in the first place, it does work, at > around the same size. Also if you strip temacs before dumping, it > works. The problem is only in stripping a dumped binary that had > debug info to start with. It seems the strip command removes some info > that Emacs needs to reconstruct the heap from the dumped image. That is correct. I looked into this some more. The problem is that we add an extra section to the Emacs executable (by running addsection), which serves as the static heap. Here's the report from "objdump -h": temacs.exe: file format pei-i386 Sections: Idx Name Size VMA LMA File off Algn 0 .text 0032e604 01001000 01001000 00001000 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE, DATA 1 .data 0020aea0 01330000 01330000 00330000 2**4 CONTENTS, ALLOC, LOAD, DATA 2 .rdata 000dc57c 0153b000 0153b000 0053b000 2**4 CONTENTS, ALLOC, LOAD, READONLY, DATA 3 .bss 0005c410 01618000 01618000 00000000 2**4 ALLOC 4 .idata 000036f4 01675000 01675000 00618000 2**2 CONTENTS, ALLOC, LOAD, DATA 5 .rsrc 0000d5f0 01679000 01679000 0061c000 2**2 CONTENTS, ALLOC, LOAD, DATA 6 .debug_aranges 00000ce0 01687000 01687000 0062a000 2**0 CONTENTS, READONLY, DEBUGGING 7 .debug_pubnames 00011b5a 01688000 01688000 0062b000 2**0 CONTENTS, READONLY, DEBUGGING 8 .debug_info 003992b0 0169a000 0169a000 0063d000 2**0 CONTENTS, READONLY, DEBUGGING 9 .debug_abbrev 0001181b 01a34000 01a34000 009d7000 2**0 CONTENTS, READONLY, DEBUGGING 10 .debug_line 0003f37e 01a46000 01a46000 009e9000 2**0 CONTENTS, READONLY, DEBUGGING 11 .debug_frame 0001b6b8 01a86000 01a86000 00a29000 2**0 CONTENTS, READONLY, DEBUGGING 12 .debug_str 0000d3bb 01aa2000 01aa2000 00a45000 2**0 CONTENTS, READONLY, DEBUGGING 13 .debug_macinfo 01b54308 01ab0000 01ab0000 00a53000 2**0 CONTENTS, READONLY, DEBUGGING 14 EMHEAP 01b00000 03605000 03605000 00000000 2**2 ALLOC The last section, EMHEAP, is the one we add. Now look what happens after stripping: temacs.exe: file format pei-i386 Sections: Idx Name Size VMA LMA File off Algn 0 .text 0032e604 01001000 01001000 00000400 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE, DATA 1 .data 0020aea0 01330000 01330000 0032ec00 2**4 CONTENTS, ALLOC, LOAD, DATA 2 .rdata 000dc57c 0153b000 0153b000 00539c00 2**4 CONTENTS, ALLOC, LOAD, READONLY, DATA 3 .bss 0005c410 01618000 01618000 00000000 2**4 ALLOC 4 .idata 000036f4 01675000 01675000 00616200 2**2 CONTENTS, ALLOC, LOAD, DATA 5 .rsrc 0000d5f0 01679000 01679000 00619a00 2**2 CONTENTS, ALLOC, LOAD, DATA 6 EMHEAP 01b00000 03605000 03605000 00000000 2**2 ALLOC The debug sections are gone, but the VMA and LMA of EMHEAP were left intact. By contrast, if we strip temacs.bin _before_ running addsection, and run addsection on the stripped temacs.bin, we get this: temacs.exe: file format pei-i386 Sections: Idx Name Size VMA LMA File off Algn 0 .text 0032e604 01001000 01001000 00001000 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE, DATA 1 .data 0020aea0 01330000 01330000 00330000 2**4 CONTENTS, ALLOC, LOAD, DATA 2 .rdata 000dc57c 0153b000 0153b000 0053b000 2**4 CONTENTS, ALLOC, LOAD, READONLY, DATA 3 .bss 0005c410 01618000 01618000 00000000 2**4 ALLOC 4 .idata 000036f4 01675000 01675000 00618000 2**2 CONTENTS, ALLOC, LOAD, DATA 5 .rsrc 0000d5f0 01679000 01679000 0061c000 2**2 CONTENTS, ALLOC, LOAD, DATA 6 EMHEAP 01b00000 01687000 01687000 00000000 2**2 ALLOC Now EMHEAP's VMA and LMA follow the section before it. So I think the kind of workaround mentioned in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2507#10 above, or some variant thereof, is the right way of producing a stripped emacs.exe. That is, link with -s (or strip temacs.bin after it is produced), and then run addsection to produce temacs.exe and finally loadup+dump into emacs.exe. An alternative is to add code to addsection.c so that it could adjust the EMHEAP section's VMA and LMA after emacs.exe was stripped. No, I'm not volunteering ;-) P.S. I tried to adjust the VMA/LMA with objcopy, but the result is not reliable: sometimes works, sometimes crashes. So more than just address adjustment is needed. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 04 14:43:23 2014 Received: (at 2507-done) by debbugs.gnu.org; 4 Jun 2014 18:43:23 +0000 Received: from localhost ([127.0.0.1]:44353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsG9d-0006AF-RC for submit@debbugs.gnu.org; Wed, 04 Jun 2014 14:43:22 -0400 Received: from mtaout27.012.net.il ([80.179.55.183]:33244) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsG9V-00069o-8F for 2507-done@debbugs.gnu.org; Wed, 04 Jun 2014 14:43:14 -0400 Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0N6N00L00Q5B7A00@mtaout27.012.net.il> for 2507-done@debbugs.gnu.org; Wed, 04 Jun 2014 21:39:56 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N6N00N37QIIAF00@mtaout27.012.net.il> for 2507-done@debbugs.gnu.org; Wed, 04 Jun 2014 21:39:56 +0300 (IDT) Date: Wed, 04 Jun 2014 21:42:56 +0300 From: Eli Zaretskii Subject: Re: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program In-reply-to: <83bo9qcmtv.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: 2507-done@debbugs.gnu.org Message-id: <837g4w7byn.fsf@gnu.org> References: <83y604n6t3.fsf@gnu.org> <83sjqcn5wr.fsf@gnu.org> <877h7mz2nv.fsf@gnu.org> <83bo9qcmtv.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 2507-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: 1.0 (+) This problem was solved as side effect of the changes to use mmap-like memory management for buffer text and store the dumped data in a static array instead of a special section. Closing. From unknown Sat Jun 21 10:13:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 03 Jul 2014 11:24:03 +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