From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Sergey Organov Newsgroups: gmane.emacs.bugs Subject: bug#40049: 26.1; Coredump on GNUS reading e-mail Date: Fri, 13 Mar 2020 14:38:36 +0300 Message-ID: <87y2s45vsz.fsf@osv.gnss.ru> References: <87zhckg74g.fsf@osv.gnss.ru> <83sgic8wih.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="100687"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 40049@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 13 12:39:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jCiep-000Q3y-FI for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Mar 2020 12:39:15 +0100 Original-Received: from localhost ([::1]:57392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCieo-0004xa-7I for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Mar 2020 07:39:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49091) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCiee-0004xU-4e for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2020 07:39:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCiec-0004Mm-1Q for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2020 07:39:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52234) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCieb-0004LY-S0 for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2020 07:39:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jCieb-00007G-P7 for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2020 07:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sergey Organov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Mar 2020 11:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40049 X-GNU-PR-Package: emacs Original-Received: via spool by 40049-submit@debbugs.gnu.org id=B40049.1584099528418 (code B ref 40049); Fri, 13 Mar 2020 11:39:01 +0000 Original-Received: (at 40049) by debbugs.gnu.org; 13 Mar 2020 11:38:48 +0000 Original-Received: from localhost ([127.0.0.1]:58207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCieN-00006g-Dc for submit@debbugs.gnu.org; Fri, 13 Mar 2020 07:38:47 -0400 Original-Received: from mail-lf1-f43.google.com ([209.85.167.43]:36368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCieK-00006M-K6 for 40049@debbugs.gnu.org; Fri, 13 Mar 2020 07:38:45 -0400 Original-Received: by mail-lf1-f43.google.com with SMTP id s1so7593386lfd.3 for <40049@debbugs.gnu.org>; Fri, 13 Mar 2020 04:38:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=FzKDkhy9FQcZacGIhzFXaBZqOqxP9ubgvbOA7KprbtA=; b=n9+/CO/0gUbfdj7VivwTt6XTNVejjkjAW/fczVmJBuifkEi0OtyXXxyd+dQFu0oqhZ kT7gLSNbg5efnjoO8itLPUoK3TKB0C+OleLOlLRzRQQf2d0na5AdYIF9x27S3GyAFPdv egJpzxwrcB/apeG9mx7FiGi2YSq2hV9AoDVkazbhYwD/QTsO9/OiS9g36Tsqeo/nW4Zw Pmce7u3xuHDgHDnZRAP0DAoknkh9yDu4EwJ9/Q3tNGVYzbaA+KHv7PjEgB4t5pN/0V7i SZG+Y6YMQC8/Cz5YSTsCMKQ4cgiaYMOejCgD0k0cCINK7VPqAp0nfVKE++0RR32JZzoB 5lgQ== 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:date:in-reply-to :message-id:user-agent:mime-version; bh=FzKDkhy9FQcZacGIhzFXaBZqOqxP9ubgvbOA7KprbtA=; b=CAZ8ajLFDLnEQFPNy7blAr9N/wlF5rXxGKI16FWipkuLGomuxogLKHxSMkDJiZtXfJ P1446Ld6puHH95vgGOzczH0mAOwCiIeFXAr5ag7T9xlNpc4YCvu5wgrl8CWy5dMObGy6 bGtVkKMsFsI5A/lSiy1CGZdyHpJQngGVzin4rm+MQBa6h+t1hvikr9n4sprHubiB80iD 4To+YQN7fIMwilp6HGZuw657ncUlFiB4NV82Ncg2WI4wSlDf1q9EgJtMxyqwB+WAFqOR liWKDx09REeXruX3RVPC7HKqIGCgenL/38/pOPJzYJnaZWLzsT7uZzhpZtMCqh4G2dgK PKFQ== X-Gm-Message-State: ANhLgQ3e6PfKF9SrqfCD45t6zgxIyWxmCOJ9F+nArT0qo+vqf0D2C7yE maHKa22h18DXhTgiUBV5wQvOHyoR X-Google-Smtp-Source: ADFU+vtweq3L6DuIbRAY8gYx6AL4cePoUk/muzsHuxnkqD4PHFRsxtM+i+lm8bhzEIluQV15LdKPwg== X-Received: by 2002:a19:6502:: with SMTP id z2mr6889233lfb.47.1584099518021; Fri, 13 Mar 2020 04:38:38 -0700 (PDT) Original-Received: from osv.localdomain ([89.175.180.246]) by smtp.gmail.com with ESMTPSA id u16sm9633391lfl.37.2020.03.13.04.38.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 04:38:37 -0700 (PDT) In-Reply-To: <83sgic8wih.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Mar 2020 10:55:02 +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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177266 Archived-At: Eli Zaretskii writes: >> From: Sergey Organov >> Date: Fri, 13 Mar 2020 08:23:59 +0300 >> >> Emacs coredumps when GNUS tries to read some kinds of mails. >> >> To reproduce from 'emacs -Q', untar attached file that will create >> 'gnus-coredump' directory with a single mail file in it, then: >> >> $ emacs -Q >> M-x gnus >> G D ;; gnus-group-enter-directory >> RET >> >> GNUS then tries to open this directory as group and Emacs crashes. The >> backtrace and other information follows: > > This recipe should be run with -xrm "emacs.synchronous: true", so that > the X protocol errors are acted upon immediately where they happen. > then the GDB backtrace will be much more informative, as it will show > the code which causes this. Below is backtrace from 'emacs -Q -xrm "emacs.synchronous: true"'. There behavior slightly changed: GNUS showed group name and I then needed to enter the group to produce coredump. > Anyway, this looks like a font problem we fixed some time ago, so > upgrading to Emacs 26.3 or (better) to the pretest of Emacs 27 should > fix this, I think. Another potential solution is to uninstall the > offending font (Noto Color, perhaps?). Hopefully this coredump will help to confirm it's a known bug: #0 0x00007ff5e1fb65cb in raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 set = {__val = {402653184, 0 }} pid = tid = #1 0x00000000004f6f37 in terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=40) at ./debian/build-src/src/emacs.c:394 #2 0x0000000000511643 in emacs_abort () at ./debian/build-src/src/sysdep.c:2426 #3 0x00000000004c3f23 in x_connection_closed (dpy=dpy@entry=0x4a15290, error_message=, error_message@entry=0x7ffe77e4cbb0 "X protocol error: BadLength (poly request too large or internal Xlib length error) on protocol request 139", ioerror=ioerror@entry=false) at ./debian/build-src/src/xterm.c:9816 dpyinfo = frame = tail = idx = #4 0x00000000004c7d49 in x_error_quitter (display=0x4a15290, event=, event=) at ./debian/build-src/src/xterm.c:9904 buf = "BadLength (poly request too large or internal Xlib length error)", '\000' buf1 = "X protocol error: BadLength (poly request too large or internal Xlib length error) on protocol request 139", '\000' , "\360?", '\000' ... #5 0x00000000004c7dcb in x_error_handler (display=0x4a15290, event=0x7ffe77e4cd70) at ./debian/build-src/src/xterm.c:9874 #6 0x00007ff5e3fdb11a in _XError () at /lib/x86_64-linux-gnu/libX11.so.6 #7 0x00007ff5e3fd8077 in () at /lib/x86_64-linux-gnu/libX11.so.6 #8 0x00007ff5e3fd811d in () at /lib/x86_64-linux-gnu/libX11.so.6 #9 0x00007ff5e3fd8a55 in _XEventsQueued () at /lib/x86_64-linux-gnu/libX11.so.6 #10 0x00007ff5e3fca7b7 in XPending () at /lib/x86_64-linux-gnu/libX11.so.6 #11 0x00007ff5e487420d in () at /lib/x86_64-linux-gnu/libgdk-3.so.0 #12 0x00007ff5e434d669 in g_main_context_prepare () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #13 0x00007ff5e434e06b in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #14 0x00007ff5e434e207 in g_main_context_pending () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #15 0x00007ff5e4b42b9d in gtk_events_pending () at /lib/x86_64-linux-gnu/libgtk-3.so.0 #16 0x00000000004c4917 in XTread_socket (terminal=, hold_quit=0x7ffe77e4d070) at ./debian/build-src/src/xterm.c:9142 count = 0 dpyinfo = 0x4ac53b0 #17 0x00000000004fe1c9 in gobble_input () at ./debian/build-src/src/keyboard.c:6910 nr = hold_quit = {kind = NO_EVENT, part = scroll_bar_nowhere, code = 0, modifiers = 0, x = 0, y = 0, timestamp = 0, frame_or_window = 0, arg = 0} next = 0x0 nread = 0 err = false t = 0x114de40 #18 0x00000000004fe875 in handle_async_input () at ./debian/build-src/src/keyboard.c:7146 nread = #19 0x00000000004fe875 in process_pending_signals () at ./debian/build-src/src/keyboard.c:7160 #20 0x000000000056f5ad in maybe_quit () at ./debian/build-src/src/eval.c:1494 #21 0x00000000005766f2 in Flength (sequence=0, sequence@entry=80145715) at ./debian/build-src/src/lisp.h:1221 li = {tortoise = 80145715, max = 2, n = 0, q = 0} i = 2 val = #22 0x0000000000577739 in concat (nargs=nargs@entry=1, args=args@entry=0x7ffe77e4d228, target_type=Lisp_Cons, last_special=last_special@entry=false) at ./debian/build-src/src/fns.c:582 len = val = tail = 0 this = 80145715 toindex = toindex_byte = 0 result_len = 0 result_len_byte = 0 argnum = 0 last_tail = 0 prev = some_multibyte = false textprops = 0x0 num_textprops = 0 sa_avail = 16384 sa_count = 4 sa_must_free = false #23 0x0000000000578356 in Fcopy_sequence (arg=) at ./debian/build-src/src/lisp.h:615 #24 0x00000000004fd323 in timer_check () at ./debian/build-src/src/keyboard.c:4516 nexttime = timers = 0 idle_timers = tem = 0 #25 0x00000000004fd875 in readable_events (flags=flags@entry=1) at ./debian/build-src/src/keyboard.c:3340 #26 0x00000000004fe368 in get_input_pending (flags=flags@entry=1) at ./debian/build-src/src/keyboard.c:6827 #27 0x0000000000500bc8 in detect_input_pending_run_timers (do_display=do_display@entry=true) at ./debian/build-src/src/keyboard.c:9951 old_timers_run = #28 0x00000000005b0387 in wait_reading_process_output (time_limit=time_limit@entry=30, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, wait_for_cell=wait_for_cell@entry=0, wait_proc=wait_proc@entry=0x0, just_wait_proc=0) at ./debian/build-src/src/process.c:5514 old_timers_run = 90 old_buffer = 0x4cee000 old_window = 18897973 leave = false process_skipped = channel = nfds = 1 Available = {fds_bits = {32, 0 }} Writeok = {fds_bits = {0 }} check_write = check_delay = no_avail = false xerrno = 11 proc = timeout = {tv_sec = 0, tv_nsec = 0} end_time = {tv_sec = 1584099190, tv_nsec = 783572691} timer_delay = got_output_end_time = {tv_sec = 1584099190, tv_nsec = 783572691} wait = TIMEOUT got_some_output = -1 retry_for_async = count = 3 now = {tv_sec = 0, tv_nsec = -1} #29 0x00000000004244ba in sit_for (timeout=122, reading=reading@entry=true, display_option=display_option@entry=1) at ./debian/build-src/src/lisp.h:855 sec = 30 nsec = 0 do_display = true #30 0x000000000050323b in read_char (commandflag=commandflag@entry=1, map=map@entry=80145603, prev_event=0, used_mouse_menu=used_mouse_menu@entry=0x7ffe77e4de4b, end_time=end_time@entry=0x0) at ./debian/build-src/src/lisp.h:944 tem0 = timeout = delay_level = 4 buffer_size = c = jmpcount = 3 local_getcjmp = {{__jmpbuf = {1, -2416469996254394248, 88136616, 80145603, 0, 140730909908800, 2416769021276588152, -2416469309686937480}, __mask_was_saved = 0, __saved_mask = {__val = {140730909908112, 80666629, 32400, 80666624, 5653333, 1, 4, 2, 80666624, 42, 6679040, 10, 140730909907728, 281474976726784, 140730909907384, 140730909907352}}}} save_jump = {{__jmpbuf = {0, 0, 0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, __saved_mask = {__val = {0 }}}} tem = save = previous_echo_area_message = 0 also_record = 0 reread = false recorded = false polling_stopped_here = false orig_kboard = 0x4a840c0 #31 0x00000000005049a0 in read_key_sequence (keybuf=keybuf@entry=0x7ffe77e4df40, prompt=prompt@entry=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 ./debian/build-src/src/keyboard.c:9147 interrupted_kboard = interrupted_frame = 0x1204c30 key = used_mouse_menu = false echo_local_start = 0 last_real_key_start = 0 keys_local_start = 0 new_binding = count = 3 t = 0 echo_start = 0 keys_start = 0 current_binding = 80145603 first_event = 0 first_unbound = 31 mock_input = 0 fkey = {parent = 15196995, map = 15196995, start = 0, end = 0} keytran = {parent = 11008659, map = 11008659, start = 0, end = 0} indec = {parent = 15197011, map = 15197011, start = 0, end = 0} shift_translated = false delayed_switch_frame = 0 original_uppercase = 0 original_uppercase_position = -1 dummyflag = false starting_buffer = 0x4cee000 fake_prefixed_keys = 0 #32 0x00000000005060a4 in command_loop_1 () at ./debian/build-src/src/lisp.h:855 cmd = keybuf = {54, 402, 0, -7601620639412960768, 0, 17483521, 4, 7818336, 10341984, 10507232, 140730909909072, 5700864, 271, 320, -920, 4, 223338299410, 0, 0, 472446402651, 511101108348, -7601620639412960768, 120, 140730909909024, 0, 11315811, -1, 5691065, 5, 31200} i = prev_modiff = 13 prev_buffer = 0x52d1410 #33 0x000000000056cd9e in internal_condition_case (bfun=bfun@entry=0x505e80 , handlers=handlers@entry=21072, hfun=hfun@entry=0x4fc780 ) at ./debian/build-src/src/eval.c:1332 val = c = 0x49f5980 #34 0x00000000004f7344 in command_loop_2 (ignore=ignore@entry=0) at ./debian/build-src/src/lisp.h:855 val = #35 0x000000000056cd0d in internal_catch (tag=tag@entry=50928, func=func@entry=0x4f7320 , arg=arg@entry=0) at ./debian/build-src/src/eval.c:1097 val = c = 0x49f5860 #36 0x00000000004f72db in command_loop () at ./debian/build-src/src/lisp.h:855 #37 0x00000000004fc363 in recursive_edit_1 () at ./debian/build-src/src/keyboard.c:695 count = 1 val = #38 0x00000000004fc6a8 in Frecursive_edit () at ./debian/build-src/src/keyboard.c:766 buffer = #39 0x000000000041a631 in main (argc=, argv=0x7ffe77e4e2f8) at ./debian/build-src/src/emacs.c:1713 stack_bottom_variable = 0x7ff5e1b131a2 <__libc_calloc+130> do_initial_setlocale = dumping = skip_args = 0 no_loadup = false junk = 0x0 dname_arg = 0x0 ch_to_dir = 0x0 original_pwd = disable_aslr = rlim = {rlim_cur = 10022912, rlim_max = 18446744073709551615} sockfd = -1 Thanks, -- Sergey