From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lawrence Mitchell Newsgroups: gmane.emacs.bugs Subject: bug#7116: 24.0.50; assertion failure using vc-annotate Date: Mon, 27 Sep 2010 12:41:21 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1285589496 18834 80.91.229.12 (27 Sep 2010 12:11:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Sep 2010 12:11:36 +0000 (UTC) To: 7116@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 27 14:11:33 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P0CYO-0001Og-BG for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Sep 2010 14:11:33 +0200 Original-Received: from localhost ([127.0.0.1]:37223 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0CYN-00020k-66 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Sep 2010 08:11:31 -0400 Original-Received: from [140.186.70.92] (port=40003 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0CYB-0001yV-Lp for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2010 08:11:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0CY9-00053a-O4 for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2010 08:11:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38051) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0CY9-00053W-Lv for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2010 08:11:17 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P0C3v-0005yB-G3; Mon, 27 Sep 2010 07:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lawrence Mitchell Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Sep 2010 11:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7116 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128558757822936 (code B ref -1); Mon, 27 Sep 2010 11:40:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Sep 2010 11:39:38 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0C3V-0005xt-Hi for submit@debbugs.gnu.org; Mon, 27 Sep 2010 07:39:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0C3S-0005xo-In for submit@debbugs.gnu.org; Mon, 27 Sep 2010 07:39:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0C68-0000dy-Jv for submit@debbugs.gnu.org; Mon, 27 Sep 2010 07:42:22 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:43861) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0C67-0000dh-OE for submit@debbugs.gnu.org; Mon, 27 Sep 2010 07:42:20 -0400 Original-Received: from [140.186.70.92] (port=56320 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0C65-0003A0-By for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2010 07:42:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0C5y-0000bx-8u for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2010 07:42:16 -0400 Original-Received: from e450.epcc.ed.ac.uk ([129.215.56.230]:39281) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0C5x-0000b3-LY for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2010 07:42:10 -0400 Original-Received: from garnet.epcc.ed.ac.uk (garnet.epcc.ed.ac.uk [129.215.56.222]) by e450.epcc.ed.ac.uk (8.13.6/8.13.6) with ESMTP id o8RBg2wA000462 for ; Mon, 27 Sep 2010 12:42:02 +0100 (BST) Original-Received: from garnet.epcc.ed.ac.uk (localhost [127.0.0.1]) by garnet.epcc.ed.ac.uk (8.13.8+Sun/8.12.8) with ESMTP id o8RBfLHS003181 for ; Mon, 27 Sep 2010 12:41:21 +0100 (BST) Original-Received: (from lmitche4@localhost) by garnet.epcc.ed.ac.uk (8.13.8+Sun/8.13.8/Submit) id o8RBfLsq003178; Mon, 27 Sep 2010 12:41:21 +0100 (BST) X-Authentication-Warning: garnet.epcc.ed.ac.uk: lmitche4 set sender to lawrence.mitchell@ed.ac.uk using -f X-detected-operating-system: by eggs.gnu.org: Solaris 8 (1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 27 Sep 2010 07:40:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40482 Archived-At: When calling vc-annotate on a git-controlled file (this latter may not be relevant), I can reproducibly hit an assertion failure in process.c. The most recent change my emacs has is: | Author: Katsumi Yamaoka | Date: Sun Sep 26 23:15:50 2010 +0000 | Update ChangeLogs. This bug appears to occur reproducibly with: CFLAGS=-ggdb3 -O2 but /does not/ occur with: CFLAGS=-ggdb3 -O0 or CFLAGS=-ggdb3 -O1 Steps to reproduce: emacs -Q M-x find-library RET desktop RET ;; Or some version controlled file C-x v g (vc-annotate) You may need to do this multiple times, however the problem is reproducible for me. We get the following backtrace. Note that I suspect something funky is going on anyway, notice how there's an error in .gdbinit (when attempting to access the system-type variable) due to undefined memory. In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-09-27 on yam Windowing system distributor `The X.Org Foundation', version 11.0.10706000 configured using `configure '-C' '--with-x-toolkit=gtk' '--enable-use-lisp-union-type' '--enable-checking' '--with-imagemagick'' 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_GB.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t xbacktrace produces no output, bt full is reproduced below. wence@yam: ~/Documents/src/emacs/src $ gdb emacs GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/wence/Documents/src/emacs/src/emacs...done. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0.0 TERM = xterm /home/wence/Documents/src/emacs/src/.gdbinit:1319: Error in sourced command file: Cannot access memory at address 0x10b80a7 (gdb) r -Q Starting program: /home/wence/Documents/src/emacs/src/emacs -Q [Thread debugging using libthread_db enabled] process.c:6666: Emacs fatal error: assertion failed: PROCESSP(proc) Program received signal SIGABRT, Aborted. 0x0012d422 in __kernel_vsyscall () (gdb) bt full #0 0x0012d422 in __kernel_vsyscall () No symbol table info available. #1 0x010dc926 in kill () at ../sysdeps/unix/syscall-template.S:82 No locals. #2 0x08181f9b in abort () at emacs.c:427 No locals. #3 0x082007dd in die (msg=0x83584c0 "assertion failed: PROCESSP(proc)", file=0x8356d70 "process.c", line=6666) at alloc.c:6130 No locals. #4 0x08282def in status_notify (deleting_process=) at process.c:6666 symbol = proc = { i = 1091255862, s = { val = 17514038, type = Lisp_Symbol }, u = { val = 17514038, type = Lisp_Symbol } } buffer = { i = 2702035814, s = { val = 17681254, type = Lisp_Vectorlike }, u = { val = 17681254, type = Lisp_Vectorlike } } tail = msg = { i = 2165706695, s = { val = 18223047, type = Lisp_String }, u = { val = 18223047, type = Lisp_String } } #5 0x08288147 in wait_reading_process_output (time_limit=52, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=..., wait_proc=0x0, just_wait_proc=0) at process.c:4658 Atemp = { fds_bits = {0 } } Ctemp = { fds_bits = {0 } } timeout_reduced_for_timers = 1 channel = nfds = 141450032 Available = { fds_bits = {0 } } Writeok = { fds_bits = {0 } } check_write = -1592875457 check_delay = no_avail = xerrno = 0 proc = timeout = { tv_sec = 0, tv_usec = 0 } end_time = { tv_sec = 1285587116, tv_usec = 339199 } wait_channel = -1 got_some_input = 0 #6 0x08059e83 in sit_for (timeout=..., reading=1, do_display=1) at dispnew.c:6107 sec = 145075600 usec = 6 #7 0x081980b1 in read_char (commandflag=1, nmaps=2, maps=0xbfffeb20, prev_event=..., used_mouse_menu=0xbfffec24, end_time=0x0) at keyboard.c:2811 tem0 = delay_level = buffer_size = c = { i = 1091255862, s = { val = 17514038, type = Lisp_Symbol }, u = { val = 17514038, type = Lisp_Symbol } } local_getcjmp = {{ __jmpbuf = {142136376, 1091255862, 1, -1073747240, 1860389464, -1543665865}, __mask_was_saved = 0, __saved_mask = { __val = {3221219928, 136978940, 141450032, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1073873020, 2702035814, 1, 0, 0, 141450032, 1091258624, 3221219976, 136423554, 141450032, 40, 3221219664, 3221220012, 141111408, 1091335356, 3221219960, 136373719, 3221220028, 1} } }} save_jump = {{ __jmpbuf = {0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, __saved_mask = { __val = {0 } } }} key_already_recorded = 0 tem = save = previous_echo_area_message = { i = 1091255862, s = { val = 17514038, type = Lisp_Symbol }, u = { val = 17514038, type = Lisp_Symbol } } also_record = { i = 1091255862, s = { val = 17514038, type = Lisp_Symbol }, u = { val = 17514038, type = Lisp_Symbol } } reread = 0 polling_stopped_here = orig_kboard = 0x87d8fe0 #8 0x0819a6a6 in read_key_sequence (keybuf=, bufsize=, prompt=..., dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9339 interrupted_kboard = 0x87d8fe0 key = { i = 2702035814, s = { val = 17681254, type = Lisp_Vectorlike }, u = { val = 17681254, type = Lisp_Vectorlike } } used_mouse_menu = 0 echo_local_start = 0 last_real_key_start = 134791424 keys_local_start = 0 from_string = { i = 1091255862, s = { val = 17514038, type = Lisp_Symbol }, u = { val = 17514038, type = Lisp_Symbol } } t = echo_start = 0 keys_start = 0 nmaps = nmaps_allocated = 2 defs = 0xbfffeb00 submaps = orig_local_map = { i = 3239201946, s = { val = 17976474, type = Lisp_Cons }, u = { val = 17976474, type = Lisp_Cons } } orig_keymap = { i = 1091255862, s = { val = 17514038, type = Lisp_Symbol }, u = { val = 17514038, type = Lisp_Symbol } } localized_local_map = 0 first_binding = first_unbound = mock_input = fkey = { parent = { i = 3239200585, s = { val = 17975113, type = Lisp_Cons }, u = { val = 17975113, type = Lisp_Cons } }, map = { i = 3239200585, s = { val = 17975113, type = Lisp_Cons }, u = { val = 17975113, type = Lisp_Cons } }, start = 0, end = 0 } keytran = { parent = { i = 3238737884, s = { val = 17512412, type = Lisp_Cons }, u = { val = 17512412, type = Lisp_Cons } }, map = { i = 3238737884, s = { val = 17512412, type = Lisp_Cons }, u = { val = 17512412, type = Lisp_Cons } }, start = 0, end = 0 } indec = { parent = { i = 3239200597, s = { val = 17975125, type = Lisp_Cons }, u = { val = 17975125, type = Lisp_Cons } }, map = { i = 3239200597, s = { val = 17975125, type = Lisp_Cons }, u = { val = 17975125, type = Lisp_Cons } }, start = 0, end = 0 } shift_translated = 0 delayed_switch_frame = { i = 1091255862, s = { val = 17514038, type = Lisp_Symbol }, u = { val = 17514038, type = Lisp_Symbol } } original_uppercase = { i = 1628129203, s = { val = 17516467, type = Lisp_Misc }, u = { val = 17516467, type = Lisp_Misc } } original_uppercase_position = -1 starting_buffer = 0x86e5b30 fake_prefixed_keys = { i = 1091255862, s = { val = 17514038, type = Lisp_Symbol }, u = { val = 17514038, type = Lisp_Symbol } } #9 0x0819db9e in command_loop_1 () at keyboard.c:1618 cmd = keybuf = {{ i = 24, s = { val = 24, type = Lisp_Int }, u = { val = 24, type = Lisp_Int } }, { i = 118, s = { val = 118, type = Lisp_Int }, u = { val = 118, type = Lisp_Int } }, { i = 103, s = { val = 103, type = Lisp_Int }, u = { val = 103, type = Lisp_Int } }, { i = 225011984, s = { val = 225011984, type = Lisp_Int }, u = { val = 225011984, type = Lisp_Int } }, { i = 3221220608, s = { val = -4864, type = Lisp_Vectorlike }, u = { val = 536866048, type = Lisp_Vectorlike } }, { i = 1149622, s = { val = 1149622, type = Lisp_Int }, u = { val = 1149622, type = Lisp_Int } }, { i = 17582025, s = { val = 17582025, type = Lisp_Int }, u = { val = 17582025, type = Lisp_Int } }, { i = 134547652, s = { val = 134547652, type = Lisp_Int }, u = { val = 134547652, type = Lisp_Int } }, { i = 3221220732, s = { val = -4740, type = Lisp_Vectorlike }, u = { val = 536866172, type = Lisp_Vectorlike } }, { i = 3238771063, s = { val = 17545591, type = Lisp_Cons }, u = { val = 17545591, type = Lisp_Cons } }, { i = 3086813616, s = { val = -134411856, type = Lisp_Vectorlike }, u = { val = 402459056, type = Lisp_Vectorlike } }, { i = 3221159938, s = { val = -65534, type = Lisp_Vectorlike }, u = { val = 536805378, type = Lisp_Vectorlike } }, { i = 1173024, s = { val = 1173024, type = Lisp_Int }, u = { val = 1173024, type = Lisp_Int } }, { i = 134545858, s = { val = 134545858, type = Lisp_Int }, u = { val = 134545858, type = Lisp_Int } }, { i = 3086841184, s = { val = -134384288, type = Lisp_Vectorlike }, u = { val = 402486624, type = Lisp_Vectorlike } }, { i = 1228788, s = { val = 1228788, type = Lisp_Int }, u = { val = 1228788, type = Lisp_Int } }, { i = 17516932, s = { val = 17516932, type = Lisp_Int }, u = { val = 17516932, type = Lisp_Int } }, { i = 38, s = { val = 38, type = Lisp_Int }, u = { val = 38, type = Lisp_Int } }, { i = 0, s = { val = 0, type = Lisp_Int }, u = { val = 0, type = Lisp_Int } }, { i = 3221220632, s = { val = -4840, type = Lisp_Vectorlike }, u = { val = 536866072, type = Lisp_Vectorlike } }, { i = 3221220400, s = { val = -5072, type = Lisp_Vectorlike }, u = { val = 536865840, type = Lisp_Vectorlike } }, { i = 0, s = { val = 0, type = Lisp_Int }, u = { val = 0, type = Lisp_Int } }, { i = 143654912, s = { val = 143654912, type = Lisp_Int }, u = { val = 143654912, type = Lisp_Int } }, { i = 1091255862, s = { val = 17514038, type = Lisp_Symbol }, u = { val = 17514038, type = Lisp_Symbol } }, { i = 1091395998, s = { val = 17654174, type = Lisp_Symbol }, u = { val = 17654174, type = Lisp_Symbol } }, { i = 1604252416, s = { val = -6360320, type = Lisp_Symbol }, u = { val = 530510592, type = Lisp_Symbol } }, { i = 3221220744, s = { val = -4728, type = Lisp_Vectorlike }, u = { val = 536866184, type = Lisp_Vectorlike } }, { i = 3221220648, s = { val = -4824, type = Lisp_Vectorlike }, u = { val = 536866088, type = Lisp_Vectorlike } }, { i = 0, s = { val = 0, type = Lisp_Int }, u = { val = 0, type = Lisp_Int } }, { i = 3221220732, s = { val = -4740, type = Lisp_Vectorlike }, u = { val = 536866172, type = Lisp_Vectorlike } }} i = prev_modiff = 77 prev_buffer = 0x8b33dd8 #10 0x08222a2a in internal_condition_case (bfun=0x819d8e0 , handlers=..., hfun=0x81923e0 ) at eval.c:1460 val = c = { tag = { i = 1091255862, s = { val = 17514038, type = Lisp_Symbol }, u = { val = 17514038, type = Lisp_Symbol } }, val = { i = 1091255862, s = { val = 17514038, type = Lisp_Symbol }, u = { val = 17514038, type = Lisp_Symbol } }, next = 0xbfffeec8, gcpro = 0x0, jmp = {{ __jmpbuf = {-1073746292, -1073746244, -1073745940, -1073746328, 1860741720, -715019977}, __mask_was_saved = 0, __saved_mask = { __val = {0, 1, 1231096, 0, 0, 0, 0, 0, 0, 9814004, 0, 3221220976, 3221220904, 3221220916, 29, 1231096, 0, 3221221804, 17680571, 134546599, 29, 3221221028, 3221220888, 135932498, 3221220908, 3238789487, 0, 0, 0, 17582025, 17538560, 3086841272} } }}, backlist = 0x0, handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, poll_suppress_count = 1, interrupt_input_blocked = 0, byte_stack = 0x0 } h = { handler = { i = 1091259715, s = { val = 17517891, type = Lisp_Symbol }, u = { val = 17517891, type = Lisp_Symbol } }, var = { i = 1091255862, s = { val = 17514038, type = Lisp_Symbol }, u = { val = 17514038, type = Lisp_Symbol } }, chosen_clause = { i = 1, s = { val = 1, type = Lisp_Int }, u = { val = 1, type = Lisp_Int } }, tag = 0xbfffed84, next = 0x0 } #11 0x08191f52 in command_loop_2 (ignore=...) at keyboard.c:1338 val = { i = 145075600, s = { val = 145075600, type = Lisp_Int }, u = { val = 145075600, type = Lisp_Int } } #12 0x08222b24 in internal_catch (tag=..., func=0x8191f20 , arg=...) at eval.c:1204 c = { tag = { i = 1091259474, s = { val = 17517650, type = Lisp_Symbol }, u = { val = 17517650, type = Lisp_Symbol } }, val = { i = 1091255862, s = { val = 17514038, type = Lisp_Symbol }, u = { val = 17514038, type = Lisp_Symbol } }, next = 0x0, gcpro = 0x0, jmp = {{ __jmpbuf = {-1073745988, -1073745860, -1073745940, -1073746024, 1861167704, -714837705}, __mask_was_saved = 0, __saved_mask = { __val = {0, 0, 0, 0, 0, 0, 0, 0, 18632388, 3221221292, 0, 3221221292, 140003176, 4, 3221221804, 140016704, 3221221292, 3221221224, 136373647, 3221221292, 1, 0, 0, 0, 0, 0, 1091255862, 1091276805, 140279848, 3221221320, 136470225, 1091276805} } }}, backlist = 0x0, handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, poll_suppress_count = 1, interrupt_input_blocked = 0, byte_stack = 0x0 } #13 0x0819219f in command_loop () at keyboard.c:1317 No locals. #14 0x081925f8 in recursive_edit_1 () at keyboard.c:940 val = #15 0x081927fa in Frecursive_edit () at keyboard.c:1002 buffer = #16 0x08183133 in main (argc=, argv=) at emacs.c:1712 dummy = { i = 3221222280, s = { val = -3192, type = Lisp_Vectorlike }, u = { val = 536867720, type = Lisp_Vectorlike } } stack_bottom_variable = 8 '\b' do_initial_setlocale = skip_args = 0 rlim = { rlim_cur = 8388608, rlim_max = 18446744073709551615 } no_loadup = 0 junk = 0x0 dname_arg = 0x0 ch_to_dir = 0x1208ce0 "" (gdb) xbacktrace (gdb) quit A debugging session is active. Inferior 1 [process 13139] will be killed. Quit anyway? (y or n) y