From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#30874: 27.0.50; Emacs crashes Date: Mon, 26 Mar 2018 12:33:50 +0200 Message-ID: <878taf2kj5.fsf@gmail.com> References: <837eq7lzr4.fsf@gnu.org> <831sgencgb.fsf@gnu.org> <83woy4i7rz.fsf@gnu.org> <83vadoi2ia.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1522060334 25782 195.159.176.226 (26 Mar 2018 10:32:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2018 10:32:14 +0000 (UTC) Cc: 30874@debbugs.gnu.org To: Jan Synacek Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 26 12:32:10 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0PQ8-0006a6-G8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Mar 2018 12:32:08 +0200 Original-Received: from localhost ([::1]:55747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0PSC-00069I-1I for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Mar 2018 06:34:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0PS1-00068m-Av for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 06:34:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0PRy-0001Oc-1N for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 06:34:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45759) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0PRx-0001OP-To for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 06:34:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f0PRx-0004xi-I1 for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2018 06:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Mar 2018 10:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30874 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 30874-submit@debbugs.gnu.org id=B30874.152206044019067 (code B ref 30874); Mon, 26 Mar 2018 10:34:01 +0000 Original-Received: (at 30874) by debbugs.gnu.org; 26 Mar 2018 10:34:00 +0000 Original-Received: from localhost ([127.0.0.1]:53656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0PRw-0004xS-8b for submit@debbugs.gnu.org; Mon, 26 Mar 2018 06:34:00 -0400 Original-Received: from mail-wr0-f177.google.com ([209.85.128.177]:43085) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0PRt-0004xF-TG for 30874@debbugs.gnu.org; Mon, 26 Mar 2018 06:33:58 -0400 Original-Received: by mail-wr0-f177.google.com with SMTP id p53so10838103wrc.10 for <30874@debbugs.gnu.org>; Mon, 26 Mar 2018 03:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=3QIJHmKy1bdDQIaSMYk+sI2+2f3LgfaR7j3LWzrybuQ=; b=lhjh5BGs716O99Gd0/KS9IULYC6DzQTCOqT7xSmEDJeDk0g5wpvwauPJn4wNlXyQBh 8Vk9XakB6fMa5qx9yYmAyg+da6AG1oQRzZEgZFR9mf1vqq3LIrpBf1yIWFSAtf4KGq/0 GP152Boq5it07v0JQLRJHQTlXH8e6MnlLSReP67ZugKNXJ8tw3qXB4fLFhUf8dhuSSIn QjusVZDT24GjPP9OBtE5mX1IS3xrYAtgLHilK1geK/6R/UDTfVsJJ9ym1ffnnUFERPl7 w1CzwF5eDl1ZHFzoWy6D1IYNp7h3VVPgZ8Db1iACbp7ww4RYChXUStAZ0lzvTNCxiaBY Q24g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=3QIJHmKy1bdDQIaSMYk+sI2+2f3LgfaR7j3LWzrybuQ=; b=TAf7PAwQmOPaZXUQYQCxtvoCAsk0OwHUOlBLWRik/7rDLJcPyCQzRhUU/IP/YmJcAg +tsCDim2490RI+A32EBwkeZMIXkFQ/ufoYI7mvy6Yn9ND6fZtt2fbxLZdHIGNOjsaGAo ChdRPTLcMDJxI1l7Kt6cQP7cYyqVw4yXok0RBrZ01Q+/HqUOsMRbucMTp+DRLoxAZ4wk jv6YdQB+ASU82Whx0SBqMd0hsdoXXog/VkQIAf/SK5bI7Ah2MQaV/lyfHzWYffrOBla+ sf/kxlPV7ns7NnD/cIWrYRpiy9B6XknSYcHBIAC9F7kJXqeIdxCLFTQQxQBvCJR0I75r sy1A== X-Gm-Message-State: AElRT7HcXDPKwZGUjRfK7rhYwi4KS1HgspGrATCsUo0y1EgDEgjmxAVD yH2XbJNS/Sa3b46Yc3HSdTDTPZbL X-Google-Smtp-Source: AG47ELsHK5+RHqE4/0BKQI0PgRkKcam1qsBTkReXUKcNENe8TwP5DSt96RvOv4Jk9glUQUoP3+l1vw== X-Received: by 10.223.187.75 with SMTP id x11mr27937240wrg.217.1522060431800; Mon, 26 Mar 2018 03:33:51 -0700 (PDT) Original-Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id e74sm15132182wmg.27.2018.03.26.03.33.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Mar 2018 03:33:50 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Jan Synacek's message of "Mon, 26 Mar 2018 11:12:44 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:144624 Archived-At: Jan Synacek writes: >> #19 0x00000000004c2fcb in x_error_handler (display=0x2c59000, >> event=0x7fffffff5d40) at xterm.c:9889 >> #20 0x00007ffff469ce3a in _XError () at /lib64/libX11.so.6 >> #21 0x00007ffff4699d6b in handle_error () at /lib64/libX11.so.6 >> ---Type to continue, or q to quit--- >> #22 0x00007ffff4699e15 in handle_response () at /lib64/libX11.so.6 >> #23 0x00007ffff469a745 in _XEventsQueued () at /lib64/libX11.so.6 >> #24 0x00007ffff468c2bd in XPending () at /lib64/libX11.so.6 >> #25 0x00007ffff64f2c2e in gdk_event_source_prepare () at /lib64/libgdk-3.so.0 >> #26 0x00007ffff4e033f9 in g_main_context_prepare () at /lib64/libglib-2.0.so.0 >> #27 0x00007ffff4e03dcb in g_main_context_iterate.isra () at >> /lib64/libglib-2.0.so.0 >> #28 0x00007ffff4e03f57 in g_main_context_pending () at /lib64/libglib-2.0.so.0 >> #29 0x00007ffff69b2d1d in gtk_events_pending () at /lib64/libgtk-3.so.0 >> #30 0x00000000004bfee7 in XTread_socket (terminal=, >> hold_quit=0x7fffffff6040) at xterm.c:9146 >> #31 0x00000000004f7301 in gobble_input () at keyboard.c:6890 >> #32 0x00000000004f7925 in handle_async_input () at keyboard.c:7127 >> #33 0x00000000004f7925 in process_pending_signals () at keyboard.c:7141 >> #34 0x00000000005c8e5c in xftfont_open (f=0x13f0c30 >> , entity=0x1243cb5 , >> pixel_size=15) at xftfont.c:391 >> >> indicates that the X error message was read when Emacs unblocked input >> in xftfont_open, and read pending input. In synchronous X operation, >> the call to x_error_handler should come from an X function, not from >> process_pending_signals. I hoped that seeing the X function that >> caused the error will allow us to understand better what is causing >> the problem. If you still see exactly the same backtrace in >> synchronous X operation, then I don't see any path forward, except >> saying that telling Emacs Dejavu Sans Mono can cover the entire >> Unicode range of characters is not recommended. (But when I did that >> with a couple of fonts here, Emacs didn't crash.) It could be a >> problem in the font backend you use, or it could be something else. FWIW, I can reproduce this on Fedora 27 with xterm.c patched to force synchronous operation. There's no crash, but Emacs hangs, so I sent it a SIGHUP and got the following: #0 0x00007ffff048b82d in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0 #1 0x00007ffff469dd02 in _XReply (dpy=dpy@entry=0x2c5ba00, rep=rep@entry=0x7fffffff2d00, extra=extra@entry=0, discard=discard@entry=1) at xcb_io.c:590 #2 0x00007ffff469970d in XSync (dpy=0x2c5ba00, discard=discard@entry=0) at Sync.c:44 #3 0x00007ffff46997ab in _XSyncFunction (dpy=) at Synchro.c:35 #4 0x00007ffff3e17dc8 in XftDrawDestroy (draw=0x3404580) at xftdraw.c:279 #5 0x00000000005c82a9 in xftfont_end_for_frame (f=0x13f2c30 ) at xftfont.c:686 #6 0x00000000005781fb in font_update_drivers (f=f@entry=0x13f2c30 , new_drivers=new_drivers@entry=XIL(0)) at font.c:3540 #7 0x0000000000428179 in delete_frame (frame=, force=force@entry=XIL(0x98a0)) at frame.c:2013 #8 0x00000000004bf6e3 in x_connection_closed (dpy=dpy@entry=0x2c5ba00, error_message=, error_message@entry=0x7fffffff2fc0 "X protocol error: BadLength (poly request too large or internal Xlib length error) on protocol request 138", ioerror=ioerror@entry=false) at xterm.c:9810 #9 0x00000000004c30f0 in x_error_quitter (display=0x2c5ba00, event=, event=) at xterm.c:9919 #10 0x00000000004c316b in x_error_handler (display=0x2c5ba00, event=0x7fffffff3180) at xterm.c:9889 #11 0x00007ffff469fe3a in _XError (dpy=dpy@entry=0x2c5ba00, rep=rep@entry=0x33f8e70) at XlibInt.c:1434 #12 0x00007ffff469cd6b in handle_error (dpy=0x2c5ba00, err=0x33f8e70, in_XReply=) at xcb_io.c:199 #13 0x00007ffff469ce15 in handle_response (dpy=0x2c5ba00, response=0x33f8e70, in_XReply=) at xcb_io.c:311 #14 0x00007ffff469dd70 in _XReply (dpy=dpy@entry=0x2c5ba00, rep=rep@entry=0x7fffffff3330, extra=extra@entry=0, discard=discard@entry=1) at xcb_io.c:621 #15 0x00007ffff469970d in XSync (dpy=0x2c5ba00, discard=discard@entry=0) at Sync.c:44 #16 0x00007ffff46997ab in _XSyncFunction (dpy=) at Synchro.c:35 #17 0x00007ffff4028fe1 in XRenderAddGlyphs (dpy=dpy@entry=0x2c5ba00, glyphset=, gids=gids@entry=0x7fffffff34a8, glyphs=glyphs@entry=0x3334840, nglyphs=nglyphs@entry=1, images=images@entry=0x34e39b0 "", nbyte_images=) at Glyph.c:112 #18 0x00007ffff3e1c7ef in XftFontLoadGlyphs (dpy=dpy@entry=0x2c5ba00, pub=pub@entry=0x34dd100, need_bitmaps=need_bitmaps@entry=0, glyphs=, glyphs@entry=0x7fffffff4540, nglyph=) at xftglyphs.c:694 #19 0x00007ffff3e1943b in XftGlyphExtents (dpy=dpy@entry=0x2c5ba00, pub=pub@entry=0x34dd100, glyphs=glyphs@entry=0x7fffffff49a0, nglyphs=nglyphs@entry=94, extents=extents@entry=0x7fffffff5a34) at xftextent.c:53 #20 0x00007ffff3e195ca in XftTextExtents8 (dpy=dpy@entry=0x2c5ba00, pub=pub@entry=0x34dd100, string=string@entry=0x2c046e1 "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~", len=len@entry=94, extents=extents@entry=0x7fffffff5a34) at xftextent.c:139 #21 0x00000000005c9247 in xftfont_open (f=0x13f2c30 , entity=XIL(0x1459ea5), pixel_size=27) at xftfont.c:378 #22 0x000000000057a9bc in font_open_entity (f=0x13f2c30 , entity=XIL(0x1459ea5), pixel_size=27) at font.c:2903 #23 0x00000000005cb134 in fontset_find_font (fontset=fontset@entry=XIL(0x1466c35), c=c@entry=10060, face=face@entry=0x2d4a720, charset_id=charset_id@entry=-1, fallback=fallback@entry=true) at fontset.c:707 #24 0x00000000005cb94b in fontset_font (fontset=fontset@entry=XIL(0x1466c35), c=c@entry=10060, face=face@entry=0x2d4a720, id=-1) at fontset.c:788 #25 0x00000000005cbc4c in face_for_char (f=0x13f2c30 , face=face@entry=0x2d4a720, c=10060, pos=, object=) at fontset.c:990 #26 0x0000000000447639 in FACE_FOR_CHAR (object=, pos=, character=, face=0x2d4a720, f=) at dispextern.h:1818 #27 0x0000000000447639 in get_next_display_element (it=it@entry=0x7fffffff83c0) at xdisp.c:7324 #28 0x000000000044e758 in display_line (it=it@entry=0x7fffffff83c0, cursor_vpos=cursor_vpos@entry=5) at xdisp.c:21502 #29 0x000000000045389d in try_window (window=window@entry=XIL(0x13f3c35), pos=..., flags=flags@entry=1) at xdisp.c:17718 #30 0x00000000004668f1 in redisplay_window (window=XIL(0x13f3c35), just_this_one_p=just_this_one_p@entry=false) at xdisp.c:17165 #31 0x000000000046948b in redisplay_window_0 (window=window@entry=XIL(0x13f3c35)) at xdisp.c:14922 #32 0x0000000000561f46 in internal_condition_case_1 (bfun=bfun@entry=0x469460 , arg=arg@entry=XIL(0x13f3c35), handlers=, hfun=hfun@entry=0x42f380 ) at eval.c:1356 #33 0x0000000000434475 in redisplay_windows (window=XIL(0x13f3c35)) at xdisp.c:14902 #34 0x00000000004571fd in redisplay_internal () at xdisp.c:14385 #35 0x0000000000458ef5 in redisplay () at xdisp.c:13597 #36 0x00000000004fa5bb in read_char (commandflag=commandflag@entry=1, map=map@entry=XIL(0x34aa213), prev_event=XIL(0), used_mouse_menu=used_mouse_menu@entry=0x7fffffffd8bb, end_time=end_time@entry=0x0) at keyboard.c:2486 #37 0x00000000004fd0fb in read_key_sequence (keybuf=keybuf@entry=0x7fffffffd990, prompt=prompt@entry=XIL(0), 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=prevent_redisplay@entry=false, bufsize=30) at keyboard.c:9137 #38 0x00000000004febee in command_loop_1 () at keyboard.c:1370 #39 0x0000000000561eae in internal_condition_case (bfun=bfun@entry=0x4fea00 , handlers=handlers@entry=XIL(0x5280), hfun=hfun@entry=0x4f5c20 ) at eval.c:1332 #40 0x00000000004f0a3c in command_loop_2 (ignore=ignore@entry=XIL(0)) at keyboard.c:1111 #41 0x0000000000561e1d in internal_catch (tag=tag@entry=XIL(0xc750), func=func@entry=0x4f0a20 , arg=arg@entry=XIL(0)) at eval.c:1097 #42 0x00000000004f09e4 in command_loop () at keyboard.c:1090 #43 0x00000000004f5843 in recursive_edit_1 () at keyboard.c:696 #44 0x00000000004f5b57 in Frecursive_edit () at keyboard.c:767 #45 0x000000000041a840 in main (argc=2, argv=0x7fffffffdcf8) at emacs.c:1724 Robert