unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: 13262@debbugs.gnu.org, eliz@gnu.org, yfb02119@nifty.com
Subject: bug#13262: 24.3.50; crash when multibyte directory name completion.
Date: Mon, 24 Dec 2012 19:21:10 +0100	[thread overview]
Message-ID: <50D89D16.2000806@gmx.at> (raw)
In-Reply-To: <83y5gno1ye.fsf@gnu.org>

 > 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 <redisplay_window_1>, arg=62059445, handlers=54162446, hfun=0x1153298 <redisplay_window_error>) 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 <command_loop_1>, handlers=54230186, hfun=0x1025b4b <cmd_error>) 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 <command_loop_2>, 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)





  reply	other threads:[~2012-12-24 18:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-24  1:25 bug#13262: 24.3.50; crash when multibyte directory name completion yfb02119
2012-12-24  5:10 ` Stefan Monnier
2012-12-24 16:21   ` Eli Zaretskii
2012-12-24 18:21     ` martin rudalics [this message]
2012-12-24 21:20       ` Eli Zaretskii
2012-12-24 21:26         ` Eli Zaretskii
2012-12-25 18:08         ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50D89D16.2000806@gmx.at \
    --to=rudalics@gmx.at \
    --cc=13262@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=yfb02119@nifty.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).