[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13262: 24.3.50; crash when multibyte directory name completion.
From: |
martin rudalics |
Subject: |
bug#13262: 24.3.50; crash when multibyte directory name completion. |
Date: |
Mon, 24 Dec 2012 19:21:10 +0100 |
> 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)