From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: [BUG] coding.c/decode_coding_iso2022 Date: Fri, 15 Aug 2003 09:42:38 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200308150042.JAA27994@etlken.m17n.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1060908224 13374 80.91.224.253 (15 Aug 2003 00:43:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2003 00:43:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Aug 15 02:43:42 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19nSgw-0002Ks-00 for ; Fri, 15 Aug 2003 02:43:42 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19nShi-00047k-00 for ; Fri, 15 Aug 2003 02:44:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19nSgi-0005ou-Dc for emacs-devel@quimby.gnus.org; Thu, 14 Aug 2003 20:43:28 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19nSga-0005dC-3g for emacs-devel@gnu.org; Thu, 14 Aug 2003 20:43:20 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19nSg3-00042g-Ew for emacs-devel@gnu.org; Thu, 14 Aug 2003 20:43:18 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19nSg2-0003t6-LM for emacs-devel@gnu.org; Thu, 14 Aug 2003 20:42:46 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6p2/3.7W-20010518204228) with ESMTP id h7F0gdu26244; Fri, 15 Aug 2003 09:42:39 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6/3.7W-20010823150639) with ESMTP id h7F0gd905528; Fri, 15 Aug 2003 09:42:39 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id JAA27994; Fri, 15 Aug 2003 09:42:38 +0900 (JST) Original-To: dave@boost-consulting.com In-reply-to: (message from David Abrahams on Thu, 14 Aug 2003 13:31:59 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15962 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15962 In article , David Abrahams writes: > Tired of the numerous crashes I've been getting under NT, I > recompiled emacs with all the runtime checks enabled. I think I'll > be posting lots of reports. > The title function uses variable c2 uninitialized during this phase > of the make process: > Loading language/devanagari (source)... > The stack trace is: > ntdll.dll!77f75a58() > temacs.exe!failwithmessage(void * retaddr=0x011b5c7f, int crttype=0x00000001, int errnum=0x00000003, const char * msg=0x0111431e) + 0x106 C++ > temacs.exe!_RTC_UninitUse(const char * varname=0x01114900) + 0x9c C++ >> temacs.exe!decode_coding_iso2022() Line 2169 + 0x33c C It seems that the relevant line is this: c = DECODE_ISO_CHARACTER (charset, c1, c2); But, ... [...] > Locals at the point of the error: > c2 0xcccccccc int > c1 0x0000003b int > + coding 0x0081f1e4 {type=coding_type_iso2022 eol_type=0x00000001 common_flags=0x00000007 ...} coding_system * > + source 0x0158da80 ";;; devanagari.el --- Support for Devanagari -*- coding: iso-2022-7bit; no-byte-compile: t -*- [...] > + destination 0x0158d2b0 "" unsigned char * > src_bytes 0x000006b7 int > dst_bytes 0x00000000 int > charset1 0xffffffff int > charset 0x00000000 int > + src 0x0158da81 ";; devanagari.el --- Support for Devanagari -*- coding: iso-2022-7bit; no-byte-compile: t -*- [...] > translation_table 0x41398000 int > c 0xcccccccc int > charset0 0x00000000 int > + src_end 0x0158e137 "" unsigned char * > + dst_end 0x0158d2b0 "" unsigned char * > + dst 0x0158d2b0 "" unsigned char * > + src_base 0x0158da80 ";;; devanagari.el --- Support for Devanagari -*- coding: iso-2022-7bit; no-byte-compile: t -*- [...] > safe_chars 0x1137e834 int As the value of charset is 0, c2 is never referred in the macro DECODE_ISO_CHARACTER except for as the last argument to the function translate_char. And in that function also, as charset is zero, c2 is never referred. So, I think this is not the reason of the crash of your emacs. --- Ken'ichi HANDA handa@m17n.org