Subject: Re: 23.0.60; make-frame-on-display segfaults

From: Óscar Fuentes <[email-masked]>
Date: Sun, 07 Dec 2008 04:56:29 +0100

Chong Yidong <[email-masked]> writes:

> Óscar Fuentes <[email-masked]> writes:
>
>> Program received signal SIGSEGV, Segmentation fault.
>> [Switching to Thread 0x7f2e60e53770 (LWP 14057)]    
>> 0x00000000005629d9 in marker_byte_position (marker=11677457) at marker.c:823
>> 823       if (i < BUF_BEG_BYTE (buf) || i > BUF_Z_BYTE (buf))               
>> (gdb) bt full                                                               
>> #0  0x00000000005629d9 in marker_byte_position (marker=11677457) at marker.c:823
>>         m = (struct Lisp_Marker *) 0xb22ee1                                     
>>         buf = (struct buffer *) 0x8a9463                                        
>>         i = 11677409                                                            
>> #1  0x000000000054f769 in set_buffer_internal_1 (b=0xb22ee0) at buffer.c:1904   
>>         old_buf = (struct buffer *) 0xb2cbd0                                    
>>         tail = 4294967296                                                       
>>         valcontents = 43328032                                                  
>>         tem = 0                                                                 
>> #2  0x000000000044bb76 in redisplay_window (window=43752452, just_this_one_p=0) 
>>     at xdisp.c:13292                                                            
>
> In frame 0, could you do
>
> p *buf
>
> and report what the buffer structure is?

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f7b26496770 (LWP 20004)]    
0x00000000005629d9 in marker_byte_position (marker=11677457) at marker.c:823
823       if (i < BUF_BEG_BYTE (buf) || i > BUF_Z_BYTE (buf))               
(gdb) frame 0                                                               
#0  0x00000000005629d9 in marker_byte_position (marker=11677457) at marker.c:823
823       if (i < BUF_BEG_BYTE (buf) || i > BUF_Z_BYTE (buf))                   
(gdb) p *buf                                                                    
$1 = {size = 18446742974197923840, next = 0xffffffffff, own_text = {            
    beg = 0xaa9eef0000000000 <Address 0xaa9eef0000000000 out of bounds>,        
    gpt = 1099511627776, z = -1099511627776, gpt_byte = 1099511627775,          
    z_byte = -6152219456685735936, gap_size = 24189255811072, modiff = 0,       
    chars_modiff = -256, save_modiff = -1, overlay_modiff = 255,                
    beg_unchanged = -6152244745453174784, end_unchanged = 13194139533312,       
    unchanged_modified = 0, overlay_unchanged_modified = -256,                  
    intervals = 0xffffffffff, markers = 0xaa9ec90000000000,                     
    inhibit_shrinking = 0}, text = 0xffffff0000000000, pt = 1099511627775,      
  pt_byte = -6152284327871774720, begv = 15393162788864,                        
  begv_byte = -1099511627776, zv = 1099511627775,                               
  zv_byte = -6152300820546191360, base_buffer = 0xa0000000000,                  
  local_flags = "\000\000\000\000\000��������\000\000\000\000\000\000\000\000\230\236�\000\000\000\000\000\020\000\000\000\000\000\000\000��������\000\000\000\000", modtime = -1432451328, auto_save_modified = 0, display_error_modiff = 2560,      
  auto_save_failure_time = 0, last_window_start = 1099511627775,                  
  clip_changed = 0, newline_cache = 0xf0000000000,                                
  width_run_cache = 0xffffff0000000000, prevent_redisplay_optimizations_p = 1,    
  overlays_before = 0xaa9e6c0000000000, overlays_after = 0xf0000000000,           
  overlay_center = -1099511627776, undo_list = 1099511627775,                     
  name = -6152378885871763456, filename = 17592186044416,                         
  directory = -1099511627776, backed_up = 1099511627775,                          
  save_length = -6152397577569435648, auto_save_file_name = 25288767438848,       
  read_only = -1099511627776, mark = 1099511627775,                               
  local_var_alist = -6152423965848502272, major_mode = 4398046511104,             
  mode_name = -1099511627776, mode_line_format = 1099511627775,                   
  header_line_format = -6152429463406641152, keymap = 16492674416640,             
  abbrev_table = -1099511627776, syntax_table = 1099511627775,                    
  category_table = -6152447055592685568, case_fold_search = 14293651161088,       
  tab_width = -1099511627776, fill_column = 1099511627775,
---Type <return> to continue, or q <return> to quit---
  left_margin = -6152462448755474432, auto_fill_function = 27487790694400,
  buffer_file_type = -1099511627776, downcase_table = 1099511627775,
  upcase_table = -6152491036057796608, case_canon_table = 7696581394432,
  case_eqv_table = -1099511627776, truncate_lines = 1099511627775,
  word_wrap = -6152499832150818816, ctl_arrow = 7696581394432,
  direction_reversed = -1099511627776, selective_display = 1099511627775,
  selective_display_ellipses = -6152508628243841024,
  minor_modes = 7696581394432, overwrite_mode = -1099511627776,
  abbrev_mode = 1099511627775, display_table = -6152517424336863232,
  mark_active = 6597069766656, enable_multibyte_characters = -1099511627776,
  buffer_file_coding_system = 1099511627775, file_format = -6152525120918257664,
  auto_save_file_format = 10995116277760,
  cache_long_line_scans = -1099511627776, width_table = 1099511627775,
  pt_marker = -6152537215546163200, begv_marker = 15393162788864,
  zv_marker = -1099511627776, point_before_scroll = 1099511627775,
  file_truename = -6152553708220579840, invisibility_spec = 15393162788864,
  last_selected_window = -1099511627776, display_count = 1099511627775,
  left_margin_cols = -6152570200894996480, right_margin_cols = 12094627905536,
  left_fringe_width = -1099511627776, right_fringe_width = 1099511627775,
  fringes_outside_margins = -6152583395034529792,
  scroll_bar_width = 12094627905536, vertical_scroll_bar_type = -1099511627776,
  indicate_empty_lines = 1099511627775,
  indicate_buffer_boundaries = -6152596589174063104,
  fringe_indicator_alist = 8796093022208, fringe_cursor_alist = -1099511627776,
  display_time = 1099511627775, scroll_up_aggressively = -6152606484778713088,
  scroll_down_aggressively = 6597069766656, cursor_type = -1099511627776,
  extra_line_spacing = 1099511627775,
  cursor_in_non_selected_windows = -6152614181360107520}
(gdb)

-- 
Oscar