From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Crashes with non-default language environments Date: Sun, 10 Feb 2008 00:17:10 +0200 Organization: JURTA Message-ID: <87zlu96bp2.fsf@jurta.org> References: <87y79wve9b.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202595629 8551 80.91.229.12 (9 Feb 2008 22:20:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Feb 2008 22:20:29 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 09 23:20:52 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JNy42-0000rc-7B for ged-emacs-devel@m.gmane.org; Sat, 09 Feb 2008 23:20:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNy3Z-00006r-0v for ged-emacs-devel@m.gmane.org; Sat, 09 Feb 2008 17:20:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JNy3V-00006b-9B for emacs-devel@gnu.org; Sat, 09 Feb 2008 17:20:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JNy3T-000066-SS for emacs-devel@gnu.org; Sat, 09 Feb 2008 17:20:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNy3T-000063-HT for emacs-devel@gnu.org; Sat, 09 Feb 2008 17:20:15 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JNy3T-0002Yo-9x for emacs-devel@gnu.org; Sat, 09 Feb 2008 17:20:15 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JNy3T-0000Dh-0y for emacs-pretest-bug@gnu.org; Sat, 09 Feb 2008 17:20:15 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JNy3P-0002YO-Pk for emacs-pretest-bug@gnu.org; Sat, 09 Feb 2008 17:20:14 -0500 Original-Received: from anti-4.kiev.sovam.com ([62.64.120.202]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JNy3P-0002YA-EV for emacs-pretest-bug@gnu.org; Sat, 09 Feb 2008 17:20:11 -0500 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by anti-4.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1JNy3G-0005RM-6Y for emacs-pretest-bug@gnu.org; Sun, 10 Feb 2008 00:20:08 +0200 In-Reply-To: <87y79wve9b.fsf@jurta.org> (Juri Linkov's message of "Thu, 07 Feb 2008 21:54:41 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Scanner-Signature: 1e897a521fdb5eac39b1f944f187ca57 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 2208 [Feb 09 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: none X-SpamTest-Rate: 11 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88598 gmane.emacs.pretest.bugs:20968 Archived-At: > In GNU Emacs 23.0.60 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.5) > trying to open an article in Gnus causes an Emacs crash. > > This crash is reproducible with a small .emacs file that contains > only the necessary settings to start Gnus, and a line to set > the language environment `(set-language-environment 'cyrillic-koi8)'. This crash is caused by the corrupt byte-code produced by `byte-compile-lapcode'. `string-make-unibyte' at the end of this function produces different bytecode strings in different language environments. This problem can be narrowed down to: (setq bytes '(135 213 135 212 0 192 131 87 13 11 135 211 0 184 131 86 12 11 135 210 0 176 131 61 25 14 8 135 209 0 167 131 61 25 14 8 0 167 131 87 13 11 135 208 0 152 131 61 25 14 8 0 152 131 86 12 11 135 207 0 137 131 61 24 14 8 135 206 0 128 131 61 24 14 8 0 128 131 87 13 11 135 205 0 113 131 61 24 14 8 0 113 131 86 12 11 135 204 0 98 131 61 23 14 8 0 96 132 61 22 14 8 135 203 0 82 131 61 23 14 8 0 80 132 61 22 14 8 0 82 131 87 13 11 135 202 0 60 131 61 23 14 8 0 58 132 61 22 14 8 0 60 131 86 12 11 135 201 0 38 131 10 135 200 0 32 131 87 13 11 0 32 131 10 135 199 0 20 131 86 12 11 0 20 131 10 135 198 0 8 131 61 9 8)) (setq bytestr (string-make-unibyte (concat (nreverse bytes)))) (aref bytestr 172) => 176 that produces correct bytecode in the default language environment, but after evaluating (set-language-environment 'cyrillic-koi8), the bytecode string differs by one byte: (aref bytestr 172) => 156 -- Juri Linkov http://www.jurta.org/emacs/