From debbugs-submit-bounces@debbugs.gnu.org Wed May 30 03:28:02 2012 Received: (at submit) by debbugs.gnu.org; 30 May 2012 07:28:02 +0000 Received: from localhost ([127.0.0.1]:49381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZdJm-0007t7-Gn for submit@debbugs.gnu.org; Wed, 30 May 2012 03:28:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39458) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZd8w-0007d8-L7 for submit@debbugs.gnu.org; Wed, 30 May 2012 03:16:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZd7P-0001UV-Ka for submit@debbugs.gnu.org; Wed, 30 May 2012 03:14:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:49771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZd7P-0001UN-GT for submit@debbugs.gnu.org; Wed, 30 May 2012 03:14:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZd7F-00067E-St for bug-gnu-emacs@gnu.org; Wed, 30 May 2012 03:14:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZd78-0001Sa-F7 for bug-gnu-emacs@gnu.org; Wed, 30 May 2012 03:14:45 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:49407 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZd78-0001SV-3C for bug-gnu-emacs@gnu.org; Wed, 30 May 2012 03:14:38 -0400 Received: from localhost ([86.195.134.210]) by mwinf5d42 with ME id G7Ec1j0024YY4DA037EcBd; Wed, 30 May 2012 09:14:36 +0200 Date: Wed, 30 May 2012 08:57:06 +0200 (CEST) Message-Id: <20120530.085706.183065156.devel@pollock-nageoire.net> To: bug-gnu-emacs@gnu.org Subject: 24.0.50; corrupted byte compiled files From: Pierre Lorenzon X-Mailer: Mew version 6.2.51 on Emacs 24.0.50 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Wed_May_30_08_57_06_2012_899)--" Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 30 May 2012 03:27:41 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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.9 (------) ----Next_Part(Wed_May_30_08_57_06_2012_899)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit This bug report will be sent to the Free Software Foundation, not to your local site managers! 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 bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': Hi, Certain of my .el files are incorrectly compiled. See the .elc file with a long name. More details : It seems that a part of the .elc file is missing as if a part of the character strream was discarded. I cannot figure out why. But more suprisingly when renaming the file with a much more shorter name everything goes well as if there was a limitation in the file name length. I must point out that there are only ascii characters composing the file name. Moreover even with the long name the .el (uncompiled file) is perfectly correct and load perfectly as well as the .elc (compiled file) with the short name. I had this problem with emacs 24.0.50 as well as witth 24.0.95. I should say that I am using these devloppeing versions since I appreciate ieieio to be integrated in it. I never had this compilation problem with emacs 23 but probalbly never tried with so long file names. Moreover emacs 23 is no longer available on my system to test. But if it could be useful I can reinstall this stable version. See examples attached. Is there a limitation somewhere ? Regards Pierre 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'. For information about debugging Emacs, please read the file /usr/share/emacs/24.0.50/etc/DEBUG. In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu) of 2011-01-13 on jabberwocky configured using `configure '--prefix=/usr' '--libexecdir=/usr/lib' '--localstatedir=/var'' 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: C value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Message Minor modes in effect: gpm-mouse-mode: t tool-bar-mode: t desktop-save-mode: t global-ede-mode: t global-speechd-speak-mode: t speechd-speak-mode: t global-speechd-speak-map-mode: t speechd-speak-map-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: d i s c o v e r SPC w h e r e SPC i s SPC t h SPC p r o b l e m SPC . . . . ESC q RET RET RET TAB T h a n k s SPC RET RET TAB P I e r r e ESC [ 1 ~ ESC [ C ESC [ C ESC [ C ESC [ 3 ~ i ESC [ 4 ~ C-c C-c y ESC [ A . C-x o ESC [ B C-@ ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC w C-x o ESC [ A ESC [ A C-x o ESC [ A ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B . C-x o ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ B ESC x r e p o TAB r TAB b TAB RET Recent messages: +draft/4 has been queued to +queue/3 (from Draft mode) Connecting to the SMTP server...done Sending in background...done Mark set line-move-visual: End of buffer Saved text from "Hi, Certain of my .el files are incorre" line-move-visual: Beginning of buffer Making completion list... Load-path shadows: /usr/local/share/emacs/site-lisp/customization/site-start hides /usr/share/emacs/site-lisp/site-start /usr/share/emacs/site-lisp/speechd/speechd hides /usr/share/emacs/site-lisp/speechd.cvs/speechd /usr/share/emacs/site-lisp/speechd/speechd-ssip hides /usr/share/emacs/site-lisp/speechd.cvs/speechd-ssip /usr/share/emacs/site-lisp/speechd/speechd-speak hides /usr/share/emacs/site-lisp/speechd.cvs/speechd-speak /usr/share/emacs/site-lisp/speechd/brltty hides /usr/share/emacs/site-lisp/speechd.cvs/brltty /usr/share/emacs/site-lisp/speechd/mmanager hides /usr/share/emacs/site-lisp/speechd.cvs/mmanager /usr/share/emacs/site-lisp/speechd/speechd-common hides /usr/share/emacs/site-lisp/speechd.cvs/speechd-common /usr/share/emacs/site-lisp/speechd/speechd-version hides /usr/share/emacs/site-lisp/speechd.cvs/speechd-version /usr/share/emacs/site-lisp/speechd/speechd-out hides /usr/share/emacs/site-lisp/speechd.cvs/speechd-out /usr/share/emacs/site-lisp/speechd/braille hides /usr/share/emacs/site-lisp/speechd.cvs/braille /usr/share/emacs/site-lisp/speechd/speechd-bug hides /usr/share/emacs/site-lisp/speechd.cvs/speechd-bug /usr/share/emacs/site-lisp/speechd/speechd-braille hides /usr/share/emacs/site-lisp/speechd.cvs/speechd-braille /usr/share/emacs/site-lisp/speechd/speechd-brltty hides /usr/share/emacs/site-lisp/speechd.cvs/speechd-brltty /usr/share/emacs/site-lisp/speechd/speechd-compile hides /usr/share/emacs/site-lisp/speechd.cvs/speechd-compile Features: (shadow emacsbug help-mode view pp mew-varsx vc-cvs vc-rcs j++-packages-cdrom-projects-category j++-packages-cdrom-projects-categories j++-packages-cdrom-projects-references j++-packages-cdrom-projects-pieces j++-packages-cdrom-projects-performer j++-packages-cdrom-components-performer j++-packages-databases-cds-performer j++-packages-cdrom-projects-performers j++-packages-cdrom-projects-discid j++-packages-cdrom-projects-discids j++-packages-cdrom-projects-piece j++-packages-cdrom-projects-type j++-packages-cdrom-projects-author j++-packages-cdrom-projects-authors j++-packages-cdrom-projects-all j++-packages-cdrom-projects-project j++-sound-project j++-packages-sound-sound-project j++-packages-cdrom-components-reference j++-packages-cdrom-components-discid j++-packages-cdrom-components-author j++-packages-cdrom-components-person j++-packages-databases-cds-author j++-packages-databases-items-person j++-packages-cdrom-components-piece j++-packages-cdrom-components-item j++-packages-cdrom-track j++-basic-processes-asynchronous j++-basic-flaggable j++-packages-project-target j++-basic-widgets-open-close-title j++-basic-widgets-open-close j++-packages-cdrom-cddb-client j++-basic-processes-network-stream j++-packages-cdrom-cdda-client j++-basic-processes-queueable j++-basic-parsers-parser j++-basic-mastered j++-packages-cdrom-cdrom j++-basic-string-filter j++-basic-duration j++-basic-interfaces-pointed j++-basic-interfaces-interface j++-basic-lists-pointed j++-basic-creator j++-basic-lists-list j++-basic-mapable j++-basic-sortable j++-basic-state j++-basic-widgets-synchronized j++-basic-synchronized j++-basic-widgets-object t-mouse info tool-bar reftex-auc reftex-vcr reftex-dcr reftex reftex-vars noutline outline font-latex newcomment Tss-LaTeX-remap latex easy-mmode edmacro kmacro tex-style tex j++-project j++-packages-project-project j++-packages-project-file j++-basic-processes-svn j++-basic-processes-synchronous j++-basic-processes-process j++-basic-files-file-manager j++-basic-files-file j++-basic-files-serializable j++-basic-files-stringifiable ede/dired ede/proj-elisp ede/pconf package desktop speechd-el-extension Tss-TeX-remap tex-style-system tex-style-system-eieio Tss-context Tss-common Tss-widget Tss-util tree pln-auctex tex-site auto-loads pln-ede latex/edext-target-exercise latex/edext-latex edext-project edext-vc vc-svn vc vc-dispatcher edext-srecode semantic/edit semantic/find srecode/srt-mode semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/db semantic/format srecode/template srecode/srt-wy semantic/wisent semantic/wisent/wisent semantic/ctxt srecode/ctxt semantic/tag-ls srecode/compile srecode/table srecode/map semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw edext-utils edext ede/proj-misc ede/pmake ede/proj-obj ede/proj ede/make ede/proj-comp ede/autoconf-edit autoconf autoconf-mode j++ ede/linux ede/emacs ede/cpp-root srecode mode-local ede/speedbar ede/files speechd-el-ede ede ede/source eieio-base eieio-speedbar speedbar sb-image ezimage dframe assoc eieio-custom cedet pln-mew mew-w3m speechd-el-w3m w3m browse-url doc-view jka-compr dired regexp-opt image-mode timezone w3m-hist w3m-fb w3m-ems wid-edit warnings w3m-ccl ccl w3m-favicon image w3m-image w3m-proc w3m-util mew-auth mew-config mew-imap2 mew-imap mew-nntp2 mew-nntp mew-pop mew-smtp mew-ssl mew-ssh mew-net mew-highlight mew-sort mew-fib mew-ext mew-refile mew-demo mew-attach mew-draft mew-message mew-thread mew-virtual mew-summary4 mew-summary3 mew-summary2 mew-summary mew-search mew-pick mew-passwd mew-scan mew-syntax mew-bq mew-smime mew-pgp mew-header mew-exec mew-mark mew-mime mew-edit mew-decode mew-encode mew-cache mew-minibuf mew-complete mew-addrbook mew-local mew-unix mew-vars3 mew-vars2 mew-vars mew-env mew-mule3 mew-mule mew-gemacs easymenu mew-key mew-func mew-blvs mew-const speechd-el-mew mew pln-w3m pln-customization speechd-speak advice help-fns advice-preload speechd-ssip speechd-brltty speechd-braille braille mmanager brltty cl cl-19 speechd-out eieio byte-opt bytecomp byte-compile speechd speechd-common ediff-hook vc-hooks lisp-float-type lisp-mode register page menu-bar rfn-eshadow timer jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) ----Next_Part(Wed_May_30_08_57_06_2012_899)-- Content-Type: Application/Octet-Stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Toto.elc" O0VMQxcAAAAKOzs7IENvbXBpbGVkIGJ5IGxvcmVuem9uQG1hdGgudS1wc3VkLmZyIG9uIFR1ZSBN YXkgMjkgMTU6MTU6MzQgMjAxMgo7OzsgZnJvbSBmaWxlIC9ob21lL2xvcmVuem9uL01hdGhlbWF0 aXF1ZS9BdXRldXJzL0MvQ2xvemVsLUxhdXJlbnQvU2Nob2x6ZS9FdHVkZS1kZXMtRm9uY3Rpb25z LVpldGEtZGVzLUNvdXJiZXMtTW9kdWxhaXJlcy1BdXgtUGxhY2VzLWRlLUJvbm5lLVJlZHVjdGlv bnMvYXV0by9Ub3RvLmVsCjs7OyBpbiBFbWFjcyB2ZXJzaW9uIDI0LjAuNTAuMQo7Ozsgd2l0aCBh bGwgb3B0aW1pemF0aW9ucy4KCjs7OyBUaGlzIGZpbGUgY29udGFpbnMgdXRmLTggbm9uLUFTQ0lJ IGNoYXJhY3RlcnMsCjs7OyBhbmQgc28gY2Fubm90IGJlIGxvYWRlZCBpbnRvIEVtYWNzIDIyIG9y IGVhcmxpZXIuCihhbmQgKGJvdW5kcCAnZW1hY3MtdmVyc2lvbikKICAgICAoPCAoYXJlZiBlbWFj cy12ZXJzaW9uICgxLSAobGVuZ3RoIGVtYWNzLXZlcnNpb24pKSkgP0EpCiAgICAgKHN0cmluZy1s ZXNzcCBlbWFjcy12ZXJzaW9uICIyMyIpCiAgICAgKGVycm9yICJgVG90by5lbCcgd2FzIGNvbXBp bGVkIGZvciBFbWFjcyAyMyBvciBsYXRlciIpKQoKOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7 CgoKKFRlWC1hZGQtc3R5bGUtaG9vayAnKFRzcy1zbGF2ZSA6bmFtZSAiRXR1ZGUtZGVzLUZvbmN0 aW9ucy1aZXRhLWRlcy1Db3VyYmVzLU1vZHVsYWlyZXMtQXV4LVBsYWNlcy1kZS1Cb25uZS1SZWR1 Y3Rpb25zL1JlZm9ybXVsYXRpb24tRW4tVGhlb3JpZS1kZXMtR3JvdXBlcyIgOm1hc3Rlci1kaXJl Y3RvcnkgIi4uLyIgOnN0YXRlIChuZXcpKSAjW25pbCAiXDMwMFwzMDEhXDIxMFwzMDJcMzAzXDMw NFwiXDIxMFwzMDVcMzA2XDMwN1wzMTBcMzExXDMxMlwzMTMmBlwyMDciIFtUZVgtc3R5bGUtc3lz dGVtLWluaXQtbWFzdGVyICIuLi9TY2hvbHplIiBMYVRlWC1hZGQtaW5kZXgtZW50cmllcyAiJFxc c2lnbWEkLWNvbmp1Z3XDqXMiICIkXFxzaWdtYSQtY2VudHJhbGlzYXRldXIiIExhVGVYLWFkZC1s YWJlbHMgIlNDSC56ZXRhLmdyb3VwZSIgIlNDSC56ZXRhLmdyb3VwZS5sZW0uOCIgIlNDSC56ZXRh Lmdyb3VwZS5wcm8uNCIgIlNDSC56ZXRhLmdyb3VwZS5sZW0uMTAiICJTQ0guemV0YS5ncm91cGUu dGhtLjciICJTQ0guemV0YS5ncm91cGUucHJvLjUiXSA3XSkK ----Next_Part(Wed_May_30_08_57_06_2012_899)-- Content-Type: Text/Plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline; filename="Toto.el" (TeX-add-style-hook '(Tss-slave :name "Etude-des-Fonctions-Zeta-des-Courbes-Modulaires-Aux-Places-de-Bonne-Reductions/Reformulation-En-Theorie-des-Groupes" :master-directory "../" :state (new)) (lambda () (TeX-style-system-init-master "../Scholze") (LaTeX-add-index-entries "$\\sigma$-conjugués" "$\\sigma$-centralisateur" ) (LaTeX-add-labels "SCH.zeta.groupe" "SCH.zeta.groupe.lem.8" "SCH.zeta.groupe.pro.4" "SCH.zeta.groupe.lem.10" "SCH.zeta.groupe.thm.7" "SCH.zeta.groupe.pro.5" ) ) ) ----Next_Part(Wed_May_30_08_57_06_2012_899)-- Content-Type: Application/Octet-Stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Reformulation-En-Theorie-des-Groupes.elc" O0VMQxcAAAAKOzs7IENvbXBpbGVkIGJ5IGxvcmVuem9uQG1hdGgudS1wc3VkLmZyIG9uIFR1ZSBN YXkgMjkgMTU6MTU6MDYgMjAxMgo7OzsgZnJvbSBmaWxlIC9ob21lL2xvcmVuem9uL01hdGhlbWF0 aXF1ZS9BdXRldXJzL0MvQ2xvemVsLUxhdXJlbnQvU2Nob2x6ZS9FdHVkZS1kZXMtRm9uY3Rpb25z LVpldGEtZGVzLUNvdXJiZXMtTW9kdWxhaXJlcy1BdXgtUGxhY2VzLWRlLUJvbm5lLVJlZHVjdGlv bnMvYXV0by9SZWZvcm11bGF0aW9uLUVuLVRoZW9yaWUtZGVzLUdyb3VwZXMuZWwKOzs7IGluIEVt YWNzIHZlcnNpb24gMjQuMC41MC4xCjs7OyB3aXRoIGFsbCBvcHRpbWl6YXRpb25zLgoKOzs7IFRo aXMgZmlsZSBjb250YWlucyB1dGYtOCBub24tQVNDSUkgY2hhcmFjdGVycywKOzs7IGFuZCBzbyBj YW5ub3QgYmUgbG9hZGVkIGludG8gRW1hY3MgMjIgb3IgZWFybGllci4KKGFuZCAoYm91bmRwICdl bWFjcy12ZXJzaW9uKQogICAgICg8IChhcmVmIGVtYWNzLXZlcnNpb24gKDEtIChsZW5ndGggZW1h Y3MtdmVyc2lvbikpKSA/QSkKICAgICAoc3RyaW5nLWxlc3NwIGVtYWNzLXZlcnNpb24gIjIzIikK ICAgICAoZXJyb3IgImBSZWZvcm11bGF0aW9uLUVuLVRoZW9yaWUtZGVzLUdyb3VwZXMuZWwnIHdh cyBjb21waWxlZCBmb3IgRW1hY3MgMjMgb3IgbGF0ZXIiKSkKCmVYLWFkZC1zdHlsZS1ob29rICco VHNzLXNsYXZlIDpuYW1lICJFdHVkZS1kZXMtRm9uY3Rpb25zLVpldGEtZGVzLUNvdXJiZXMtTW9k dWxhaXJlcy1BdXgtUGxhY2VzLWRlLUJvbm5lLVJlZHVjdGlvbnMvUmVmb3JtdWxhdGlvbi1Fbi1U aGVvcmllLWRlcy1Hcm91cGVzIiA6bWFzdGVyLWRpcmVjdG9yeSAiLi4vIiA6c3RhdGUgKG5ldykp ICNbbmlsICJcMzAwXDMwMSFcMjEwXDMwMlwzMDNcMzA0XCJcMjEwXDMwNVwzMDZcMzA3XDMxMFwz MTFcMzEyXDMxMyYGXDIwNyIgW1RlWC1zdHlsZS1zeXN0ZW0taW5pdC1tYXN0ZXIgIi4uL1NjaG9s emUiIExhVGVYLWFkZC1pbmRleC1lbnRyaWVzICIkXFxzaWdtYSQtY29uanVndcOpcyIgIiRcXHNp Z21hJC1jZW50cmFsaXNhdGV1ciIgTGFUZVgtYWRkLWxhYmVscyAiU0NILnpldGEuZ3JvdXBlIiAi U0NILnpldGEuZ3JvdXBlLmxlbS44IiAiU0NILnpldGEuZ3JvdXBlLnByby40IiAiU0NILnpldGEu Z3JvdXBlLmxlbS4xMCIgIlNDSC56ZXRhLmdyb3VwZS50aG0uNyIgIlNDSC56ZXRhLmdyb3VwZS5w cm8uNSJdIDddKQo= ----Next_Part(Wed_May_30_08_57_06_2012_899)-- Content-Type: Text/Plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline; filename="Reformulation-En-Theorie-des-Groupes.el" (TeX-add-style-hook '(Tss-slave :name "Etude-des-Fonctions-Zeta-des-Courbes-Modulaires-Aux-Places-de-Bonne-Reductions/Reformulation-En-Theorie-des-Groupes" :master-directory "../" :state (new)) (lambda () (TeX-style-system-init-master "../Scholze") (LaTeX-add-index-entries "$\\sigma$-conjugués" "$\\sigma$-centralisateur" ) (LaTeX-add-labels "SCH.zeta.groupe" "SCH.zeta.groupe.lem.8" "SCH.zeta.groupe.pro.4" "SCH.zeta.groupe.lem.10" "SCH.zeta.groupe.thm.7" "SCH.zeta.groupe.pro.5" ) ) ) ----Next_Part(Wed_May_30_08_57_06_2012_899)---- From debbugs-submit-bounces@debbugs.gnu.org Wed May 30 04:24:45 2012 Received: (at 11585) by debbugs.gnu.org; 30 May 2012 08:24:45 +0000 Received: from localhost ([127.0.0.1]:49411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZeCy-0000jQ-NE for submit@debbugs.gnu.org; Wed, 30 May 2012 04:24:45 -0400 Received: from smtp08.smtpout.orange.fr ([80.12.242.130]:25001 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZeCw-0000jA-CN for 11585@debbugs.gnu.org; Wed, 30 May 2012 04:24:43 -0400 Received: from localhost ([86.195.134.210]) by mwinf5d16 with ME id G8P71j00P4YY4DA038P7Dz; Wed, 30 May 2012 10:23:08 +0200 Date: Wed, 30 May 2012 10:05:37 +0200 (CEST) Message-Id: <20120530.100537.488385604.devel@pollock-nageoire.net> To: 11585@debbugs.gnu.org Subject: Re: bug#11585: Acknowledgement (24.0.50; corrupted byte compiled files) From: Pierre Lorenzon In-Reply-To: References: <20120530.085706.183065156.devel@pollock-nageoire.net> X-Mailer: Mew version 6.2.51 on Emacs 24.0.50 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11585 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -1.9 (-) Hi, Ok I made a few tests by making the file name always more shorter and miraculously saw more and more discarded characters appearing in the byte compiled file. In my opinion the `byte-compile-fix-header' function is responsible of this undesirable behavior of the byte compile engine. I'll try to analyse more precisely this function and eventually write a patch if I discover that it is bugged. Anyway all these narroing region killing and widening in this function look mysterious to me and probably to complicated to obtain the desired result but I have to look at it more precisely. Regards ! Pierre From debbugs-submit-bounces@debbugs.gnu.org Wed May 30 05:08:24 2012 Received: (at 11585) by debbugs.gnu.org; 30 May 2012 09:08:24 +0000 Received: from localhost ([127.0.0.1]:49473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZetE-0001kF-0t for submit@debbugs.gnu.org; Wed, 30 May 2012 05:08:24 -0400 Received: from smtp08.smtpout.orange.fr ([80.12.242.130]:58657 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZetB-0001k0-Pd for 11585@debbugs.gnu.org; Wed, 30 May 2012 05:08:22 -0400 Received: from localhost ([86.195.134.210]) by mwinf5d16 with ME id G96n1j00A4YY4DA0396nFP; Wed, 30 May 2012 11:06:47 +0200 Date: Wed, 30 May 2012 10:49:17 +0200 (CEST) Message-Id: <20120530.104917.276795662.devel@pollock-nageoire.net> To: 11585@debbugs.gnu.org Subject: Re: bug#11585: Acknowledgement (24.0.50; corrupted byte compiled files) From: Pierre Lorenzon In-Reply-To: <20120530.100537.488385604.devel@pollock-nageoire.net> References: <20120530.085706.183065156.devel@pollock-nageoire.net> <20120530.100537.488385604.devel@pollock-nageoire.net> X-Mailer: Mew version 6.2.51 on Emacs 24.0.50 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Wed_May_30_10_49_17_2012_746)--" Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11585 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -1.9 (-) ----Next_Part(Wed_May_30_10_49_17_2012_746)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit OK here is how I suggest to rewrite the `byte-compile-fix-header' function. Regards Pierre ----Next_Part(Wed_May_30_10_49_17_2012_746)-- Content-Type: Application/Octet-Stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="bytcomp-fix-fix.el" KGRlZnVuIGJ5dGUtY29tcGlsZS1maXgtaGVhZGVyIChmaWxlbmFtZSkKICAiSWYgdGhlIGN1cnJl bnQgYnVmZmVyIGhhcyBhbnkgbXVsdGlieXRlIGNoYXJhY3RlcnMsIGluc2VydCBhIHZlcnNpb24g dGVzdC4iCiAgKHdoZW4gKDwgKHBvaW50LW1heCkgKHBvc2l0aW9uLWJ5dGVzIChwb2ludC1tYXgp KSkKICAgIChnb3RvLWNoYXIgKHBvaW50LW1pbikpCiAgICA7OyBGaW5kIHRoZSBjb21tZW50IHRo YXQgZGVzY3JpYmVzIHRoZSB2ZXJzaW9uIGNvbmRpdGlvbi4KICAgICh3aGVuIChzZWFyY2gtZm9y d2FyZCAiXG47OzsgVGhpcyBmaWxlIHVzZXMiIG5pbCB0KQogICAgICA7OyBNYXliZSBiZXR0ZXIg dG8gZG8gbm90aGluZyBpZiB0aGlzIHN0dHJpbmcgaXMgbm90CiAgICAgIDs7IGZvdW5kLgogICAg ICAobGV0ICgoYmVnIChjb3B5LW1hcmtlciAobGluZS1iZWdpbm5pbmctcG9zaXRpb24pKSkpCgk7 OyAobmFycm93LXRvLXJlZ2lvbiAobGluZS1iZWdpbm5pbmctcG9zaXRpb24pIChwb2ludC1tYXgp KSAKCTs7IDs7IEZpbmQgdGhlIGZpcnN0IGxpbmUgb2YgYmFsbGFzdCBzZW1pY29sb25zLgoJKHdo ZW4gKHNlYXJjaC1mb3J3YXJkICI7Ozs7Ozs7Ozs7IiBuaWwgdCkKCSAgOzsgQXMgYWJvdmUgaWYg dGhpcyBzdHJpbmcgaXMgbm90IGZvdW5kIGhlYWRlciBpcwoJICA7OyBwcm9iYWJseSBiYWRseSBm b3JtYXRlZCBzbyBiZXR0ZXIgdG8gZG8KCSAgOzsgbm90aGluZy4gT3RoZXJ3aXNlIGZpcnN0IGtp bGxpbmcgdGhlIHBhcnQgb2YgdGhlCgkgIDs7IGhlYWRlciB3ZSB3YW50IHRvIHJlcGxhY2UuCgkg IChraWxsLXJlZ2lvbiBiZWcgKGxpbmUtYmVnaW5uaW5nLXBvc2l0aW9uKSkKCSAgOzsgTWF5YmUg bm90IHJlYWxseSBuZWNlc3NhcnkuCgkgIChnb3RvLWNoYXIgYmVnKQoJICA7OyAoYmVnaW5uaW5n LW9mLWxpbmUpCgkgIDs7IChuYXJyb3ctdG8tcmVnaW9uIChwb2ludC1taW4pIChwb2ludCkpCgkg IChsZXQgKDs7IChvbGQtaGVhZGVyLWVuZCAocG9pbnQpKQoJCShtaW5pbXVtLXZlcnNpb24gIjIz IikKCQk7OyBkZWx0YQoJCSkKCSAgICA7OyAoZGVsZXRlLXJlZ2lvbiAocG9pbnQtbWluKSAocG9p bnQtbWF4KSkKCSAgICAoaW5zZXJ0CgkgICAgICI7OzsgVGhpcyBmaWxlIGNvbnRhaW5zIHV0Zi04 IG5vbi1BU0NJSSBjaGFyYWN0ZXJzLFxuIgoJICAgICAiOzs7IGFuZCBzbyBjYW5ub3QgYmUgbG9h ZGVkIGludG8gRW1hY3MgMjIgb3IgZWFybGllci5cbiIKCSAgICAgOzsgSGF2ZSB0byBjaGVjayBp ZiBlbWFjcy12ZXJzaW9uIGlzIGJvdW5kIHNvIHRoYXQgdGhpcyB3b3JrcwoJICAgICA7OyBpbiBm aWxlcyBsb2FkZWQgZWFybHkgaW4gbG9hZHVwLmVsLgoJICAgICAiKGFuZCAoYm91bmRwICdlbWFj cy12ZXJzaW9uKVxuIgoJICAgICA7OyBJZiB0aGVyZSBpcyBhIG5hbWUgYXQgdGhlIGVuZCBvZiBl bWFjcy12ZXJzaW9uLAoJICAgICA7OyBkb24ndCB0cnkgdG8gY2hlY2sgdGhlIHZlcnNpb24gbnVt YmVyLgoJICAgICAiICAgICAoPCAoYXJlZiBlbWFjcy12ZXJzaW9uICgxLSAobGVuZ3RoIGVtYWNz LXZlcnNpb24pKSkgP0EpXG4iCgkgICAgIChmb3JtYXQgIiAgICAgKHN0cmluZy1sZXNzcCBlbWFj cy12ZXJzaW9uIFwiJXNcIilcbiIgbWluaW11bS12ZXJzaW9uKQoJICAgICAiICAgICAoZXJyb3Ig XCJgIgoJICAgICA7OyBwcmluMS10by1zdHJpbmcgaXMgdXNlZCB0byBxdW90ZSBiYWNrc2xhc2hl cy4KCSAgICAgKHN1YnN0cmluZyAocHJpbjEtdG8tc3RyaW5nIChmaWxlLW5hbWUtbm9uZGlyZWN0 b3J5IGZpbGVuYW1lKSkKCQkJMSAtMSkKCSAgICAgKGZvcm1hdCAiJyB3YXMgY29tcGlsZWQgZm9y IEVtYWNzICVzIG9yIGxhdGVyXCIpKVxuXG4iCgkJICAgICBtaW5pbXVtLXZlcnNpb24pKQogICAg ICAgOzsgOzsgTm93IGNvbXBlbnNhdGUgZm9yIGFueSBjaGFuZ2UgaW4gc2l6ZSwgdG8gbWFrZSBz dXJlIGFsbAogICAgICAgOzsgOzsgcG9zaXRpb25zIGluIHRoZSBmaWxlIHJlbWFpbiB2YWxpZC4K ICAgICAgIDs7IChzZXRxIGRlbHRhICgtIChwb2ludC1tYXgpIG9sZC1oZWFkZXItZW5kKSkKICAg ICAgIDs7IChnb3RvLWNoYXIgKHBvaW50LW1heCkpCiAgICAgICA7OyAod2lkZW4pCiAgICAgICA7 OyAoZGVsZXRlLWNoYXIgZGVsdGEpKSkpCgoJICAgICkpKSkpKQo= ----Next_Part(Wed_May_30_10_49_17_2012_746)---- From debbugs-submit-bounces@debbugs.gnu.org Wed May 30 10:47:27 2012 Received: (at 11585) by debbugs.gnu.org; 30 May 2012 14:47:27 +0000 Received: from localhost ([127.0.0.1]:50385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZkBL-0002iA-4b for submit@debbugs.gnu.org; Wed, 30 May 2012 10:47:27 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:57632 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZkBI-0002i1-Kt for 11585@debbugs.gnu.org; Wed, 30 May 2012 10:47:25 -0400 Received: from cm162.gamma80.maxonline.com.sg ([202.156.80.162]:42505 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SZk9p-0002z9-Cz; Wed, 30 May 2012 10:45:54 -0400 From: Chong Yidong To: Pierre Lorenzon Subject: Re: bug#11585: 24.0.50; corrupted byte compiled files References: <20120530.085706.183065156.devel@pollock-nageoire.net> Date: Wed, 30 May 2012 22:45:45 +0800 In-Reply-To: <20120530.085706.183065156.devel@pollock-nageoire.net> (Pierre Lorenzon's message of "Wed, 30 May 2012 08:57:06 +0200 (CEST)") Message-ID: <87sjeh7mna.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.97 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11585 Cc: 11585@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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.9 (------) Pierre Lorenzon writes: > It seems that a part of the .elc file is missing as if a part of the > character strream was discarded. This is certainly one of the most interesting bugs I've come across in quite some time. Congrats on finding it. The problem is that `byte-compile-fix-header' tries to insert a message within a fixed amount of space (in order to preserve file positions of the actual bytecode), so long file names embedded in the message will cause it to fail. Your proposed fix would not preserve file positions, but here is another way to fix it. Stefan, I think this problem is serious enough, and the solution straightforward enough, that we ought to include it in emacs-24 even though it is not a regression. WDYT? === modified file 'lisp/emacs-lisp/bytecomp.el' *** lisp/emacs-lisp/bytecomp.el 2012-03-26 19:10:00 +0000 --- lisp/emacs-lisp/bytecomp.el 2012-05-30 14:40:25 +0000 *************** *** 1956,1966 **** ;; don't try to check the version number. " (< (aref emacs-version (1- (length emacs-version))) ?A)\n" (format " (string-lessp emacs-version \"%s\")\n" minimum-version) ! " (error \"`" ! ;; prin1-to-string is used to quote backslashes. ! (substring (prin1-to-string (file-name-nondirectory filename)) ! 1 -1) ! (format "' was compiled for Emacs %s or later\"))\n\n" minimum-version)) ;; Now compensate for any change in size, to make sure all ;; positions in the file remain valid. --- 1956,1965 ---- ;; don't try to check the version number. " (< (aref emacs-version (1- (length emacs-version))) ?A)\n" (format " (string-lessp emacs-version \"%s\")\n" minimum-version) ! ;; Because the header must fit in a fixed width, we cannot ! ;; insert arbitrary-length file names: ! (format ! " (error \"Unable to load library compiled for Emacs %s or later\"))\n\n" minimum-version)) ;; Now compensate for any change in size, to make sure all ;; positions in the file remain valid. From debbugs-submit-bounces@debbugs.gnu.org Wed May 30 11:26:28 2012 Received: (at 11585) by debbugs.gnu.org; 30 May 2012 15:26:28 +0000 Received: from localhost ([127.0.0.1]:50437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZkn6-0003Zd-3O for submit@debbugs.gnu.org; Wed, 30 May 2012 11:26:28 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:8889) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZkn4-0003ZP-Co for 11585@debbugs.gnu.org; Wed, 30 May 2012 11:26:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09MCpYd/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCwsOJhIUGA0kiBwFugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="184196751" Received: from 76-10-150-29.dsl.teksavvy.com (HELO pastel.home) ([76.10.150.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 30 May 2012 11:24:51 -0400 Received: by pastel.home (Postfix, from userid 20848) id ADFF859284; Wed, 30 May 2012 11:24:49 -0400 (EDT) From: Stefan Monnier To: Pierre Lorenzon Subject: Re: bug#11585: 24.0.50; corrupted byte compiled files Message-ID: References: <20120530.085706.183065156.devel@pollock-nageoire.net> Date: Wed, 30 May 2012 11:24:49 -0400 In-Reply-To: <20120530.085706.183065156.devel@pollock-nageoire.net> (Pierre Lorenzon's message of "Wed, 30 May 2012 08:57:06 +0200 (CEST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11585 Cc: 11585@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -1.9 (-) > Certain of my .el files are incorrectly compiled. See the .elc > file with a long name. Duh, indeed it was byte-compile-fix-header, thanks for investigating. I think your patch has the problem that it changes the byte-position of the text in the rest of the buffer, which will break lazy-loaded docstrings and byte-code. Can you try the patch below instead, which will simply report the actual load-file-name rather than file name of the source. Stefan === modified file 'lisp/emacs-lisp/bytecomp.el' --- lisp/emacs-lisp/bytecomp.el 2012-05-30 03:59:42 +0000 +++ lisp/emacs-lisp/bytecomp.el 2012-05-30 15:18:29 +0000 @@ -1937,7 +1937,7 @@ (byte-compile-fix-header byte-compile-current-file)))) byte-compile--outbuffer))) -(defun byte-compile-fix-header (filename) +(defun byte-compile-fix-header (_filename) "If the current buffer has any multibyte characters, insert a version test." (when (< (point-max) (position-bytes (point-max))) (goto-char (point-min)) @@ -1962,11 +1962,8 @@ ;; don't try to check the version number. " (< (aref emacs-version (1- (length emacs-version))) ?A)\n" (format " (string-lessp emacs-version \"%s\")\n" minimum-version) - " (error \"`" - ;; prin1-to-string is used to quote backslashes. - (substring (prin1-to-string (file-name-nondirectory filename)) - 1 -1) - (format "' was compiled for Emacs %s or later\"))\n\n" + " (error \"`%s" + (format "' was compiled for Emacs %s or later\" #$))\n\n" minimum-version)) ;; Now compensate for any change in size, to make sure all ;; positions in the file remain valid. @@ -2037,7 +2034,7 @@ (print-gensym t) (print-circle ; Handle circular data structures. (not byte-compile-disable-print-circle))) - (if (and (memq (car-safe form) '(defun defmacro defvar defvaralias defconst + (if (and (memq (car-safe form) '(defvar defvaralias defconst autoload custom-declare-variable)) (stringp (nth 3 form))) (byte-compile-output-docform nil nil '("\n(" 3 ")") form nil From debbugs-submit-bounces@debbugs.gnu.org Wed May 30 11:48:02 2012 Received: (at 11585) by debbugs.gnu.org; 30 May 2012 15:48:02 +0000 Received: from localhost ([127.0.0.1]:50451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZl7x-000430-1s for submit@debbugs.gnu.org; Wed, 30 May 2012 11:48:01 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:35857 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZl7s-00042l-Rm for 11585@debbugs.gnu.org; Wed, 30 May 2012 11:47:58 -0400 Received: from localhost ([86.195.134.210]) by mwinf5d14 with ME id GFmL1j00A4YY4DA03FmLr1; Wed, 30 May 2012 17:46:21 +0200 Date: Wed, 30 May 2012 17:28:47 +0200 (CEST) Message-Id: <20120530.172847.356956325.devel@pollock-nageoire.net> To: 11585@debbugs.gnu.org Subject: Re: bug#11585: 24.0.50; corrupted byte compiled files From: Pierre Lorenzon In-Reply-To: <87sjeh7mna.fsf@gnu.org> References: <20120530.085706.183065156.devel@pollock-nageoire.net> <87sjeh7mna.fsf@gnu.org> X-Mailer: Mew version 6.2.51 on Emacs 24.0.50 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11585 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -1.9 (-) From: Chong Yidong Subject: Re: bug#11585: 24.0.50; corrupted byte compiled files Date: Wed, 30 May 2012 22:45:45 +0800 > Pierre Lorenzon writes: > >> It seems that a part of the .elc file is missing as if a part of the >> character strream was discarded. > > This is certainly one of the most interesting bugs I've come across in > quite some time. Congrats on finding it. Well there should be two circumstances simultaneously : 1. a long file name, 2. a compiled code containing utf-8 characters. 2 is probalby avoided by english speakers as well as other language speakers who simply write code. But when this code is automatically generated by auctex by a french speaker whose LaTeX code contains non ascii characters it may occur. Anyway that's probably why we discovered this bug so late. > > The problem is that `byte-compile-fix-header' tries to insert a message > within a fixed amount of space (in order to preserve file positions of > the actual bytecode), so long file names embedded in the message will > cause it to fail. Your proposed fix would not preserve file positions, > but here is another way to fix it. But why this need of fixing file position ? It seems to me that header fix is the last operation in compising the byte compiled code. After that file is saved and buffer is simply discarded so position is lost. > > Stefan, I think this problem is serious enough, and the solution > straightforward enough, that we ought to include it in emacs-24 even > though it is not a regression. WDYT? > > > === modified file 'lisp/emacs-lisp/bytecomp.el' > *** lisp/emacs-lisp/bytecomp.el 2012-03-26 19:10:00 +0000 > --- lisp/emacs-lisp/bytecomp.el 2012-05-30 14:40:25 +0000 > *************** > *** 1956,1966 **** > ;; don't try to check the version number. > " (< (aref emacs-version (1- (length emacs-version))) ?A)\n" > (format " (string-lessp emacs-version \"%s\")\n" minimum-version) > ! " (error \"`" > ! ;; prin1-to-string is used to quote backslashes. > ! (substring (prin1-to-string (file-name-nondirectory filename)) > ! 1 -1) > ! (format "' was compiled for Emacs %s or later\"))\n\n" > minimum-version)) > ;; Now compensate for any change in size, to make sure all > ;; positions in the file remain valid. > --- 1956,1965 ---- > ;; don't try to check the version number. > " (< (aref emacs-version (1- (length emacs-version))) ?A)\n" > (format " (string-lessp emacs-version \"%s\")\n" minimum-version) > ! ;; Because the header must fit in a fixed width, we cannot But why ? My solution without a fix header size produces perfectly loadable .elc files. What is the good reason to have this constrain of fix header size ? Regards Pierre > ! ;; insert arbitrary-length file names: > ! (format > ! " (error \"Unable to load library compiled for Emacs %s or later\"))\n\n" > minimum-version)) > ;; Now compensate for any change in size, to make sure all > ;; positions in the file remain valid. > From debbugs-submit-bounces@debbugs.gnu.org Wed May 30 11:51:00 2012 Received: (at 11585) by debbugs.gnu.org; 30 May 2012 15:51:00 +0000 Received: from localhost ([127.0.0.1]:50459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZlAp-00047K-L5 for submit@debbugs.gnu.org; Wed, 30 May 2012 11:50:59 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:16906 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZlAo-000478-6Z for 11585@debbugs.gnu.org; Wed, 30 May 2012 11:50:59 -0400 Received: from localhost ([86.195.134.210]) by mwinf5d14 with ME id GFpN1j00b4YY4DA03FpPde; Wed, 30 May 2012 17:49:23 +0200 Date: Wed, 30 May 2012 17:31:50 +0200 (CEST) Message-Id: <20120530.173150.291491535.devel@pollock-nageoire.net> To: 11585@debbugs.gnu.org Subject: Re: bug#11585: 24.0.50; corrupted byte compiled files From: Pierre Lorenzon In-Reply-To: References: <20120530.085706.183065156.devel@pollock-nageoire.net> X-Mailer: Mew version 6.2.51 on Emacs 24.0.50 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11585 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -1.9 (-) From: Stefan Monnier Subject: Re: bug#11585: 24.0.50; corrupted byte compiled files Date: Wed, 30 May 2012 11:24:49 -0400 >> Certain of my .el files are incorrectly compiled. See the .elc >> file with a long name. > > Duh, indeed it was byte-compile-fix-header, thanks for investigating. > I think your patch has the problem that it changes the byte-position of > the text in the rest of the buffer, which will break lazy-loaded > docstrings and byte-code. OK ! Anyway when I tried to load this .elc files compiled with my patch I encounter problem .... Pierre > Can you try the patch below instead, which will simply report the actual > load-file-name rather than file name of the source. > > > Stefan > > > === modified file 'lisp/emacs-lisp/bytecomp.el' > --- lisp/emacs-lisp/bytecomp.el 2012-05-30 03:59:42 +0000 > +++ lisp/emacs-lisp/bytecomp.el 2012-05-30 15:18:29 +0000 > @@ -1937,7 +1937,7 @@ > (byte-compile-fix-header byte-compile-current-file)))) > byte-compile--outbuffer))) > > -(defun byte-compile-fix-header (filename) > +(defun byte-compile-fix-header (_filename) > "If the current buffer has any multibyte characters, insert a version test." > (when (< (point-max) (position-bytes (point-max))) > (goto-char (point-min)) > @@ -1962,11 +1962,8 @@ > ;; don't try to check the version number. > " (< (aref emacs-version (1- (length emacs-version))) ?A)\n" > (format " (string-lessp emacs-version \"%s\")\n" minimum-version) > - " (error \"`" > - ;; prin1-to-string is used to quote backslashes. > - (substring (prin1-to-string (file-name-nondirectory filename)) > - 1 -1) > - (format "' was compiled for Emacs %s or later\"))\n\n" > + " (error \"`%s" > + (format "' was compiled for Emacs %s or later\" #$))\n\n" > minimum-version)) > ;; Now compensate for any change in size, to make sure all > ;; positions in the file remain valid. > @@ -2037,7 +2034,7 @@ > (print-gensym t) > (print-circle ; Handle circular data structures. > (not byte-compile-disable-print-circle))) > - (if (and (memq (car-safe form) '(defun defmacro defvar defvaralias defconst > + (if (and (memq (car-safe form) '(defvar defvaralias defconst > autoload custom-declare-variable)) > (stringp (nth 3 form))) > (byte-compile-output-docform nil nil '("\n(" 3 ")") form nil > From debbugs-submit-bounces@debbugs.gnu.org Thu May 31 01:59:14 2012 Received: (at control) by debbugs.gnu.org; 31 May 2012 05:59:14 +0000 Received: from localhost ([127.0.0.1]:51138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZyPg-0003CW-UQ for submit@debbugs.gnu.org; Thu, 31 May 2012 01:59:13 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:49816 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZyPM-0003Bq-Ir for control@debbugs.gnu.org; Thu, 31 May 2012 01:59:11 -0400 Received: from [155.69.19.37] (port=58080 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SZyNq-0002S7-Om for control@debbugs.gnu.org; Thu, 31 May 2012 01:57:19 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 11585 Date: Thu, 31 May 2012 13:57:13 +0800 Message-ID: <878vg83nba.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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.9 (------) close 11585 thanks From unknown Fri Aug 15 19:34:13 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, 28 Jun 2012 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