Subject: bug#18815: 25.0.50; emacs crash

From: Eli Zaretskii <[email-masked]>
Date: Mon, 27 Oct 2014 19:18:31 +0200

> From: Yagnesh Raghava Yakkala <[email-masked]>
> Cc: [email-masked]
> Date: Mon, 27 Oct 2014 07:57:40 +0900
> 
> (gdb) frame 5
> #5  0x000000000050fa9d in bidi_level_of_next_char (bidi_it=0x7fffffff3768) at bidi.c:3092
> 3092	    type = bidi_type_of_next_char (bidi_it);
> (gdb) p bidi_it->string
> $1 = {
>   lstring = 17660721, 
>   s = 0x0, 
>   schars = 8, 
>   bufpos = 0, 
>   from_disp_str = false, 
>   unibyte = true
> }
> (gdb) p bidi_it->string.lstring
> $2 = 17660721
> (gdb) xtype
> Lisp_String
> (gdb) xstring
> $3 = (struct Lisp_String *) 0x10d7b30
> " (%l,%c)"

This string comes from column-number-mode.  But if I invoke
column-number-mode, I still cannot reproduce the problem, so there's
something else at work here.  Can you describe what you do to
reproduce the crash?

Also, please show what the following commands produce:

 (gdb) frame 3
 (gdb) p bidi_it->charpos
 (gdb) p bidi_it->next_for_neutral
 (gdb) p bidi_it->prev_for_neutral
 (gdb) p bidi_it->bracket_pairing_pos
 (gdb) p bidi_it->bracket_enclosed_type
 (gdb) p bidi_cache_idx
 (gdb) p bidi_cache_start

Thanks.