From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#13262: 24.3.50; crash when multibyte directory name completion. Date: Mon, 24 Dec 2012 19:21:10 +0100 Message-ID: <50D89D16.2000806@gmx.at> References: <86bodkb5rp.fsf@yfb02119.nifty.com> <83y5gno1ye.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1356373296 717 80.91.229.3 (24 Dec 2012 18:21:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Dec 2012 18:21:36 +0000 (UTC) To: 13262@debbugs.gnu.org, eliz@gnu.org, yfb02119@nifty.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 24 19:21:51 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TnCes-00089a-Gm for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Dec 2012 19:21:50 +0100 Original-Received: from localhost ([::1]:35497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnCee-00007M-9r for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Dec 2012 13:21:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnCea-000077-FS for bug-gnu-emacs@gnu.org; Mon, 24 Dec 2012 13:21:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TnCeY-0005K4-V9 for bug-gnu-emacs@gnu.org; Mon, 24 Dec 2012 13:21:32 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnCeY-0005Jz-Rh for bug-gnu-emacs@gnu.org; Mon, 24 Dec 2012 13:21:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TnCf4-0001Sf-1m for bug-gnu-emacs@gnu.org; Mon, 24 Dec 2012 13:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Dec 2012 18:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13262 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13262-submit@debbugs.gnu.org id=B13262.13563733185608 (code B ref 13262); Mon, 24 Dec 2012 18:22:01 +0000 Original-Received: (at 13262) by debbugs.gnu.org; 24 Dec 2012 18:21:58 +0000 Original-Received: from localhost ([127.0.0.1]:58424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TnCf0-0001SP-4t for submit@debbugs.gnu.org; Mon, 24 Dec 2012 13:21:58 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:57172) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TnCex-0001SG-1e for 13262@debbugs.gnu.org; Mon, 24 Dec 2012 13:21:56 -0500 Original-Received: from mailout-de.gmx.net ([10.1.76.36]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MNfPA-1Th87E2TmM-007GrD for <13262@debbugs.gnu.org>; Mon, 24 Dec 2012 19:21:22 +0100 Original-Received: (qmail invoked by alias); 24 Dec 2012 18:21:22 -0000 Original-Received: from 62-47-43-37.adsl.highway.telekom.at (EHLO [62.47.43.37]) [62.47.43.37] by mail.gmx.net (mp036) with SMTP; 24 Dec 2012 19:21:22 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18q+Xpm6TgqnSOyinyoBBmAEwhmzxQmDvOsVhMcx+ a9ckemVxsHg4aW In-Reply-To: <83y5gno1ye.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69013 Archived-At: > Sorry, the changes touch quite a few places, but they all had the same > problem: unwarranted assumptions that input Lisp strings passed to > primitives are multibyte. The crash happened because file completion > calls directory-file-name with a unibyte string (an encoded file > name). A similar mess was found and fixed in file-name-directory and > in expand-file-name. There's a crash I can reproduce easily but only randomly with my setup and not with emacs -Q (backtrace with actual trunk). Can it be related? martin Program received signal SIGSEGV, Segmentation fault. 0x0107160b in FETCH_MULTIBYTE_CHAR (pos=54295370) at buffer.h:1168 1168 return STRING_CHAR (p); (gdb) backtrace #0 0x0107160b in FETCH_MULTIBYTE_CHAR (pos=54295370) at buffer.h:1168 #1 0x01140efb in handle_composition_prop (it=0x82d32c) at xdisp.c:5273 #2 0x0113d072 in handle_stop (it=0x82d32c) at xdisp.c:3253 #3 0x0114367b in reseat (it=0x82d32c, pos=..., force_p=1) at xdisp.c:6297 #4 0x0113c5ed in init_iterator (it=0x82d32c, w=0x3b2f3b0, charpos=4, bytepos=54295370, row=0x3b36000, base_face_id=DEFAULT_FACE_ID) at xdisp.c:2910 #5 0x0113c708 in start_display (it=0x82d32c, w=0x3b2f3b0, pos=...) at xdisp.c:2926 #6 0x01158363 in redisplay_window (window=62059445, just_this_one_p=1) at xdisp.c:15939 #7 0x0115332f in redisplay_window_1 (window=62059445) at xdisp.c:13888 #8 0x0100b74b in internal_condition_case_1 (bfun=0x11532f9 , arg=62059445, handlers=54162446, hfun=0x1153298 ) at eval.c:1230 #9 0x01152828 in redisplay_internal () at xdisp.c:13522 #10 0x01150b01 in redisplay () at xdisp.c:12730 #11 0x01027f93 in read_char (commandflag=1, nmaps=3, maps=0x82f9b0, prev_event=54179866, used_mouse_menu=0x82fa83, end_time=0x0) at keyboard.c:2421 #12 0x01032315 in read_key_sequence (keybuf=0x82fc00, bufsize=30, prompt=54179866, dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true) at keyboard.c:9232 #13 0x010264b8 in command_loop_1 () at keyboard.c:1453 #14 0x0100b663 in internal_condition_case (bfun=0x1026155 , handlers=54230186, hfun=0x1025b4b ) at eval.c:1192 #15 0x01025ed2 in command_loop_2 (ignore=54179866) at keyboard.c:1168 #16 0x0100b1e1 in internal_catch (tag=54220042, func=0x1025eae , arg=54179866) at eval.c:963 #17 0x01025e8e in command_loop () at keyboard.c:1147 #18 0x01025799 in recursive_edit_1 () at keyboard.c:780 #19 0x010258e8 in Frecursive_edit () at keyboard.c:844 #20 0x010027ad in main (argc=1, argv=0xa32808) at emacs.c:1573 Lisp Backtrace: "redisplay_internal (C function)" (0x144723c)