From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rainer M Krug Newsgroups: gmane.emacs.bugs Subject: bug#21428: 24.5; Crash of emacs on OS X, installed via homebrew cask Date: Wed, 30 Sep 2015 11:49:10 +0200 Message-ID: References: <8337y2imvk.fsf@gnu.org> <83bncmeu95.fsf@gnu.org> <8337xyelev.fsf@gnu.org> <83vbaucx7c.fsf@gnu.org> <83fv1xd71j.fsf@gnu.org> <83bncld3vf.fsf@gnu.org> <838u7pd02c.fsf@gnu.org> <837fn9cxe3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1443680209 18511 80.91.229.3 (1 Oct 2015 06:16:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2015 06:16:49 +0000 (UTC) Cc: 21428@debbugs.gnu.org, mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 01 08:16:38 2015 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 1ZhXAR-0001a5-8w for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 08:16:35 +0200 Original-Received: from localhost ([::1]:38472 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhXAQ-0007Ff-96 for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 02:16:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhE1Y-0001HQ-B9 for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 05:50:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhE1T-0000O5-A0 for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 05:50:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhE1T-0000NN-7g for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 05:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZhE1S-000411-L6 for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2015 05:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rainer M Krug Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Sep 2015 09:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21428 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 21428-submit@debbugs.gnu.org id=B21428.144360656415381 (code B ref 21428); Wed, 30 Sep 2015 09:50:02 +0000 Original-Received: (at 21428) by debbugs.gnu.org; 30 Sep 2015 09:49:24 +0000 Original-Received: from localhost ([127.0.0.1]:48676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZhE0p-000400-A9 for submit@debbugs.gnu.org; Wed, 30 Sep 2015 05:49:24 -0400 Original-Received: from mail-wi0-f175.google.com ([209.85.212.175]:34784) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZhE0l-0003zr-TI for 21428@debbugs.gnu.org; Wed, 30 Sep 2015 05:49:21 -0400 Original-Received: by wicfx3 with SMTP id fx3so188524646wic.1 for <21428@debbugs.gnu.org>; Wed, 30 Sep 2015 02:49:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=eO9O2Uva9o82XHBfGrVtU0Q6TKEXLFajJV+SQdGbKc0=; b=XKZ2JVsEytq4YQ98AR7bRkxGdMzbCP1GPl9Q+7YZ1JsbrKk+hMj7ZF+P8jtaslaSf1 lPvtXHOpGO6mqYDMcU//l6KIpat1kJHK8WL1v7J3T3FSw9w29t2qJZuRMGug8x/wZD/d FRGxkvFoNr2cusa0jLm1BPsojEriPT8Dzl4oBKEX//r+zXZpVr53WYx8Uy+hZuOIsul6 lNlZkF44/uL6HTLLtkaiUfBa3via1Ohf2G4lPRV9X6redJkZTWRoksrLLf6uXjbmKZ/5 /mYLIUxW0fDKmZ/TTZf/HFrU25uwbAiaxKvfqt72GlwDdSFrkH7bikmt99Ht+i2hfuSu mFow== X-Received: by 10.180.105.138 with SMTP id gm10mr3286900wib.37.1443606559086; Wed, 30 Sep 2015 02:49:19 -0700 (PDT) Original-Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by smtp.gmail.com with ESMTPSA id kr10sm312894wjc.25.2015.09.30.02.49.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Sep 2015 02:49:17 -0700 (PDT) In-Reply-To: (Rainer M. Krug's message of "Tue, 29 Sep 2015 13:16:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) 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: 208.118.235.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:107089 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Rainer M Krug writes: > Eli Zaretskii writes: > >>> From: Rainer M Krug >>> Cc: 21428@debbugs.gnu.org, mituharu+bug-gnu-emacs-mac@math.s.chiba-u.a= c.jp >>> Date: Tue, 29 Sep 2015 12:17:33 +0200 >>>=20 >>> > OK, for now just add GET_FROM_IMAGE to the assertion, like this: >>> > >>> > eassert (it->method =3D=3D GET_FROM_BUFFER >>> > || it->method =3D=3D GET_FROM_DISPLAY_VECTOR >>> > || it->method =3D=3D GET_FROM_STRING >>> > || it->method =3D=3D GET_FROM_IMAGE); >>> > >>> > recompile, >>>=20 >>> Done >>>=20 >>> > and see if this gets you past the crashes in >>> > push_prefix_prop when those inhibit-* variables are set to t. >>>=20 >>> OK >>>=20 >>> > If it does, then let's see if running with those inhibit-* variables >>> > set to t can trigger the crashes due to invalid face ID in >>> > get_glyph_face_and_encoding. >>>=20 >>> I assume you mean here to set them to NILL? >> >> No, I mean continue running with them set to t, and see if the crashes >> in get_glyph_face_and_encoding are prevented by disabling these >> redisplay optimizations. > > OK - got it. So continue the initial plan. They are all set to t and I got the following crash: Let me know if you need any further info - I will leave the session open. Rainer ,---- | xdisp.c:24350: Emacs fatal error: assertion failed: face !=3D NULL |=20 | Breakpoint 1, terminate_due_to_signal (sig=3D6, backtrace_limit=3D2147483= 647) at emacs.c:370 | 370 signal (sig, SIG_DFL); | (gdb) bt | #0 terminate_due_to_signal (sig=3D6, backtrace_limit=3D2147483647) at em= acs.c:370 | #1 0x0000000100229d6b in die (msg=3D0x1003bbad3 "face !=3D NULL", file= =3D0x1003b70d0 "xdisp.c", line=3D24350) at alloc.c:6951 | #2 0x0000000100065467 in get_glyph_face_and_encoding (f=3D0x104811630, g= lyph=3D0x11ca93400, char2b=3D0x7fff5fbfb660) at xdisp.c:24350 | #3 0x00000001000b860d in fill_glyph_string (s=3D0x7fff5fbfb6c0, face_id= =3D48, start=3D0, end=3D42, overlaps=3D0) at xdisp.c:24575 | #4 0x000000010006fb19 in draw_glyphs (w=3D0x11226a6b8, x=3D8, row=3D0x11= fa6e100, area=3DTEXT_AREA, start=3D0, end=3D42, hl=3DDRAW_NORMAL_TEXT, over= laps=3D0) at xdisp.c:25242 | #5 0x000000010006f441 in x_write_glyphs (w=3D0x11226a6b8, updated_row=3D= 0x11fa6e100, start=3D0x11ca93400, updated_area=3DTEXT_AREA, len=3D42) at xd= isp.c:27273 | #6 0x000000010001248a in update_text_area (w=3D0x11226a6b8, updated_row= =3D0x11fa6e100, vpos=3D1) at dispnew.c:3611 | #7 0x00000001000100a4 in update_window_line (w=3D0x11226a6b8, vpos=3D1, = mouse_face_overwritten_p=3D0x7fff5fbfbdd2) at dispnew.c:3854 | #8 0x0000000100007ca4 in update_window (w=3D0x11226a6b8, force_p=3Dtrue)= at dispnew.c:3477 | #9 0x000000010000681f in update_window_tree (w=3D0x11226a6b8, force_p=3D= true) at dispnew.c:3219 | #10 0x00000001000067cd in update_window_tree (w=3D0x11ca87fa8, force_p=3D= true) at dispnew.c:3217 | #11 0x00000001000064db in update_frame (f=3D0x104811630, force_p=3Dtrue, = inhibit_hairy_id_p=3Dfalse) at dispnew.c:3108 | #12 0x0000000100052bc5 in redisplay_internal () at xdisp.c:13826 | #13 0x00000001000546f9 in redisplay () at xdisp.c:13067 | #14 0x00000001001889b9 in read_char (commandflag=3D1, map=3D4754523971, p= rev_event=3D0, used_mouse_menu=3D0x7fff5fbfefc7, end_time=3D0x0) at keyboar= d.c:2465 | #15 0x0000000100183919 in read_key_sequence (keybuf=3D0x7fff5fbff300, buf= size=3D30, prompt=3D0, dont_downcase_last=3Dfalse, can_return_switch_frame= =3Dtrue, fix_current_buffer=3Dtrue, prevent_redisplay=3Dfalse) at keyboard.= c:9030 | #16 0x0000000100182216 in command_loop_1 () at keyboard.c:1348 | #17 0x0000000100264d86 in internal_condition_case (bfun=3D0x100181c20 , handlers=3D17616, hfun=3D0x10019d490 ) at eval.c:= 1309 | #18 0x000000010019d38c in command_loop_2 (ignore=3D0) at keyboard.c:1088 | #19 0x0000000100263e4e in internal_catch (tag=3D42768, func=3D0x10019d360= , arg=3D0) at eval.c:1073 | #20 0x0000000100180f60 in command_loop () at keyboard.c:1067 | #21 0x0000000100180da2 in recursive_edit_1 () at keyboard.c:673 | #22 0x0000000100181193 in Frecursive_edit () at keyboard.c:744 | #23 0x000000010017ed3a in main (argc=3D1, argv=3D0x7fff5fbff908) at emacs= .c:1643 |=20 | Lisp Backtrace: | "redisplay_internal (C function)" (0x0) | (gdb) tb full | Function "full" not defined. | Make breakpoint pending on future shared library load? (y or [n]) bt full | Please answer y or [n]. | Make breakpoint pending on future shared library load? (y or [n]) n | (gdb) bt full | #0 terminate_due_to_signal (sig=3D6, backtrace_limit=3D2147483647) at em= acs.c:370 | No locals. | #1 0x0000000100229d6b in die (msg=3D0x1003bbad3 "face !=3D NULL", file= =3D0x1003b70d0 "xdisp.c", line=3D24350) at alloc.c:6951 | No locals. | #2 0x0000000100065467 in get_glyph_face_and_encoding (f=3D0x104811630, g= lyph=3D0x11ca93400, char2b=3D0x7fff5fbfb660) at xdisp.c:24350 | face =3D (struct face *) 0x0 | code =3D 0 | #3 0x00000001000b860d in fill_glyph_string (s=3D0x7fff5fbfb6c0, face_id= =3D48, start=3D0, end=3D42, overlaps=3D0) at xdisp.c:24575 | glyph =3D (struct glyph *) 0x11ca93400 | last =3D (struct glyph *) 0x11ca93be0 | voffset =3D 0 | glyph_not_available_p =3D false | #4 0x000000010006fb19 in draw_glyphs (w=3D0x11226a6b8, x=3D8, row=3D0x11= fa6e100, area=3DTEXT_AREA, start=3D0, end=3D42, hl=3DDRAW_NORMAL_TEXT, over= laps=3D0) at xdisp.c:25242 | face_id =3D 48 | char2b =3D (XChar2b *) 0x7fff5fbfb660 | first_glyph =3D (struct glyph *) 0x11ca93400 | head =3D (struct glyph_string *) 0x7fff5fbfb6c0 | tail =3D (struct glyph_string *) 0x7fff5fbfb6c0 | s =3D (struct glyph_string *) 0x7fff5fbfb6c0 | clip_head =3D (struct glyph_string *) 0x0 | clip_tail =3D (struct glyph_string *) 0x0 | i =3D 0 | j =3D 1531018 | x_reached =3D 1 | last_x =3D 1257 | area_left =3D 8 | f =3D (struct frame *) 0x104811630 | sa_avail =3D 16300 | sa_count =3D 5 | sa_must_free =3D false | #5 0x000000010006f441 in x_write_glyphs (w=3D0x11226a6b8, updated_row=3D= 0x11fa6e100, start=3D0x11ca93400, updated_area=3DTEXT_AREA, len=3D42) at xd= isp.c:27273 | x =3D 16777216 | hpos =3D 0 | chpos =3D 35 | #6 0x000000010001248a in update_text_area (w=3D0x11226a6b8, updated_row= =3D0x11fa6e100, vpos=3D1) at dispnew.c:3611 | current_row =3D (struct glyph_row *) 0x11ca42500 | desired_row =3D (struct glyph_row *) 0x11fa6e100 | rif =3D (struct redisplay_interface *) 0x1007df0a8 | changed_p =3D false | #7 0x00000001000100a4 in update_window_line (w=3D0x11226a6b8, vpos=3D1, = mouse_face_overwritten_p=3D0x7fff5fbfbdd2) at dispnew.c:3854 | current_row =3D (struct glyph_row *) 0x11ca42500 | desired_row =3D (struct glyph_row *) 0x11fa6e100 | rif =3D (struct redisplay_interface *) 0x1007df0a8 | changed_p =3D false | #8 0x0000000100007ca4 in update_window (w=3D0x11226a6b8, force_p=3Dtrue)= at dispnew.c:3477 | vpos =3D 1 | i =3D 78 | end =3D (struct glyph_row *) 0x11fa76e00 | mode_line_row =3D (struct glyph_row *) 0x11fa76e00 | header_line_row =3D (struct glyph_row *) 0x11fa6e000 | changed_p =3D false | mouse_face_overwritten_p =3D false | row =3D (struct glyph_row *) 0x11fa6e100 | yb =3D 1402 | n_updated =3D 0 | desired_matrix =3D (struct glyph_matrix *) 0x1143f3830 | paused_p =3D false | preempt_count =3D 17 | rif =3D (struct redisplay_interface *) 0x1007df0a8 | #9 0x000000010000681f in update_window_tree (w=3D0x11226a6b8, force_p=3D= true) at dispnew.c:3219 | paused_p =3D false | #10 0x00000001000067cd in update_window_tree (w=3D0x11ca87fa8, force_p=3D= true) at dispnew.c:3217 | paused_p =3D false | #11 0x00000001000064db in update_frame (f=3D0x104811630, force_p=3Dtrue, = inhibit_hairy_id_p=3Dfalse) at dispnew.c:3108 | paused_p =3D 255 | root_window =3D (struct window *) 0x11ca87fa8 | #12 0x0000000100052bc5 in redisplay_internal () at xdisp.c:13826 | gcscrollbars =3D true | f =3D (struct frame *) 0x104811630 | w =3D (struct window *) 0x11226a6b8 | sw =3D (struct window *) 0x11226a6b8 | fr =3D (struct frame *) 0x104811630 | pending =3D false | must_finish =3D true | match_p =3D true | tlbufpos =3D { | charpos =3D 43, | bytepos =3D 43 | } | tlendpos =3D { | charpos =3D 13586, | bytepos =3D 13586 | } | number_of_visible_frames =3D 1 | count =3D 2 | sf =3D (struct frame *) 0x104811630 | polling_stopped_here =3D true | tail =3D 4412463651 | frame =3D 4370535989 | consider_all_windows_p =3D true | update_miniwindow_p =3D true | #13 0x00000001000546f9 in redisplay () at xdisp.c:13067 | No locals. | #14 0x00000001001889b9 in read_char (commandflag=3D1, map=3D4754523971, p= rev_event=3D0, used_mouse_menu=3D0x7fff5fbfefc7, end_time=3D0x0) at keyboar= d.c:2465 | echo_current =3D false | c =3D 0 | jmpcount =3D 140734799801376 | local_getcjmp =3D 0x7fff5fbfebb0 | save_jump =3D 0x7fff5fbfeb10 | tem =3D 2 | save =3D 0 | previous_echo_area_message =3D 0 | also_record =3D 0 | reread =3D false | recorded =3D false | polling_stopped_here =3D false | orig_kboard =3D (struct kboard *) 0x10120d1a0 | #15 0x0000000100183919 in read_key_sequence (keybuf=3D0x7fff5fbff300, buf= size=3D30, prompt=3D0, dont_downcase_last=3Dfalse, can_return_switch_frame= =3Dtrue, fix_current_buffer=3Dtrue, prevent_redisplay=3Dfalse) at keyboard.= c:9030 | interrupted_kboard =3D (KBOARD *) 0x10120d1a0 | interrupted_frame =3D (struct frame *) 0x104811630 | key =3D 0 | used_mouse_menu =3D false | echo_local_start =3D 0 | last_real_key_start =3D 0 | keys_local_start =3D 0 | new_binding =3D 4303307192 | count =3D 2 | t =3D 0 | echo_start =3D 0 | keys_start =3D 0 | current_binding =3D 4754523971 | first_event =3D 0 | first_unbound =3D 31 | mock_input =3D 0 | fkey =3D { | parent =3D 4412433507, | map =3D 4412433507, | start =3D 0, | end =3D 0 | } | keytran =3D { | parent =3D 4336943683, | map =3D 4336943683, | start =3D 0, | end =3D 0 | } | indec =3D { | parent =3D 4412433651, | map =3D 4412433651, | start =3D 0, | end =3D 0 | } | shift_translated =3D false | delayed_switch_frame =3D 0 | original_uppercase =3D 0 | original_uppercase_position =3D -1 | dummyflag =3D false | starting_buffer =3D (struct buffer *) 0x1119a7dd0 | fake_prefixed_keys =3D 0 | #16 0x0000000100182216 in command_loop_1 () at keyboard.c:1348 | cmd =3D 18099272 | keybuf =3D 0x7fff5fbff300 | i =3D 2 | prev_modiff =3D 14849 | prev_buffer =3D (struct buffer *) 0x1119a7dd0 | already_adjusted =3D false | #17 0x0000000100264d86 in internal_condition_case (bfun=3D0x100181c20 , handlers=3D17616, hfun=3D0x10019d490 ) at eval.c:= 1309 | val =3D 4303324808 | c =3D (struct handler *) 0x101043ab0 | #18 0x000000010019d38c in command_loop_2 (ignore=3D0) at keyboard.c:1088 | val =3D 2 | #19 0x0000000100263e4e in internal_catch (tag=3D42768, func=3D0x10019d360= , arg=3D0) at eval.c:1073 | val =3D 0 | c =3D (struct handler *) 0x1010439c0 | #20 0x0000000100180f60 in command_loop () at keyboard.c:1067 | No locals. | #21 0x0000000100180da2 in recursive_edit_1 () at keyboard.c:673 | count =3D 1 | val =3D 0 | #22 0x0000000100181193 in Frecursive_edit () at keyboard.c:744 | count =3D 0 | buffer =3D 0 | #23 0x000000010017ed3a in main (argc=3D1, argv=3D0x7fff5fbff908) at emacs= .c:1643 | dummy =3D 140734799806464 | stack_bottom_variable =3D 0 '\0' | do_initial_setlocale =3D true | dumping =3D false | skip_args =3D 0 | rlim =3D { | rlim_cur =3D 8720000, | rlim_max =3D 67104768 | } | no_loadup =3D false | junk =3D 0x0 | dname_arg =3D 0x0 | dname_arg2 =3D 0x7fff5fbff880 "\001" | ch_to_dir =3D 0x0 | original_pwd =3D 0x0 |=20 | Lisp Backtrace: | "redisplay_internal (C function)" (0x0) | (gdb) `---- > >> >> IOW, if the assertion violation in push_prefix_prop is no longer in >> the way, let's go back to our plan of trying to figure out which >> redisplay optimizations cause the crashes in >> get_glyph_face_and_encoding: first run with all optimizations >> disabled, and if that avoids the crashes in >> get_glyph_face_and_encoding, re-enable the optimizations one by one to >> see which one reintroduces the crashes. > > OK - will do so. > >> >> The assertion violations in push_prefix_prop are a separate issue, >> unrelated to the original problem we are trying to solve. It just >> distracted us for a while, because you were unable to run without >> hitting them. > > Ah - was wondering already a bit about the different non-similar > messages. > > Thanks for your patience, > > Rainer > >> >> Thanks. =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJWC7AbAAoJENvXNx4PUvmCj24IAI5pWN8aAXQ7ICvmHQsQWhpj uFU7kMiV4NDphfIpEIdwqbkbT9cnLhbu3CdG43Lhjzd7o1dm7VQkrpG+HaOadfXM Z+yubS0OUyRu+/TjTqff3pNm+5xH0ihgOBAIugqOYQbC1h1sDpjeXDV4L8ptLGzA 0ZQqUo0y6H/gVpiWeorQcrpFiQ0OZJu4MCSeCMC46hZbqsKlISYPqb+o3Sst9vHm 983ZYl90CH+o/PglcTnh58J94qbytuszwEnrGhcLAVLBwBjFk9QGLJtKkI5Af1pF XqA7rd0fdkmiE3jxPq9NI/S/i0EHZabARDu9Bd5LPgEJkDHdE9AwL+zJxtaqgy0= =V6vy -----END PGP SIGNATURE----- --=-=-=--