From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#45433: 28.0.50; byte/native-compiling ivy and ox-publish possibly miscompiled Date: Wed, 06 Jan 2021 13:06:25 +0000 Message-ID: References: <877dp59aev.fsf@collares.org> <87pn2xy7ys.fsf@collares.org> <87wnx5woli.fsf@collares.org> <87k0sziell.fsf@collares.org> <87czyil1bc.fsf@collares.org> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24180"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 45433@debbugs.gnu.org To: Mauricio Collares Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 06 14:07:19 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kx8X0-0006CV-Pu for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 14:07:18 +0100 Original-Received: from localhost ([::1]:50006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kx8Wz-0000Zj-Jx for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 08:07:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx8Wp-0000ZD-Iz for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 08:07:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60470) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kx8Wk-0005au-05 for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 08:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kx8Wj-0003ay-Od for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 08:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jan 2021 13:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45433 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: "Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors" , 45433@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160993840413792 (code B ref -1); Wed, 06 Jan 2021 13:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Jan 2021 13:06:44 +0000 Original-Received: from localhost ([127.0.0.1]:43783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kx8WR-0003aN-L1 for submit@debbugs.gnu.org; Wed, 06 Jan 2021 08:06:44 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kx8WQ-0003aG-5C for submit@debbugs.gnu.org; Wed, 06 Jan 2021 08:06:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx8WP-0000Xd-38 for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 08:06:41 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:56560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx8WM-0005Q2-FY for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 08:06:40 -0500 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTP id 106D6P2Y009352; Wed, 6 Jan 2021 13:06:25 GMT In-Reply-To: <87czyil1bc.fsf@collares.org> (Mauricio Collares's message of "Wed, 06 Jan 2021 09:03:35 -0300") Received-SPF: pass client-ip=205.166.94.24; envelope-from=akrl@sdf.org; helo=mx.sdf.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:197416 Archived-At: Mauricio Collares writes: > Andrea Corallo writes: >> All right I did some investigation. This is how the top level form >> looks in the .elc file: >> >> (byte-code >> "\300\301\302\303!\203\f^@\303\202^M^@\304\"\210\305\306!\207" >> [defalias xxx--file-local-name fboundp file-local-name #[257 >> "\300^A\301\"\206^H^@\211\207" [file- >> remote-p localname] 4 "\n\n(fn FILE)"] provide xxx] 4) >> >> When we execute this from the .elc in exec_byte_code we have: >> >> (gdb) p *(bytestr_data+10) >> $43 = 13 '\r' >> >> While loading from .eln we have: >> >> (gdb) p *(bytestr_data+10) >> $31 = 10 '\n' >> >> ATM I've no idea why of this difference, I'm pretty sure in the eln we >> have 13 so might be a reader miss-configuration? >> >> I'll look into it more to see where the difference is coming from, >> hopefully should be pretty narrowed at this stage. > > Hi Andrea, > > You're definitely onto something here! The numbers 13 and 10 seem very > suspicious, and the esxml-query code also only fails with 13 > variables. Maybe the .elc is being opened as a text file when > native-compiling and the newlines are being converted to Unix style when > reading? Indeed this smells of EOL conversion as one is '/r' and the other '/n'. Yesterday I tried quickly setting 'inhibit_eol_conversion' to true while reading but had no success. I might have been wrong as well and perhaps the issue is while printing? I'll look into it more this evening or tomorrow. Andrea