From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Avrutin Newsgroups: gmane.emacs.bugs Subject: bug#18196: 24.4.50; crash when setting face background in terminal frame Date: Tue, 05 Aug 2014 12:34:36 -0400 Message-ID: <87siladgd0.fsf@gateway.local.navru.net> References: <87ppgf4aki.fsf@gateway.local.navru.net> <53E09B27.7050100@gmx.at> <53E0AA14.3010501@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1407257905 17322 80.91.229.3 (5 Aug 2014 16:58:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Aug 2014 16:58:25 +0000 (UTC) Cc: 18196@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 05 18:58:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XEi40-0002oU-Ec for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Aug 2014 18:58:16 +0200 Original-Received: from localhost ([::1]:60682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEi3z-0006rN-W8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Aug 2014 12:58:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEi3r-0006qO-Rf for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 12:58:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEi3m-0000k1-Vy for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 12:58:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEi3m-0000js-SA for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 12:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XEi3m-0006eV-3V for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 12:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Avrutin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Aug 2014 16:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18196 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18196-submit@debbugs.gnu.org id=B18196.140725784625510 (code B ref 18196); Tue, 05 Aug 2014 16:58:01 +0000 Original-Received: (at 18196) by debbugs.gnu.org; 5 Aug 2014 16:57:26 +0000 Original-Received: from localhost ([127.0.0.1]:59042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEi3B-0006dL-GI for submit@debbugs.gnu.org; Tue, 05 Aug 2014 12:57:26 -0400 Original-Received: from mail-qa0-f52.google.com ([209.85.216.52]:55256) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEi39-0006d3-4L for 18196@debbugs.gnu.org; Tue, 05 Aug 2014 12:57:24 -0400 Original-Received: by mail-qa0-f52.google.com with SMTP id j15so1189582qaq.25 for <18196@debbugs.gnu.org>; Tue, 05 Aug 2014 09:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; bh=JC+aRFTpraGQ2Gir0WjO+ExbCTG5hpROfYZQBNqFpuw=; b=KxHtlJ04Q22+pH59F0/ZJ58f9DVlslXOtCpIr4v6dFm6bSwSly0a9PMLQLbBlmhSa9 FE2v/VDUcs9WLMa2a2MQ2KAPLsnPdr4jHlXJG8xEUBIxn5AhJAlmC7BjH8q7D1y2hWNe RhL4VbXsoxRQSAVaH4bGOshXSB1xvscgRxpUn229A2LP6084I+7cPW20sqcl2LQlOqjg 74xeSbJ97aFFPSpQN1XhsJyDp2N7Pt7dxL82TSblZsf/WTzb7IQ8eRynhlJGT70MDVkg 6SUeRkrFkbmRXiH1dw25UYknS8w0RCCVqMsn3rNx35jGtLYTvTrU2qmMXOkFuaPm2lDv m90Q== X-Received: by 10.140.87.244 with SMTP id r107mr7067031qgd.13.1407257837365; Tue, 05 Aug 2014 09:57:17 -0700 (PDT) Original-Received: from gateway.local.navru.net ([2001:470:1f07:7d5::109]) by mx.google.com with ESMTPSA id c6sm3867563qag.36.2014.08.05.09.57.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Aug 2014 09:57:16 -0700 (PDT) In-reply-to: <53E0AA14.3010501@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:92151 Archived-At: On Tue, Aug 05 2014, martin rudalics wrote: > Can you try the attached patch? Your patch fixes this crash, however it introduces a new crash when opening a new frame in emacs -nw. This crash is not present without your patch. In addition, I've also found another related issue that was present before your patch, though it might be better suited for bug #18136. After opening emacs -nw and resizing the terminal or creating a new frame [C-x 5 2], the modeline moves down a line and overlaps the echo area. It is then possible to get the modeline back up by either closing all subsequent frames [C-x 5 0] or turning the menu bar off and on [M-: (menu-bar-mode -1) RET M-: (menu-bar-mode 1) RET] As for the crash: Steps to reproduce (with your patch applied): 1. emacs -Q -nw 2. C-x 5 2 Backtrace: (gdb) bt full #0 terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=40) at emacs.c:359 No locals. #1 0x00000000004f4ea8 in emacs_abort () at sysdep.c:2198 No locals. #2 0x000000000049ea76 in cmcheckmagic (tty=0x6, tty@entry=0x13c6ce0) at cm.c:120 No locals. #3 0x00000000004a4a6b in tty_write_glyphs (f=, string=0xcf81d0, len=) at term.c:802 conversion_buffer = coding = 0x13c6a70 n = stringlen = 0 tty = 0x13c6ce0 #4 0x00000000004a6f0b in write_glyphs (f=f@entry=0x10dfaa0, string=string@entry=0xcf68b0, len=len@entry=134) at terminal.c:162 No locals. #5 0x000000000041b01c in update_frame_line (f=f@entry=0x10dfaa0, vpos=vpos@entry=75) at dispnew.c:4854 obody = 0x0 nbody = 0xcf68b0 op1 = op2 = np1 = nend = 0xcf81d0 tem = osp = nsp = begmatch = endmatch = olen = 0 nlen = 134 current_matrix = desired_matrix = current_row = desired_row = must_write_whole_line_p = write_spaces_p = colored_spaces_p = false #6 0x000000000041cb9a in update_frame_1 (f=f@entry=0x10dfaa0, force_p=force_p@entry=true, inhibit_id_p=, inhibit_id_p@entry=false, set_cursor_p=set_cursor_p@entry=true) at dispnew.c:4541 current_matrix = 0xc7cb70 desired_matrix = 0x13ed3f0 i = 75 pause_p = preempt_count = 17 #7 0x000000000041dbf0 in update_frame (f=f@entry=0x10dfaa0, force_p=true, force_p@entry=false, inhibit_hairy_id_p=inhibit_hairy_id_p@entry=false) at dispnew.c:3116 paused_p = #8 0x00000000004512c7 in redisplay_internal () at xdisp.c:13869 gcscrollbars = w = sw = pending = must_finish = match_p = tlbufpos = tlendpos = number_of_visible_frames = polling_stopped_here = 1 tail = 19721462 consider_all_windows_p = update_miniwindow_p = #9 0x0000000000451820 in redisplay () at xdisp.c:13115 No locals. #10 0x00000000004e83bc in read_char (commandflag=1, map=map@entry=14224790, prev_event=12390578, used_mouse_menu=used_mouse_menu@entry=0x7fffffffc25b, end_time=end_time@entry=0x0) at keyboard.c:2566 echo_current = true c = jmpcount = local_getcjmp = {{ __jmpbuf = {16752048, 5179720, 12390578, 0, 12417413, 12423154, 192, 0}, __mask_was_saved = -16040, __saved_mask = { __val = {12390578, 12390578, 16752054, 4, 2, 14224774, 4294967295, 12390578, 12390626, 12390578, 5181333, 19584758, 12390578, 17693349, 0, 12390578} } }} save_jump = {{ ---Type to continue, or q to quit--- __jmpbuf = {0, 140737352476816, 140737353742776, 4241052, 140737243393400, 4212872, 12390578, 20237522}, __mask_was_saved = 20237522, __saved_mask = { __val = {20237522, 12390578, 5, 12390578, 20237522, 12425333, 140737351932527, 3, 140733193388034, 5, 5488452, 12529426, 12417408, 2, 15884032, 16910658} } }} tem = save = previous_echo_area_message = 12390578 also_record = 12390578 reread = false polling_stopped_here = false orig_kboard = 0x13c92d0 #11 0x00000000004e99da in read_key_sequence (keybuf=keybuf@entry=0x7fffffffc320, bufsize=bufsize@entry=30, prompt=, dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=false) at keyboard.c:9128 interrupted_kboard = 0x13c92d0 key = used_mouse_menu = false echo_local_start = 0 last_real_key_start = 0 keys_local_start = new_binding = t = 0 echo_start = 0 keys_start = 0 current_binding = 14224790 first_event = 12390578 first_unbound = 31 mock_input = 0 fkey = { parent = 15725926, map = 15725926, start = 0, end = 0 } keytran = { parent = 12370502, map = 12370502, start = 0, end = 0 } indec = { parent = 15725942, map = 15725942, start = 0, end = 0 } shift_translated = false delayed_switch_frame = 12390578 original_uppercase = 12514784 original_uppercase_position = -1 dummyflag = false starting_buffer = 0xbd7980 fake_prefixed_keys = 12390578 #12 0x00000000004eb2e9 in command_loop_1 () at keyboard.c:1438 cmd = keybuf = {96, 212, 200, 12390400, 0, 5470245, 140737488339968, 5535628, 12515824, 12390578, 12390578, 12390578, 20586736, 12390578, 0, 5470288, 12515826, 5470615, 12515824, 2, 12625046, 5533177, 0, 2, 15899862, 4000, 1, 0, 0, 5541319} i = prev_modiff = 10 prev_buffer = 0xbd7980 #13 0x00000000005465a1 in internal_condition_case (bfun=bfun@entry=0x4eafed , handlers=12442482, hfun=hfun@entry=0x4e2321 ) at eval.c:1347 val = c = #14 0x00000000004de2c3 in command_loop_2 (ignore=ignore@entry=12390578) at keyboard.c:1169 val = #15 0x0000000000546482 in internal_catch (tag=12438450, func=func@entry=0x4de2a9 , arg=12390578) at eval.c:1111 val = c = #16 0x00000000004de25b in command_loop () at keyboard.c:1148 No locals. #17 0x00000000004e1f83 in recursive_edit_1 () at keyboard.c:769 ---Type to continue, or q to quit--- val = #18 0x00000000004e2253 in Frecursive_edit () at keyboard.c:840 buffer = #19 0x00000000004ddd12 in main (argc=, argv=0x7fffffffc638) at emacs.c:1650 dummy = 6031933 stack_bottom_variable = 0 '\000' do_initial_setlocale = dumping = false skip_args = 1 rlim = { rlim_cur = 8720000, rlim_max = 18446744073709551615 } no_loadup = false junk = 0x0 dname_arg = 0x0 ch_to_dir = 0x0 original_pwd = 0x0 Lisp Backtrace: "redisplay_internal (C function)" (0xb99298) -- Nicolas Avrutin