From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#8145: Crash in multibyte_chars_in_text Date: Tue, 1 Mar 2011 23:02:29 +0100 Message-ID: References: <09935B6163317341A2DD2CFF0BC3A99B41CE17A7CC@Fluor.smr.intern> <83y64yy90t.fsf@gnu.org> <09935B6163317341A2DD2CFF0BC3A99B41CE17A7D3@Fluor.smr.intern> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299017238 21034 80.91.229.12 (1 Mar 2011 22:07:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2011 22:07:18 +0000 (UTC) Cc: "8145@debbugs.gnu.org" <8145@debbugs.gnu.org> To: Michel de Ruiter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 01 23:07:11 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PuXig-0007JN-Hu for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Mar 2011 23:07:03 +0100 Original-Received: from localhost ([127.0.0.1]:33361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuXif-0007Jf-Oi for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Mar 2011 17:07:01 -0500 Original-Received: from [140.186.70.92] (port=50849 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuXiU-0007Eq-U7 for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2011 17:06:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuXiT-00031w-KK for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2011 17:06:50 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuXiT-00031n-IM for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2011 17:06:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PuXen-0003es-Nb; Tue, 01 Mar 2011 17:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Mar 2011 22:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8145 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8145-submit@debbugs.gnu.org id=B8145.129901697814052 (code B ref 8145); Tue, 01 Mar 2011 22:03:01 +0000 Original-Received: (at 8145) by debbugs.gnu.org; 1 Mar 2011 22:02:58 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PuXej-0003eb-JU for submit@debbugs.gnu.org; Tue, 01 Mar 2011 17:02:57 -0500 Original-Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PuXeh-0003eO-0Z for 8145@debbugs.gnu.org; Tue, 01 Mar 2011 17:02:56 -0500 Original-Received: by eye13 with SMTP id 13so1861498eye.3 for <8145@debbugs.gnu.org>; Tue, 01 Mar 2011 14:02:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=2ox5ItB/lMeKgYpJXGNCJuHhGoSjQNGU/Vk7banf3Os=; b=Jb9F+keq66zK1wgnLi2FpCu0hLEtcYoODTkpCwUU9WpCyE/1i+wCPHYrwyMC0ytiRV RVusirmrsXj7Axowy9kCUx0u24OR7bL/sQ8vnEG3OLGXuupXTK59DN21eDOkejSWvWMC tB/roGpiTiyApW76Hv0Djo4O1rkJUqHt7bmsw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=wLkX+FDR1GSjj3zAguMUmUpUB1xvic7LBaZX56RfCzQK3bTRsSR4Pzx6EcuDWUxWG1 H/dva+DLkEHSwgFd7FPf9UcuEbQcW8PM+SK60y9kcEQ8+0xwdW7Cy9YteM9X+PD69QvU zS1+qPb0aeS6fVKUdLJVWHxbTZtK0a09DpkUg= Original-Received: by 10.213.26.20 with SMTP id b20mr2962315ebc.55.1299016969219; Tue, 01 Mar 2011 14:02:49 -0800 (PST) Original-Received: by 10.213.108.136 with HTTP; Tue, 1 Mar 2011 14:02:29 -0800 (PST) In-Reply-To: <09935B6163317341A2DD2CFF0BC3A99B41CE17A7D3@Fluor.smr.intern> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 01 Mar 2011 17:03:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44488 Archived-At: On Tue, Mar 1, 2011 at 10:35 PM, Michel de Ruiter wrot= e: >> > FWIW, I cannot reproduce this. =C2=A0I don't have a U: drive, and coul= dn't >> > make a directory with a Latin character (my locale is different), but >> > I did create a directory on D: with a non-ASCII character it its name, >> > and in that directory put an empty file "ab". =C2=A0"C-x C-f cd" didn'= t >> > crash. >> I can reproduce it using C: instead of U: with an unpatched build: >> GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-02-15 > > I just tested C:\aAaa=C3=A9\aa and it also crashes. > The capital letter and the latin character are both necessary. > In C:\aA=C3=A9\aa, Ctrl-x Ctrl-f crashes immediately, before I can type a= ny extra characters. > > This seems to be the shortest way to the crash: > - set both settings to t as described > - Ctrl-x Ctrl-f A Ctrl-q 1 3 0 RET > Works everywhere, and you don't need any special directory on disk. With your original reciepe (but using C:) I get this backtrace: Breakpoint 1, w32_abort () at w32fns.c:7175 warning: Source file is more recent than executable. 7175 button =3D MessageBox (NULL, (gdb) bt #0 w32_abort () at w32fns.c:7175 #1 0x011a5bb8 in multibyte_chars_in_text (ptr=3D0x82e0d0 "\343\251/ab/cd", nbytes=3D8) at character.c:546 #2 0x01024bda in make_specified_string (contents=3D0x82e0d0 "\343\251/ab/cd", nchars=3D-1, nbytes=3D8, multibyte=3D1) at alloc.c:2353 #3 0x0106b3e3 in Fsubstitute_in_file_name (filename=3D51940081) at fileio.= c:1708 #4 0x01021d14 in Ffuncall (nargs=3D2, args=3D0x82e220) at eval.c:2842 #5 0x010c80ad in Fbyte_code (bytestr=3D19539033, vector=3D19539061, maxdepth=3D16) at bytecode.c:676 #6 0x01020db8 in Feval (form=3D19539022) at eval.c:2257 #7 0x0101f5f3 in internal_lisp_condition_case (var=3D49215514, bodyform=3D19539022, handlers=3D18905790) at eval.c:1355 #8 0x010c8a45 in Fbyte_code (bytestr=3D19539153, vector=3D19539181, maxdepth=3D20) at bytecode.c:866 #9 0x01020db8 in Feval (form=3D19539142) at eval.c:2257 #10 0x0101f5f3 in internal_lisp_condition_case (var=3D49215514, bodyform=3D19539142, handlers=3D18905790) at eval.c:1355 #11 0x010c8a45 in Fbyte_code (bytestr=3D18920449, vector=3D19539117, maxdepth=3D12) at bytecode.c:866 #12 0x010224e9 in funcall_lambda (fun=3D19539085, nargs=3D0, arg_vector=3D0x82eb58) at eval.c:3028 #13 0x01021f31 in Ffuncall (nargs=3D1, args=3D0x82eb54) at eval.c:2891 #14 0x0102172c in run_hook_with_args (nargs=3D1, args=3D0x82eb54, cond=3Dto_completion) at eval.c:2580 #15 0x010214bf in Frun_hooks (nargs=3D1, args=3D0x82ec0c) at eval.c:2443 #16 0x01021c26 in Ffuncall (nargs=3D2, args=3D0x82ec08) at eval.c:2824 #17 0x0102182e in call1 (fn=3D49371762, arg1=3D49261098) at eval.c:2643 #18 0x01005c3a in safe_run_hooks_1 () at keyboard.c:1822 #19 0x0101f6fd in internal_condition_case (bfun=3D0x1005c07 , handlers=3D49215538, hfun=3D0x1005c42 ) at eval.c:1408 #20 0x01005cda in safe_run_hooks (hook=3D49261098) at keyboard.c:1848 #21 0x01004fb6 in command_loop_1 () at keyboard.c:1545 #22 0x0101f6fd in internal_condition_case (bfun=3D0x100489d , handlers=3D49269146, hfun=3D0x1004292 ) at eval.c:1408 #23 0x01004602 in command_loop_2 (ignore=3D49215514) at keyboard.c:1129 #24 0x0101f1ee in internal_catch (tag=3D49371402, func=3D0x10045df , arg=3D49215514) at eval.c:1152 #25 0x01004569 in command_loop () at keyboard.c:1094 #26 0x01003eae in recursive_edit_1 () at keyboard.c:731 #27 0x010b20be in read_minibuf (map=3D49204638, initial=3D51937841, prompt=3D18990361, backup_n=3D0, expflag=3D0, histvar=3D49277626, histpos=3D0, defalt=3D271132113, allow_props=3D0, inherit_input_method=3D0) at minibuf.c:652 #28 0x010b3e54 in Fcompleting_read (prompt=3D18990361, collection=3D49400906, predicate=3D49277146, require_match=3D49638242, initial_input=3D51937841, hist=3D49277626, def=3D271132113, inherit_input_method=3D49215514) at minibuf.c:1719 #29 0x01021ee9 in Ffuncall (nargs=3D8, args=3D0x82f220) at eval.c:2875 #30 0x010c80ad in Fbyte_code (bytestr=3D19100337, vector=3D19100357, maxdepth=3D36) at bytecode.c:676 #31 0x010224e9 in funcall_lambda (fun=3D19100261, nargs=3D4, arg_vector=3D0x82f474) at eval.c:3028 #32 0x01021f31 in Ffuncall (nargs=3D5, args=3D0x82f470) at eval.c:2891 #33 0x010c80ad in Fbyte_code (bytestr=3D19015201, vector=3D19015221, maxdepth=3D20) at bytecode.c:676 #34 0x010224e9 in funcall_lambda (fun=3D19015173, nargs=3D2, arg_vector=3D0x82f6b4) at eval.c:3028 #35 0x01021f31 in Ffuncall (nargs=3D3, args=3D0x82f6b0) at eval.c:2891 #36 0x010c80ad in Fbyte_code (bytestr=3D19015409, vector=3D19015437, maxdepth=3D12) at bytecode.c:676 #37 0x01020db8 in Feval (form=3D19015398) at eval.c:2257 #38 0x010c5be9 in Fcall_interactively (function=3D50251186, record_flag=3D49215514, keys=3D49236741) at callint.c:338 #39 0x01021d68 in Ffuncall (nargs=3D4, args=3D0x82fb70) at eval.c:2849 #40 0x010218a8 in call3 (fn=3D49384338, arg1=3D50251186, arg2=3D49215514, arg3=3D49215514) at eval.c:2674 #41 0x0101333b in Fcommand_execute (cmd=3D50251186, record_flag=3D49215514, keys=3D49215514, special=3D49215514) at keyboard.c:10180 #42 0x01004f5d in command_loop_1 () at keyboard.c:1528 #43 0x0101f6fd in internal_condition_case (bfun=3D0x100489d , handlers=3D49269146, hfun=3D0x1004292 ) at eval.c:1408 #44 0x01004602 in command_loop_2 (ignore=3D49215514) at keyboard.c:1129 #45 0x0101f1ee in internal_catch (tag=3D49267242, func=3D0x10045df , arg=3D49215514) at eval.c:1152 #46 0x010045ba in command_loop () at keyboard.c:1108 #47 0x01003eae in recursive_edit_1 () at keyboard.c:731 #48 0x01004012 in Frecursive_edit () at keyboard.c:793 #49 0x01002767 in main (argc=3D2, argv=3D0xb23d70) at emacs.c:1684 Lisp Backtrace: "substitute-in-file-name" (0x82e224) "byte-code" (0x82e3d0) "byte-code" (0x82e720) "rfn-eshadow-update-overlay" (0x82eb58) "run-hooks" (0x82ec0c) "completing-read" (0x82f224) "read-file-name" (0x82f474) "find-file-read-args" (0x82f6b4) "byte-code" (0x82f860) "call-interactively" (0x82fb74) (gdb)