emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

abort(xassert) in xselect.c


From: Kim F. Storm
Subject: abort(xassert) in xselect.c
Date: Thu, 10 Feb 2005 08:59:22 -0500

Symptoms:

Misc work for some hours, mostly Gnus, when this happened (after
recently having copied text from an *Article* buffer into
a newly created file.  

The object referenced when this happened is exactly that text 
(see "pp obj" at end of the gdb output):

I'm running the infamous Klipper (some old version) which queries the
selection every few seconds...


Breakpoint 1, abort () at emacs.c:454
454       kill (getpid (), SIGABRT);
(gdb) bt
#0  abort () at emacs.c:454
#1  0x080f76ac in lisp_data_to_selection_data (display=0x859b2d8,
    obj=159930875, data_ret=0xbfffd84c, type_ret=0xbfffd840,
    size_ret=0xbfffd848, format_ret=0xbfffd844, nofree_ret=0xbfffd83c)
    at xselect.c:1911
#2  0x080f5f58 in x_handle_selection_request (event=0xbfffd8f0)
    at xselect.c:948
#3  0x080f62af in x_handle_selection_event (event=0xbfffd8f0) at xselect.c:1077
#4  0x081137aa in swallow_events (do_display=0) at keyboard.c:4213
#5  0x08110bea in read_char (commandflag=1, nmaps=6, maps=0xbfffdba0,
    prev_event=137718841, used_mouse_menu=0xbfffdc9c) at keyboard.c:2532
#6  0x08119f8e in read_key_sequence (keybuf=0xbfffde10, bufsize=30,
    prompt=137718841, dont_downcase_last=0, can_return_switch_frame=1,
    fix_current_buffer=1) at keyboard.c:8799
#7  0x0810e571 in command_loop_1 () at keyboard.c:1534
#8  0x08185c2d in internal_condition_case (bfun=0x810e1ec <command_loop_1>,
    handlers=137779841, hfun=0x810dd31 <cmd_error>) at eval.c:1385
#9  0x0810e064 in command_loop_2 () at keyboard.c:1315
#10 0x081856df in internal_catch (tag=137773841,
    func=0x810e045 <command_loop_2>, arg=137718841) at eval.c:1144
#11 0x0810e017 in command_loop () at keyboard.c:1294
#12 0x0810dab0 in recursive_edit_1 () at keyboard.c:987
#13 0x0810dbf1 in Frecursive_edit () at keyboard.c:1048
#14 0x0810c51a in main (argc=3, argv=0xbfffe424) at emacs.c:1763
#15 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) up
#1  0x080f76ac in lisp_data_to_selection_data (display=0x859b2d8,
    obj=159930875, data_ret=0xbfffd84c, type_ret=0xbfffd840,
    size_ret=0xbfffd848, format_ret=0xbfffd844, nofree_ret=0xbfffd83c)
    at xselect.c:1911
1911          xassert (! STRING_MULTIBYTE (obj));
(gdb) list
1906          *data_ret = 0;
1907          type = QNULL;
1908        }
1909      else if (STRINGP (obj))
1910        {
1911          xassert (! STRING_MULTIBYTE (obj));
1912          if (NILP (type))
1913            type = QSTRING;
1914          *format_ret = 8;
1915          *size_ret = SBYTES (obj);
(gdb) info frame
Stack level 1, frame at 0xbfffd808:
 eip = 0x80f76ac in lisp_data_to_selection_data (xselect.c:1911);
    saved eip 0x80f5f58
 called by frame at 0xbfffd8a8, caller of frame at 0xbfffd7d8
 source language c.
 Arglist at 0xbfffd808, args: display=0x859b2d8, obj=159930875,
    data_ret=0xbfffd84c, type_ret=0xbfffd840, size_ret=0xbfffd848,
    format_ret=0xbfffd844, nofree_ret=0xbfffd83c
 Locals at 0xbfffd808, Previous frame's sp in esp
 Saved registers:
  ebx at 0xbfffd800, ebp at 0xbfffd808, esi at 0xbfffd804, eip at 0xbfffd80c
(gdb) bt full
#0  abort () at emacs.c:454
No locals.
#1  0x080f76ac in lisp_data_to_selection_data (display=0x859b2d8,
    obj=159930875, data_ret=0xbfffd84c, type_ret=0xbfffd840,
    size_ret=0xbfffd848, format_ret=0xbfffd844, nofree_ret=0xbfffd83c)
    at xselect.c:1911
        type = 137950017
        dpyinfo = (struct x_display_info *) 0x85a5600
#2  0x080f5f58 in x_handle_selection_request (event=0xbfffd8f0)
    at xselect.c:948
        data = (unsigned char *) 0x91fd488 ""
        type = 4
        size = 19
        format = 32
        nofree = 0
        gcpro1 = {
  next = 0x861f964,
  var = 0xbfffd904,
  nvars = -1073751804
}
        gcpro2 = {
  next = 0x1,
  var = 0xbfffda60,
  nvars = -1073751784
}
        gcpro3 = {
  next = 0x861f960,
  var = 0x0,
  nvars = 0
}
        local_selection_data = 155524973
        selection_symbol = 137949849
        target_symbol = 137950017
        converted_selection = 158620229
        local_selection_time = 0
        successful_p = 137718841
        count = 2
        dpyinfo = (struct x_display_info *) 0x85a5600
#3  0x080f62af in x_handle_selection_event (event=0xbfffd8f0) at xselect.c:1077
No locals.
#4  0x081137aa in swallow_events (do_display=0) at keyboard.c:4213
        copy = {
  kind = SELECTION_REQUEST_EVENT,
  code = 140096216,
  part = 25166084,
  modifiers = 1,
  x = 246,
  y = 291,
  timestamp = 0,
  padding = {0x0, 0x0},
  frame_or_window = 137718841,
  arg = 137718841
}
        event = (struct input_event *) 0x831ec30
        old_timers_run = 135337804
#5  0x08110bea in read_char (commandflag=1, nmaps=6, maps=0xbfffdba0,
    prev_event=137718841, used_mouse_menu=0xbfffdc9c) at keyboard.c:2532
        c = 137718841
        count = 148227720
        local_getcjmp = {{
    __jmpbuf = {51544, 137779385, 148227724, 0, 0, 0},
    __mask_was_saved = 0,
    __saved_mask = {
      __val = {0 <repeats 15 times>, 1, 1, 137718841, 137718841, 3221216024,
        0, 3221216960, 0, 2, 1, 0, 0, 3221216072, 135730733, 143324177,
        143340994, 3221216104}
    }
  }}
        save_jump = {{
    __jmpbuf = {141711597, 6443, -1073751512, 136139927, 141711597,
      141711597},
    __mask_was_saved = -1073751224,
    __saved_mask = {
      __val = {135814486, 141711597, 137718841, 3221215816, 136130101,
        137779385, 137718841, 3221215832, 141711597, 137779841, 137718841,
        137894049, 3221215824, 3221216960, 137718841, 3221215848, 136129881,
        137718841, 137718841, 3221216992, 0, 3221217792, 3221217792,
        3221217604, 3221216072, 3221215760, 135814367, 0, 1, 137718841, 51544,
        3221216104}
    }
  }}
        key_already_recorded = 0
        tem = -1073751544
        save = 141711597
        previous_echo_area_message = 137718841
        also_record = 137718841
        reread = 0
        gcpro1 = {
  next = 0x99a1a58,
  var = 0x1926,
  nvars = 6438
}
        gcpro2 = {
  next = 0x943abc8,
  var = 0x8d5c68c,
  nvars = -1073751560
}
        polling_stopped_here = 0
#6  0x08119f8e in read_key_sequence (keybuf=0xbfffde10, bufsize=30,
    prompt=137718841, dont_downcase_last=0, can_return_switch_frame=1,
    fix_current_buffer=1) at keyboard.c:8799
        interrupted_kboard = (KBOARD *) 0x85a57a0
        interrupted_frame = (struct frame *) 0x86223a0
        key = 6
        used_mouse_menu = 0
        echo_local_start = 0
        last_real_key_start = 0
        keys_local_start = 0
        local_first_binding = 0
        from_string = 137718841
        count = 2
        t = 0
        echo_start = 0
        keys_start = 0
        nmaps = 6
        nmaps_allocated = 6
        defs = (int * volatile) 0xbfffdb80
        submaps = (int * volatile) 0xbfffdba0
        orig_local_map = 143400781
        orig_keymap = 137718841
        localized_local_map = 0
        first_binding = 0
        first_unbound = 31
        mock_input = 0
        fkey = {
  map = 137746717,
  parent = 137746717,
  start = 0,
  end = 0
}
        keytran = {
  map = 138425501,
  parent = 138425501,
  start = 0,
  end = 0
}
        delayed_switch_frame = 137718841
        original_uppercase = -1073750808
        original_uppercase_position = -1
        dummyflag = 0
        starting_buffer = (struct buffer *) 0x8d5c688
        fake_prefixed_keys = 137718841
        gcpro1 = {
  next = 0x0,
  var = 0xbfffe200,
  nvars = -1073750808
}
#7  0x0810e571 in command_loop_1 () at keyboard.c:1534
        cmd = 145250969
        lose = -1073750056
        nonundocount = 0
        keybuf = {104, 784, 140649376, 140649376, 0, 137718889, -1073750376,
  135323149, 159715397, -1073750464, -1073750376, 135323211, 0, -1073750412,
  -1073750704, 0, 1075642368, 1073779713, 134530932, 1075693360, 1073779643,
  1073829932, 1075692800, 0, 137718841, 139708633, 137718841, 137187020, 0, 0}
        i = 1
        no_direct = 0
        prev_modiff = 2421
        prev_buffer = (struct buffer *) 0x8a4b340
        was_locked = 0
        already_adjusted = 0
#8  0x08185c2d in internal_condition_case (bfun=0x810e1ec <command_loop_1>,
    handlers=137779841, hfun=0x810dd31 <cmd_error>) at eval.c:1385
        val = 137718841
        c = {
  tag = 137718841,
  val = 137718841,
  next = 0xbfffe010,
  gcpro = 0x0,
  jmp = {{
      __jmpbuf = {-1073749504, -1073749504, -1073749692, -1073750056,
        -1073750368, 135814076},
      __mask_was_saved = 0,
      __saved_mask = {
        __val = {135704383, 136079297, 335544320, 3221217088, 0, 0, 0, 0,
          110932256, 3221217232, 1073830456, 0, 0, 1107340708, 1075693432,
          0 <repeats 14 times>, 1073774719, 1073829932, 6529}
      }
    }},
  backlist = 0x0,
  handlerlist = 0x0,
  lisp_eval_depth = 0,
  pdlcount = 2,
  poll_suppress_count = 1,
  interrupt_input_blocked = 0,
  byte_stack = 0x0
}
        h = {
  handler = 137779841,
  var = 137718841,
  chosen_clause = 137718889,
  tag = 0xbfffdee0,
  next = 0x0
}
#9  0x0810e064 in command_loop_2 () at keyboard.c:1315
        val = 159930872
#10 0x081856df in internal_catch (tag=137773841,
    func=0x810e045 <command_loop_2>, arg=137718841) at eval.c:1144
        c = {
  tag = 137773841,
  val = 137718841,
  next = 0x0,
  gcpro = 0x0,
  jmp = {{
      __jmpbuf = {-1073749504, -1073749504, -1073749692, -1073749768,
        -1073750016, 135812813},
      __mask_was_saved = 0,
      __saved_mask = {
        __val = {8, 8, 135704785, 138411032, 138411035, 3221217032, 135704739,
          8, 8, 3221217044, 3221217040, 3221217792, 3221217604, 2, 0,
          1107457480, 808591444, 136079297, 0, 3221217480, 135732370,
          137916945, 137895146, 137718841, 137767104, 136291338, 136291338,
          3221217496, 137895146, 137895146, 137718841, 2}
      }
    }},
  backlist = 0x0,
  handlerlist = 0x0,
  lisp_eval_depth = 0,
  pdlcount = 2,
  poll_suppress_count = 1,
  interrupt_input_blocked = 0,
  byte_stack = 0x0
}
#11 0x0810e017 in command_loop () at keyboard.c:1294
No locals.
#12 0x0810dab0 in recursive_edit_1 () at keyboard.c:987
        count = 1
        val = 135322637
#13 0x0810dbf1 in Frecursive_edit () at keyboard.c:1048
        count = 0
        buffer = 137718841
#14 0x0810c51a in main (argc=3, argv=0xbfffe424) at emacs.c:1763
        dummy = 134538119
        stack_bottom_variable = -65 '\277'
        do_initial_setlocale = 1
        skip_args = 0
        rlim = {
  rlim_cur = 8388608,
  rlim_max = 18446744073709551615
}
        no_loadup = 0
        junk = 0x0
#15 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
No symbol table info available.
(gdb)
(gdb) xba
(gdb) do
#0  abort () at emacs.c:454
454       kill (getpid (), SIGABRT);
(gdb) up
#1  0x080f76ac in lisp_data_to_selection_data (display=0x859b2d8,
    obj=159930875, data_ret=0xbfffd84c, type_ret=0xbfffd840,
    size_ret=0xbfffd848, format_ret=0xbfffd844, nofree_ret=0xbfffd83c)
    at xselect.c:1911
1911          xassert (! STRING_MULTIBYTE (obj));
(gdb) list
1906          *data_ret = 0;
1907          type = QNULL;
1908        }
1909      else if (STRINGP (obj))
1910        {
1911          xassert (! STRING_MULTIBYTE (obj));
1912          if (NILP (type))
1913            type = QSTRING;
1914          *format_ret = 8;
1915          *size_ret = SBYTES (obj);
(gdb) p obj
$1 = 159930875
(gdb) xtype
Lisp_String
(gdb) xstring
$2 = (struct Lisp_String *) 0x98859f8
0
(gdb) p *$2
$3 = {
  size = 2515,
  size_byte = 2515,
  intervals = 0x0,
  data = 0x94e2c0c "--8<", '-' <repeats 15 times>, "cut here", '-' <repeats 15 
times>, "start", '-' <repeats 13 times>, ">8---\n(gdb) up 1\n#1  
0x0000000000478884 in try_window_id (w=0x1f66880)\n    at 
/home/dept/ste/src/links/emacs/cvs-HEAD/emacs/src/xdisp.c:1395"...
}
(gdb) pp obj
"--8<---------------cut here---------------start------------->8---
(gdb) up 1
#1  0x0000000000478884 in try_window_id (w=0x1f66880)
    at /home/dept/ste/src/links/emacs/cvs-HEAD/emacs/src/xdisp.c:13959
13959       abort ();
(gdb) p vpos
No symbol \"vpos\" in current context.
(gdb) p row
Variable \"row\" is not available.
(gdb) p *w
$1 = {
  size = 4611686018427392064,
  vec_next = 0x22104c0,
  frame = 35718340,
  mini_p = 9613345,
  next = 12734148,
  prev = 9613345,
  hchild = 9613345,
  vchild = 9613345,
  parent = 9613345,
  left_col = 0,
  top_line = 0,
  total_lines = 432,
  total_cols = 688,
  buffer = 32050852,
  start = 41472138,
  pointm = 41472178,
  force_start = 9613345,
  optional_new_start = 9613345,
  hscroll = 0,
  min_hscroll = 0,
  use_time = 46976,
  sequence_number = 968,
  temslot = 0,
  last_modified = 1432,
  last_overlay_modified = 8,
  last_point = 5152,
  last_had_star = 9613345,
  vertical_scroll_bar = 56267348,
  left_margin_cols = 9613345,
  right_margin_cols = 9613345,
  left_fringe_width = 9613345,
  right_fringe_width = 9613345,
  fringes_outside_margins = 9613345,
  scroll_bar_width = 9613345,
  vertical_scroll_bar_type = 9613441,
  last_mark_x = 9613345,
  last_mark_y = 9613345,
  window_end_pos = 0,
  window_end_vpos = 208,
  window_end_valid = 32050852,
  update_mode_line = 9613345,
  start_at_line_beg = 9613441,
  display_table = 9613345,
  dedicated = 9613441,
  base_line_number = 8,
  base_line_pos = 8,
  region_showing = 9613345,
  column_number_displayed = 0,
  redisplay_end_trigger = 9613345,
  too_small_ok = 9613345,
  orig_total_lines = 9613345,
  orig_top_line = 9613345,
  current_matrix = 0x2f63190,
  desired_matrix = 0x2225fe0,
  nrows_scale_factor = 1,
  ncols_scale_factor = 1,
  last_cursor = {
    x = 0,
    y = 210,
    hpos = 0,
    vpos = 15
  },
  cursor = {
    x = 0,
    y = 210,
    hpos = 0,
    vpos = 15
  },
  phys_cursor = {
    x = 0,
    y = 0,
    hpos = 0,
    vpos = 0
  },
  phys_cursor_type = -1,
  phys_cursor_width = -1,
  phys_cursor_ascent = 9613345,
  phys_cursor_height = 0,
  overlay_arrow_bitmap = 0,
  phys_cursor_on_p = 0,
  cursor_off_p = 0,
  last_cursor_off_p = 0,
  must_be_updated_p = 0,
  pseudo_window_p = 0,
  vscroll = 0,
  window_end_bytepos = 0,
  frozen_window_start_p = 0,
  height_fixed_p = 0
}
(gdb) p *row
Variable \"row\" is not available.
(gdb)
--8<---------------cut here---------------end--------------->8---
"



In GNU Emacs 22.0.50.2 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2005-02-10 on kfs-l.imdomain.dk
Distributor `The XFree86 Project, Inc', version 11.0.40300000
configured using `configure 'CFLAGS=-O0 -g''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  cua-mode: t
  display-time-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-x m C-g <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <help-menu> <re
port-emacs-bug>

Recent messages:
Loading mc-setversion...done
PGP version set to GPG.
Loading init (compiled; note, source file is newer)...done
Loading /home/kfs/emacs/common/emacs/lisp/common...done
Loading /home/kfs/emacs/common/emacs/user/kfs/custom-cvs.el (source)...done
Loading imenu...done
Loading font-lock...done
Loading jit-lock...done
Quit
Loading emacsbug...done


-- 
Kim F. Storm  <address@hidden>      http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]