all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#2314: Crash with word-wrap and wrap-prefix
@ 2009-02-12 22:01 Juri Linkov
  0 siblings, 0 replies; 2+ messages in thread
From: Juri Linkov @ 2009-02-12 22:01 UTC (permalink / raw
  To: emacs-pretest-bug

I was trying to report a weirdness of a long wrap-prefix
with non-nil word-wrap but got a crash.

With emacs -Q, evaluate in *scratch*:

(progn
  (setq word-wrap t wrap-prefix (make-string 120 ?\s))
  (dotimes (i 25) (insert (make-string 120 ?.) "\n")))

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f0ea59a67a0 (LWP 9334)]
0x0000000000430f3f in underlying_face_id (it=0x7fffad9d6c30) at xdisp.c:3594
3594        if (NILP (it->stack[i].string))
(gdb) bt
#0  0x0000000000430f3f in underlying_face_id (it=0x7fffad9d6c30) at xdisp.c:3594
#1  0x0000000000430d1e in handle_face_prop (it=0x7fffad9d6c30) at xdisp.c:3534
#2  0x0000000000430071 in handle_stop (it=0x7fffad9d6c30) at xdisp.c:3134
#3  0x000000000043870f in next_element_from_string (it=0x7fffad9d6c30) at xdisp.c:6270
#4  0x000000000043684a in get_next_display_element (it=0x7fffad9d6c30) at xdisp.c:5674
#5  0x0000000000452fdb in display_line (it=0x7fffad9d6c30) at xdisp.c:16597
#6  0x000000000044b617 in try_window (window=15654180, pos={charpos = 1, bytepos = 1}, check_margins=1) at xdisp.c:14054
#7  0x000000000044a1ff in redisplay_window (window=15654180, just_this_one_p=0) at xdisp.c:13677
#8  0x0000000000445cae in redisplay_window_0 (window=15654180) at xdisp.c:12272
#9  0x0000000000665594 in internal_condition_case_1 (bfun=0x445c72 <redisplay_window_0>, arg=15654180, handlers=12715829, hfun=0x445c47 <redisplay_window_error>) at eval.c:1559
#10 0x0000000000445c28 in redisplay_windows (window=15654180) at xdisp.c:12251
#11 0x0000000000444daf in redisplay_internal (preserve_echo_area=0) at xdisp.c:11827
#12 0x0000000000442c5b in redisplay () at xdisp.c:11033
#13 0x00000000005c5dd6 in read_char (commandflag=1, nmaps=2, maps=0x7fffad9d8f20, prev_event=12357345, used_mouse_menu=0x7fffad9d92e8, end_time=0x0) at keyboard.c:2703
#14 0x00000000005d2b6b in read_key_sequence (keybuf=0x7fffad9d9490, bufsize=30, prompt=12357345, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9432
#15 0x00000000005c2b75 in command_loop_1 () at keyboard.c:1640
#16 0x000000000066540a in internal_condition_case (bfun=0x5c27db <command_loop_1>, handlers=12444417, hfun=0x5c210c <cmd_error>) at eval.c:1511
#17 0x00000000005c24fa in command_loop_2 () at keyboard.c:1357
#18 0x0000000000664de6 in internal_catch (tag=12425809, func=0x5c24e0 <command_loop_2>, arg=12357345) at eval.c:1247
#19 0x00000000005c24b4 in command_loop () at keyboard.c:1336
#20 0x00000000005c1c52 in recursive_edit_1 () at keyboard.c:951
#21 0x00000000005c1df5 in Frecursive_edit () at keyboard.c:1013
#22 0x00000000005c0269 in main (argc=2, argv=0x7fffad9d9db8) at emacs.c:1852

GNU Emacs 23.0.90 (x86_64-pc-linux-gnu) of 2009-02-12

-- 
Juri Linkov
http://www.jurta.org/emacs/






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#2314: Crash with word-wrap and wrap-prefix
@ 2009-02-14 14:31 Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2009-02-14 14:31 UTC (permalink / raw
  To: Juri Linkov; +Cc: 2314

> I was trying to report a weirdness of a long wrap-prefix with non-nil
> word-wrap but got a crash.

Looks like the iterator stack is overflowing, i.e. the line

  xassert (it->sp < IT_STACK_SIZE);

in push_it would have been triggered, if the assertions were enabled.
I'll see if I can come up with a fix.






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-14 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-14 14:31 bug#2314: Crash with word-wrap and wrap-prefix Chong Yidong
  -- strict thread matches above, loose matches on Subject: below --
2009-02-12 22:01 Juri Linkov

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.