Subject: bug#1379: Emacs (GTK+) segfaulting with X11 dual-head

From: [email-masked] (Ashish SHUKLA)
Date: Mon, 08 Jul 2013 12:34:21 +0530

Hi,

Emacs (compiled with GTK+ 3.0 X11 toolkit) support is segfaulting for me on
FreeBSD 9.1-RELEASE (amd64).

Following are the steps to reproduce it:

1. Start Emacs: emacs -Q
2. Create an Emacs frame on a different DISPLAY: M-x make-frame-on-display :0.1 RET
3. Press C-z in primary Emacs frame to minimize.
4. Restore it.
5. It segfaults.

I've run it under GDB, and following is the output of "backtrace full":

#v+
Starting program: /usr/local/bin/emacs-24.3.50 -Q
[New LWP 100823]
[New Thread 15ed800 (LWP 100823/emacs-24.3.50)]
[New Thread d3c000 (LWP 101535/emacs-24.3.50)]
[New Thread e3a800 (LWP 101536/emacs-24.3.50)]
[New Thread e45c00 (LWP 101537/emacs-24.3.50)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 15ed800 (LWP 100823/emacs-24.3.50)]
0x00000008050647c4 in g_slice_free1 () from /usr/local/lib/libglib-2.0.so.0
#0  0x00000008050647c4 in g_slice_free1 () from /usr/local/lib/libglib-2.0.so.0
No symbol table info available.
#1  0x0000000801bddadb in gtk_style_context_set_background () from /usr/local/lib/libgtk-3.so.0
No symbol table info available.
#2  0x0000000801c81d86 in gtk_widget_freeze_child_notify () from /usr/local/lib/libgtk-3.so.0
No symbol table info available.
#3  0x000000080490ab6a in g_closure_unref () from /usr/local/lib/libgobject-2.0.so.0
No symbol table info available.
#4  0x0000000804921438 in g_signal_emit_valist () from /usr/local/lib/libgobject-2.0.so.0
No symbol table info available.
#5  0x00000008049220e3 in g_signal_emit () from /usr/local/lib/libgobject-2.0.so.0
No symbol table info available.
#6  0x0000000801c7c7da in gtk_widget_queue_resize () from /usr/local/lib/libgtk-3.so.0
No symbol table info available.
#7  0x000000080490ab6a in g_closure_unref () from /usr/local/lib/libgobject-2.0.so.0
No symbol table info available.
#8  0x0000000804921438 in g_signal_emit_valist () from /usr/local/lib/libgobject-2.0.so.0
No symbol table info available.
#9  0x00000008049220e3 in g_signal_emit () from /usr/local/lib/libgobject-2.0.so.0
No symbol table info available.
#10 0x0000000801bdbb72 in gtk_style_context_invalidate () from /usr/local/lib/libgtk-3.so.0
No symbol table info available.
#11 0x0000000801c7732e in gtk_widget_get_style_context () from /usr/local/lib/libgtk-3.so.0
No symbol table info available.
#12 0x0000000801b19c81 in gtk_event_box_new () from /usr/local/lib/libgtk-3.so.0
No symbol table info available.
#13 0x000000080490ab6a in g_closure_unref () from /usr/local/lib/libgobject-2.0.so.0
No symbol table info available.
#14 0x0000000804921438 in g_signal_emit_valist () from /usr/local/lib/libgobject-2.0.so.0
No symbol table info available.
#15 0x00000008049220e3 in g_signal_emit () from /usr/local/lib/libgobject-2.0.so.0
No symbol table info available.
#16 0x0000000801c7d929 in gtk_widget_realize () from /usr/local/lib/libgtk-3.so.0
No symbol table info available.
#17 0x0000000801c7e1d0 in gtk_widget_set_parent () from /usr/local/lib/libgtk-3.so.0
No symbol table info available.
#18 0x0000000801b37d55 in gtk_fixed_put () from /usr/local/lib/libgtk-3.so.0
No symbol table info available.
#19 0x0000000000523c31 in xg_create_scroll_bar (f=0x127dc50, bar=0x12d8f80, scroll_callback=0x4fe972 <xg_scroll_callback>, end_callback=0x4feb5e <xg_end_scroll_callback>, scroll_bar_name=0x68b9c8 "verticalScrollBar") at gtkutil.c:3673
	wscroll = (GtkWidget *) 0xe24240
	webox = (GtkWidget *) 0x1270940
	scroll_id = 0
	vadj = (GtkAdjustment *) 0x1a51800
#20 0x00000000004fec04 in x_create_toolkit_scroll_bar (f=0x127dc50, bar=0x12d8f80) at xterm.c:4583
	scroll_bar_name = 0x68b9c8 "verticalScrollBar"
#21 0x00000000004fec88 in x_scroll_bar_create (w=0x127ec50, top=0, left=586, width=16, height=462) at xterm.c:4929
	f = (struct frame *) 0x127dc50
	bar = (struct scroll_bar *) 0x12d8f80
	barobj = 68719477198
#22 0x00000000004ff52e in XTset_vertical_scroll_bar (w=0x127ec50, portion=191, whole=191, position=0) at xterm.c:5231
	f = (struct frame *) 0x127dc50
	barobj = 140737488324560
	bar = (struct scroll_bar *) 0xc78bc3
	top = 0
	height = 462
	left = 581
	sb_left = 586
	width = 21
	sb_width = 16
	window_y = 0
	window_height = 462
	fringe_extended_p = 1
#23 0x0000000000454a1d in set_vertical_scroll_bar (w=0x127ec50) at xdisp.c:15280
	start = 0
	end = 191
	whole = 191
#24 0x0000000000457ba4 in redisplay_window (window=19393621, just_this_one_p=0) at xdisp.c:16144
	w = (struct window *) 0x127ec50
	f = (struct frame *) 0x127dc50
	buffer = (struct buffer *) 0xc78400
	old = (struct buffer *) 0xc78400
	lpoint = {
  charpos = 192, 
  bytepos = 192
}
	opoint = {
  charpos = 192, 
  bytepos = 192
}
	startp = {
  charpos = 1, 
  bytepos = 1
}
	update_mode_line = 1
	tem = 0
	it = {
  window = 0, 
  w = 0x8034f4ccd, 
  f = 0x1a1d000, 
  method = 55468925, 
  stop_charpos = 0, 
  prev_stop = 14411264, 
  base_level_stop = 0, 
  end_charpos = 14411264, 
  s = 0xe7f400 "\v", 
  string_nchars = 0, 
  region_beg_charpos = 140737488328664, 
  region_end_charpos = 34444180673, 
  redisplay_end_trigger_charpos = 0, 
  multibyte_p = 1, 
  header_line_p = 0, 
  string_from_display_prop_p = 1, 
  string_from_prefix_prop_p = 0, 
  from_disp_prop_p = 1, 
  ellipsis_p = 1, 
  avoid_cursor_p = 1, 
  dp = 0xdbe600, 
  dpvec = 0xb9f070, 
  dpend = 0x7fffffff9800, 
  dpvec_char_len = 5976420, 
  dpvec_face_id = 0, 
  saved_face_id = 0, 
  ctl_chars = {12185712, 4307153008, 12694626, 12694626, 12694626, 140737488328784, 5979619, 13152256, 17179842632, 12694626, 13361730, 12185712, 12694576, 13361728, 140737488328800, 140737488328832}, 
  start = {
    pos = {
      charpos = 5979723, 
      bytepos = 12185712
    }, 
    overlay_string_index = 12694626, 
    string_pos = {
      charpos = 12694626, 
      bytepos = 13361730
    }, 
    dpvec_index = -26400
  }, 
  current = {
    pos = {
      charpos = 5594312, 
      bytepos = 12694578
    }, 
    overlay_string_index = 12897596466, 
    string_pos = {
      charpos = 13152256, 
      bytepos = 12694626
    }, 
    dpvec_index = 13152261
  }, 
  n_overlay_strings = 13361730, 
  overlay_strings_charpos = 12185712, 
  overlay_strings = {17179869184, 12694578, 13361728, 140737488328960, 140737488328960, 5932969, 12694578, 140737488332496, 4509745, 140737488329024, 6473959, 1373265466, 26988544, 8192, 0, 140737488329040}, 
  string_overlays = {12694578, 21474810208, 12694578, 140737488329072, 17218258, 140737488329104, 17218256, 140737488329136, 5978146, 12694578, 17218258, 140737488329152, 12694578, 140737488329520, 6086258, 140737488329200}, 
  string = 6132423, 
  from_overlay = 12694578, 
  stack = {{
      string = 12694578, 
      string_nchars = 12694578, 
      end_charpos = 22749696, 
      stop_charpos = 140737488329584, 
      prev_stop = 17218258, 
      base_level_stop = 140737488329232, 
      cmp_it = {
        stop_pos = 5973808, 
        id = 12694578, 
        ch = 12694578, 
        rule_idx = 0, 
        lookback = 5933031, 
        nglyphs = 22749696, 
        reversed_p = false, 
        charpos = 8589934594, 
        nchars = 9999334, 
        nbytes = 0, 
        from = 13295810, 
        to = 0, 
        width = 12694578
      }, 
      face_id = 12694578, 
      u = {
        image = {
          object = 16768434, 
          slice = {
            x = 0, 
            y = 17603174, 
            width = 140737488329712, 
            height = 10698902
          }, 
          image_id = 10743045
        }, 
        comp = {
          object = 16768434
        }, 
        stretch = {
          object = 16768434
        }
      }, 
      position = {
        charpos = 140737488329280, 
        bytepos = 2
      }, 
      current = {
        pos = {
          charpos = 17603174, 
          bytepos = 11588646
        }, 
        overlay_string_index = 0, 
        string_pos = {
          charpos = 140737488329472, 
          bytepos = 13243090
        }, 
        dpvec_index = -25599
      }, 
      from_overlay = 12694578, 
      area = 48, 
      method = GET_FROM_BUFFER, 
      paragraph_embedding = 24, 
      multibyte_p = 0, 
      string_from_display_prop_p = 0, 
      string_from_prefix_prop_p = 0, 
      display_ellipsis_p = 0, 
      avoid_cursor_p = 0, 
      bidi_p = 0, 
      from_disp_prop_p = 0, 
      line_wrap = 12694578, 
      voffset = 0, 
      space_width = 17708262, 
      font_height = 19394480
    }, {
      string = 52, 
      string_nchars = 14169856, 
      end_charpos = 51539607552, 
      stop_charpos = 12694578, 
      prev_stop = -3664973252977432860, 
      base_level_stop = 3, 
      cmp_it = {
        stop_pos = 140737488343536, 
        id = 140737488329584, 
        ch = 6074310, 
        rule_idx = 0, 
        lookback = 12694578, 
        nglyphs = 12694578, 
        reversed_p = false, 
        charpos = 10698102, 
        nchars = 10698086, 
        nbytes = 0, 
        from = -25744, 
        to = 32767, 
        width = 5973842
      }, 
      face_id = -25680, 
      u = {
        image = {
          object = 6074105, 
          slice = {
            x = 12694578, 
            y = 10698070, 
            width = 12694578, 
            height = 12
          }, 
          image_id = 5933031
        }, 
        comp = {
          object = 6074105
        }, 
        stretch = {
          object = 6074105
        }
      }, 
      position = {
        charpos = 22749664, 
        bytepos = 140737488330032
      }, 
      current = {
        pos = {
          charpos = 6088477, 
          bytepos = 17603174
        }, 
        overlay_string_index = 6104461, 
        string_pos = {
          charpos = 12694578, 
          bytepos = 12694578
        }, 
        dpvec_index = 17603174
      }, 
      from_overlay = 22749664, 
      area = RIGHT_MARGIN_AREA, 
      method = GET_FROM_STRING, 
      paragraph_embedding = 10698054, 
      multibyte_p = 0, 
      string_from_display_prop_p = 0, 
      string_from_prefix_prop_p = 0, 
      display_ellipsis_p = 0, 
      avoid_cursor_p = 0, 
      bidi_p = 0, 
      from_disp_prop_p = 0, 
      line_wrap = 16500834, 
      voffset = 0, 
      space_width = 140737488329664, 
      font_height = 1
    }, {
      string = 12694578, 
      string_nchars = 0, 
      end_charpos = 0, 
      stop_charpos = 8589934594, 
      prev_stop = 10698758, 
      base_level_stop = 12694626, 
      cmp_it = {
        stop_pos = 140737488329728, 
        id = 2, 
        ch = 26838784, 
        rule_idx = 0, 
        lookback = 25109296, 
        nglyphs = 0, 
        reversed_p = false, 
        charpos = 140737488329920, 
        nchars = 5380860, 
        nbytes = 0, 
        from = 27068421, 
        to = 0, 
        width = -25536
      }, 
      face_id = 12694578, 
      u = {
        image = {
          object = 4, 
          slice = {
            x = 140737488330192, 
            y = 25026912, 
            width = 1305680756774, 
            height = 13075456
          }, 
          image_id = 140737488329984
        }, 
        comp = {
          object = 4
        }, 
        stretch = {
          object = 4
        }
      }, 
      position = {
        charpos = 5976517, 
        bytepos = 10698070
      }, 
      current = {
        pos = {
          charpos = 12, 
          bytepos = 12884901891
        }, 
        overlay_string_index = 12694578, 
        string_pos = {
          charpos = 10698070, 
          bytepos = 13237442
        }, 
        dpvec_index = 12694578
      }, 
      from_overlay = 12158669, 
      area = 10697846, 
      method = GET_FROM_BUFFER, 
      paragraph_embedding = 2298013412, 
      multibyte_p = 0, 
      string_from_display_prop_p = 1, 
      string_from_prefix_prop_p = 1, 
      display_ellipsis_p = 1, 
      avoid_cursor_p = 1, 
      bidi_p = 1, 
      from_disp_prop_p = 0, 
      line_wrap = WINDOW_WRAP, 
      voffset = 0, 
      space_width = 140737488343536, 
      font_height = 140737488330096
    }, {
      string = 6073862, 
      string_nchars = 12694578, 
      end_charpos = 12694578, 
      stop_charpos = 12694578, 
      prev_stop = 8, 
      base_level_stop = 5933031, 
      cmp_it = {
        stop_pos = 22749632, 
        id = 140737488330480, 
        ch = 6088477, 
        rule_idx = 0, 
        lookback = 140737488329120, 
        nglyphs = 10743048, 
        reversed_p = false, 
        charpos = 12694578, 
        nchars = 12694578, 
        nbytes = 0, 
        from = 135, 
        to = 32767, 
        width = 12694578
      }, 
      face_id = 1, 
      u = {
        image = {
          object = 10697830, 
          slice = {
            x = 12694578, 
            y = 6095378, 
            width = 140737488330464, 
            height = 140737488330336
          }, 
          image_id = 12694626
        }, 
        comp = {
          object = 10697830
        }, 
        stretch = {
          object = 10697830
        }
      }, 
      position = {
        charpos = 0, 
        bytepos = 10742965
      }, 
      current = {
        pos = {
          charpos = 51539607552, 
          bytepos = 0
        }, 
        overlay_string_index = 140737488330176, 
        string_pos = {
          charpos = 1, 
          bytepos = 140737488330288
        }, 
        dpvec_index = 12694578
      }, 
      from_overlay = 12694626, 
      area = 4294942304, 
      method = 32767, 
      paragraph_embedding = 4294944048, 
      multibyte_p = 1, 
      string_from_display_prop_p = 1, 
      string_from_prefix_prop_p = 1, 
      display_ellipsis_p = 1, 
      avoid_cursor_p = 1, 
      bidi_p = 1, 
      from_disp_prop_p = 1, 
      line_wrap = 4294955504, 
      voffset = 32767, 
      space_width = 5, 
      font_height = 5
    }, {
      string = 15256256, 
      string_nchars = -24784, 
      end_charpos = 15256256, 
      stop_charpos = 16, 
      prev_stop = 12573136, 
      base_level_stop = 140737488330480, 
      cmp_it = {
        stop_pos = 5976837, 
        id = 12694578, 
        ch = 8, 
        rule_idx = 2, 
        lookback = 13075456, 
        nglyphs = 12573136, 
        reversed_p = false, 
        charpos = 10697846, 
        nchars = 0, 
        nbytes = 6, 
        from = 12694578, 
        to = 0, 
        width = 12158573
      }, 
      face_id = 12573136, 
      u = {
        image = {
          object = 140737488330480, 
          slice = {
            x = 5932732, 
            y = 12573136, 
            width = 140737488330640, 
            height = 5979276
          }, 
          image_id = 12694578
        }, 
        comp = {
          object = 140737488330480
        }, 
        stretch = {
          object = 140737488330480
        }
      }, 
      position = {
        charpos = 12895599702, 
        bytepos = 12694578
      }, 
      current = {
        pos = {
          charpos = 8, 
          bytepos = 13075456
        }, 
        overlay_string_index = 22749600, 
        string_pos = {
          charpos = 12694578, 
          bytepos = 12694578
        }, 
        dpvec_index = 13237250
      }, 
      from_overlay = 6093767, 
      area = 12573136, 
      method = GET_FROM_BUFFER, 
      paragraph_embedding = 13075456, 
      multibyte_p = 0, 
      string_from_display_prop_p = 0, 
      string_from_prefix_prop_p = 0, 
      display_ellipsis_p = 0, 
      avoid_cursor_p = 0, 
      bidi_p = 0, 
      from_disp_prop_p = 0, 
      line_wrap = 4294942672, 
      voffset = 32767, 
      space_width = 5976837, 
      font_height = 13237248
    }}, 
  sp = 10697798, 
  selective = 13075456, 
  what = 12694578, 
  face_id = 0, 
  selective_display_ellipsis_p = 0, 
  ctl_arrow_p = 0, 
  face_box_p = 0, 
  start_of_box_run_p = 0, 
  end_of_box_run_p = 1, 
  overlay_strings_at_end_processed_p = 1, 
  ignore_overlay_strings_at_pos_p = 0, 
  glyph_not_available_p = 1, 
  starts_in_middle_of_char_p = 1, 
  face_before_selective_p = 1, 
  constrain_row_ascent_descent_p = 1, 
  line_wrap = 32767, 
  base_face_id = 5978228, 
  c = 0, 
  len = 5932732, 
  cmp_it = {
    stop_pos = 12694578, 
    id = 140737488330768, 
    ch = 5980322, 
    rule_idx = 0, 
    lookback = 12694578, 
    nglyphs = 12573136, 
    reversed_p = 3, 
    charpos = 12694578, 
    nchars = 13237250, 
    nbytes = 0, 
    from = -24312, 
    to = 32767, 
    width = 12573136
  }, 
  char_to_display = 12573136, 
  glyphless_method = GLYPHLESS_DISPLAY_THIN_SPACE, 
  image_id = 12186272, 
  slice = {
    x = 140737488330864, 
    y = 5976837, 
    width = 12694578, 
    height = 8596031457
  }, 
  space_width = 13075456, 
  voffset = -3424, 
  tab_width = 185, 
  font_height = 12694578, 
  object = 25769803776, 
  position = {
    charpos = 12694578, 
    bytepos = 13075461
  }, 
  truncation_pixel_width = -3424, 
  continuation_pixel_width = 185, 
  first_visible_x = 0, 
  last_visible_x = -24464, 
  last_visible_y = 32767, 
  extra_line_spacing = 5932732, 
  max_extra_line_spacing = 0, 
  override_ascent = 12186272, 
  override_descent = 0, 
  override_boff = -24304, 
  glyph_row = 0x5b3c8c, 
  area = 12694578, 
  nglyphs = 0, 
  pixel_width = 12158621, 
  ascent = 3, 
  descent = 13237250, 
  max_ascent = 0, 
  max_descent = 12694578, 
  phys_ascent = 0, 
  phys_descent = 13075456, 
  max_phys_ascent = 0, 
  max_phys_descent = -23248, 
  current_x = 32512, 
  continuation_lines_width = 12694578, 
  eol_pos = {
    charpos = 12694578, 
    bytepos = 13354898
  }, 
  current_y = 12694578, 
  first_vpos = 0, 
  vpos = 12186272, 
  hpos = 0, 
  left_user_fringe_bitmap = 33792, 
  right_user_fringe_bitmap = 199, 
  left_user_fringe_face_id = 0, 
  right_user_fringe_face_id = 1024336, 
  bidi_p = 1, 
  bidi_it = {
    bytepos = 11, 
    charpos = 13354896, 
    ch = 5498582, 
    nchars = 13075456, 
    ch_len = 12694578, 
    type = 4294943024, 
    type_after_w1 = 32767, 
    orig_type = 5978228, 
    resolved_level = 0, 
    invalid_levels = 5932732, 
    invalid_rl_levels = 0, 
    prev = {
      bytepos = 12694578, 
      charpos = 140737488331152, 
      type = 5980322, 
      type_after_w1 = UNKNOWN_BT, 
      orig_type = 12694578
    }, 
    last_strong = {
      bytepos = 12890400442, 
      charpos = 12694578, 
      type = 13354898, 
      type_after_w1 = UNKNOWN_BT, 
      orig_type = 4294954512
    }, 
    next_for_neutral = {
      bytepos = 0, 
      charpos = 12186272, 
      type = 4294944048, 
      type_after_w1 = 32767, 
      orig_type = 13354896
    }, 
    prev_for_neutral = {
      bytepos = 22749536, 
      charpos = 140737488331312, 
      type = 6096865, 
      type_after_w1 = UNKNOWN_BT, 
      orig_type = UNKNOWN_BT
    }, 
    next_for_ws = {
      bytepos = 8589934592, 
      charpos = 12694578, 
      type = RLE, 
      type_after_w1 = UNKNOWN_BT, 
      orig_type = 5929909
    }, 
    next_en_pos = 17846274, 
    next_en_type = 10635701, 
    ignore_bn_limit = 17846274, 
    sor = 4294943328, 
    scan_dir = 32767, 
    disp_pos = 5533551, 
    disp_prop = 0, 
    stack_idx = 6, 
    level_stack = {{
        level = 12694578, 
        override = NEUTRAL_DIR
      }, {
        level = -24063, 
        override = 32512
      }, {
        level = 17846274, 
        override = NEUTRAL_DIR
      }, {
        level = 19644005, 
        override = NEUTRAL_DIR
      }, {
        level = -24000, 
        override = 32767
      }, {
        level = 5930379, 
        override = NEUTRAL_DIR
      }, {
        level = 12694626, 
        override = 86
      }, {
        level = 3, 
        override = 16777216
      }, {
        level = 3, 
        override = NEUTRAL_DIR
      }, {
        level = -23968, 
        override = NEUTRAL_DIR
      }, {
        level = 5930267, 
        override = NEUTRAL_DIR
      }, {
        level = 19615280, 
        override = NEUTRAL_DIR
      }, {
        level = 19644005, 
        override = NEUTRAL_DIR
      }, {
        level = 0, 
        override = NEUTRAL_DIR
      }, {
        level = -23848, 
        override = 32767
      }, {
        level = 4387347, 
        override = NEUTRAL_DIR
      }, {
        level = 6096865, 
        override = 86
      }, {
        level = 3, 
        override = 10
      }, {
        level = 0, 
        override = 32767
      }, {
        level = 26768640, 
        override = NEUTRAL_DIR
      }, {
        level = 26768640, 
        override = NEUTRAL_DIR
      }, {
        level = 27381760, 
        override = NEUTRAL_DIR
      }, {
        level = 55392235, 
        override = 8
      }, {
        level = 0, 
        override = NEUTRAL_DIR
      }, {
        level = 19615280, 
        override = 6
      }, {
        level = 13075456, 
        override = NEUTRAL_DIR
      }, {
        level = -23816, 
        override = 32767
      }, {
        level = 5932870, 
        override = NEUTRAL_DIR
      }, {
        level = 0, 
        override = NEUTRAL_DIR
      }, {
        level = 1, 
        override = NEUTRAL_DIR
      }, {
        level = 0, 
        override = NEUTRAL_DIR
      }, {
        level = 12177056, 
        override = NEUTRAL_DIR
      }, {
        level = 55501206, 
        override = NEUTRAL_DIR
      }, {
        level = -23600, 
        override = 14
      }, {
        level = 12177056, 
        override = NEUTRAL_DIR
      }, {
        level = -23056, 
        override = 32767
      }, {
        level = 6670273, 
        override = NEUTRAL_DIR
      }, {
        level = 0, 
        override = NEUTRAL_DIR
      }, {
        level = -23600, 
        override = 32767
      }, {
        level = 0, 
        override = NEUTRAL_DIR
      }, {
        level = 0, 
        override = NEUTRAL_DIR
      }, {
        level = 26768640, 
        override = NEUTRAL_DIR
      }, {
        level = 55501504, 
        override = 8
      }, {
        level = 0, 
        override = NEUTRAL_DIR
      }, {
        level = 5255097, 
        override = NEUTRAL_DIR
      }, {
        level = -23568, 
        override = 32767
      }, {
        level = -11792, 
        override = 32767
      }, {
        level = -11816, 
        override = 32767
      }, {
        level = 0, 
        override = NEUTRAL_DIR
      }, {
        level = 0, 
        override = NEUTRAL_DIR
      }, {
        level = 5252965, 
        override = NEUTRAL_DIR
      }, {
        level = 0, 
        override = NEUTRAL_DIR
      }, {
        level = 26768640, 
        override = NEUTRAL_DIR
      }, {
        level = 26768640, 
        override = NEUTRAL_DIR
      }, {
        level = 27381760, 
        override = NEUTRAL_DIR
      }, {
        level = -11816, 
        override = 32767
      }, {
        level = 55392321, 
        override = 8
      }, {
        level = 26768640, 
        override = NEUTRAL_DIR
      }, {
        level = 27381760, 
        override = NEUTRAL_DIR
      }, {
        level = 0, 
        override = NEUTRAL_DIR
      }, {
        level = 55500763, 
        override = 8
      }, {
        level = 5255097, 
        override = NEUTRAL_DIR
      }, {
        level = -23328, 
        override = 32767
      }, {
        level = -11792, 
        override = 32767
      }}, 
    string = {
      lstring = 5253403, 
      s = 0xd <Error reading address 0xd: Bad address>, 
      schars = 140737488331808, 
      bufpos = 28107776, 
      from_disp_str = 0, 
      unibyte = 0
    }, 
    w = 0x7fffffffa4c0, 
    paragraph_dir = 5979276, 
    separator_limit = 0, 
    prev_was_pdf = 0, 
    first_elt = 1, 
    new_paragraph = 1, 
    frame_window_p = 0
  }, 
  paragraph_embedding = 4294943936
}
	current_matrix_up_to_date_p = 0
	used_current_matrix_p = 0
	buffer_unchanged_p = 0
	temp_scroll_step = 0
	count = 6
	rc = 0
	centering_position = -1
	last_line_misfit = 0
	beg_unchanged = 191
	end_unchanged = 0
#25 0x000000000044ff0c in redisplay_window_0 (window=19393621) at xdisp.c:13773
No locals.
#26 0x00000000005cc76b in internal_condition_case_1 (bfun=0x44fecd <redisplay_window_0>, arg=19393621, handlers=13017990, hfun=0x44fe9c <redisplay_window_error>) at eval.c:1326
	val = 13075461
	c = {
  tag = 12694578, 
  val = 12694578, 
  next = 0x7fffffffce10, 
  gcpro = 0x0, 
  jmp = {{
      _jb = {6080232, 12694626, 140737488332216, 140737488332496, 140737488343536, 140737488343512, 0, 0, 34772061127551, 17179869184, 13152261, 0}
    }}, 
  handlerlist = 0x7fffffffcec0, 
  lisp_eval_depth = 0, 
  pdlcount = 6, 
  poll_suppress_count = 1, 
  interrupt_input_blocked = 0, 
  byte_stack = 0x0
}
	h = {
  handler = 13017990, 
  var = 12694578, 
  chosen_clause = 13075456, 
  tag = 0x7fffffffa5f0, 
  next = 0x7fffffffcec0
}
#27 0x000000000044fe7d in redisplay_windows (window=19393621) at xdisp.c:13753
	w = (struct window *) 0x127ec50
#28 0x000000000044f17c in redisplay_internal () at xdisp.c:13364
	f = (struct frame *) 0x127dc50
	w = (struct window *) 0x127ec50
	sw = (struct window *) 0x127ec50
	fr = (struct frame *) 0x127dc50
	pending = 0
	must_finish = 0
	tlbufpos = {
  charpos = 0, 
  bytepos = 192
}
	tlendpos = {
  charpos = 0, 
  bytepos = 0
}
	number_of_visible_frames = 2
	count = 3
	count1 = 6
	sf = (struct frame *) 0x127dc50
	polling_stopped_here = 1
	tail = 16965542
	frame = 19389525
	consider_all_windows_p = 1
	update_miniwindow_p = 0
#29 0x000000000044f828 in redisplay_preserve_echo_area (from_where=11) at xdisp.c:13613
No locals.
#30 0x000000000061fff5 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=12694578, wait_proc=0x0, just_wait_proc=0) at process.c:4498
	timeout_reduced_for_timers = true
	channel = 1
	nfds = 1
	Available = {
  __fds_bits = {134218752, 0 <repeats 15 times>}
}
	Writeok = {
  __fds_bits = {0 <repeats 16 times>}
}
	check_write = true
	check_delay = 0
	no_avail = false
	xerrno = 35
	proc = 0
	timeout = {
  tv_sec = 0, 
  tv_nsec = 332786301
}
	end_time = {
  tv_sec = 1373265495, 
  tv_nsec = 323391145
}
	wait_channel = -1
	got_some_input = true
	count = 2
#31 0x00000000004226ca in sit_for (timeout=120, reading=true, display_option=1) at dispnew.c:5797
	sec = 30
	nsec = 0
	do_display = true
#32 0x00000000005361b0 in read_char (commandflag=1, map=17403238, prev_event=12694578, used_mouse_menu=0x7fffffffcc3d, end_time=0x0) at keyboard.c:2809
	tem0 = 12694578
	timeout = 30
	delay_level = 4
	buffer_size = 1
	c = 12694578
	jmpcount = 2
	local_getcjmp = {{
    _jb = {5462958, 12694626, 140737488340680, 140737488341392, 140737488343536, 140737488343512, 0, 0, 34776350131071, 12694578, 12694578, 18066626}
  }}
	save_jump = {{
    _jb = {0 <repeats 12 times>}
  }}
	tem = 12694578
	save = 12694578
	previous_echo_area_message = 12694578
	also_record = 12694578
	reread = false
	gcpro1 = {
  next = 0xc1b432, 
  var = 0x108d726, 
  nvars = 140737488341120
}
	gcpro2 = {
  next = 0xc0, 
  var = 0x5d07b2, 
  nvars = 12694578
}
	polling_stopped_here = false
	orig_kboard = (struct kboard *) 0xe2e000
#33 0x00000000005412e3 in read_key_sequence (keybuf=0x7fffffffcc80, bufsize=30, prompt=12694578, dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true) at keyboard.c:9079
	interrupted_kboard = (KBOARD *) 0xe2e000
	interrupted_frame = (struct frame *) 0x127dc50
	key = 13234224
	used_mouse_menu = false
	echo_local_start = 0
	last_real_key_start = 0
	keys_local_start = 0
	new_binding = 17179855952
	count = 2
	t = 0
	echo_start = 0
	keys_start = 0
	current_binding = 17403238
	first_event = 12694578
	first_unbound = 31
	mock_input = 0
	fkey = {
  parent = 21475718, 
  map = 21475718, 
  start = 0, 
  end = 0
}
	keytran = {
  parent = 13027750, 
  map = 13027750, 
  start = 0, 
  end = 0
}
	indec = {
  parent = 21475702, 
  map = 21475702, 
  start = 0, 
  end = 0
}
	shift_translated = false
	delayed_switch_frame = 12694578
	original_uppercase = 22749280
	original_uppercase_position = -1
	dummyflag = false
	starting_buffer = (struct buffer *) 0xc78400
	fake_prefixed_keys = 12694578
	gcpro1 = {
  next = 0xbfda70, 
  var = 0xc78400, 
  nvars = 140737488341824
}
#34 0x0000000000533325 in command_loop_1 () at keyboard.c:1449
	cmd = 16500834
	keybuf = {104, 12694578, 140737488342256, 5980322, 12694578, 12897475024, 12694578, 13237250, 34369236992, 12897475024, 12573136, 5976477, 13237248, 22749280, 140737488342416, 6096865, 13237250, 8589934594, 16624422, 2, 12884901888, 13075461, 13237248, 140737488342352, 5932732, 22749280, 12694578, 16854882, 16624422, 9849125}
	i = 1
	prev_modiff = 10
	prev_buffer = (struct buffer *) 0xc78400
	already_adjusted = false
#35 0x00000000005cc61a in internal_condition_case (bfun=0x532fb7 <command_loop_1>, handlers=13104322, hfun=0x53293e <cmd_error>) at eval.c:1289
	val = 16624422
	c = {
  tag = 12694578, 
  val = 12694578, 
  next = 0x7fffffffcf40, 
  gcpro = 0x0, 
  jmp = {{
      _jb = {6079902, 2, 140737488342504, 140737488342768, 140737488343536, 140737488343512, 0, 0, 34776350131071, 6741290, 0, 34369211392}
    }}, 
  handlerlist = 0x0, 
  lisp_eval_depth = 0, 
  pdlcount = 2, 
  poll_suppress_count = 1, 
  interrupt_input_blocked = 0, 
  byte_stack = 0x0
}
	h = {
  handler = 13104322, 
  var = 12694578, 
  chosen_clause = 140737488342880, 
  tag = 0x7fffffffce10, 
  next = 0x0
}
#36 0x0000000000532d1c in command_loop_2 (ignore=12694578) at keyboard.c:1164
	val = 32
#37 0x00000000005cc0af in internal_catch (tag=13096370, func=0x532cfa <command_loop_2>, arg=12694578) at eval.c:1063
	c = {
  tag = 13096370, 
  val = 12694578, 
  next = 0x0, 
  gcpro = 0x0, 
  jmp = {{
      _jb = {6078619, 2, 140737488342808, 140737488343024, 140737488343536, 140737488343512, 0, 0, 34772067353471, 13075456, 17179856912, 13075461}
    }}, 
  handlerlist = 0x0, 
  lisp_eval_depth = 0, 
  pdlcount = 2, 
  poll_suppress_count = 1, 
  interrupt_input_blocked = 0, 
  byte_stack = 0x0
}
#38 0x0000000000532ccf in command_loop () at keyboard.c:1143
No locals.
#39 0x000000000053252a in recursive_edit_1 () at keyboard.c:776
	count = 1
	val = 12694578
#40 0x000000000053267f in Frecursive_edit () at keyboard.c:840
	count = 0
	buffer = 12694578
#41 0x00000000005308d0 in main (argc=2, argv=0x7fffffffd1d8) at emacs.c:1554
	dummy = 140737488343472
	stack_bottom_variable = 0 '\0'
	do_initial_setlocale = true
	dumping = false
	skip_args = 0
	rlim = {
  rlim_cur = 536870912, 
  rlim_max = 536870912
}
	no_loadup = false
	junk = 0x0
	dname_arg = 0x0
	ch_to_dir = 0x0
#v-

Running with Athena toolkit (Xaw3d widgets) works fine.

Thanks
-- 
Ashish SHUKLA

“A man, a plan, a canoe, pasta, heros, rajahs, a coloratura, maps, snipe,
percale, macaroni, a gag, a banana bag, a tan, a tag, a banana bag again (or a
camel), a crepe, pins, Spam, a rut, a Rolo, cash, a jar, sore hats, a peon, a
canal--Panama!” (Guy L. Steele, Jr.)

Sent from my Emacs