From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thiago Melo Newsgroups: gmane.emacs.bugs Subject: bug#63589: 29.0.91; crash after creating graphical frames via emacsclient when compiled with cairo-xcb Date: Sun, 21 May 2023 18:25:17 +0000 Message-ID: References: <87sfbr3hbu.fsf@yahoo.com> <87y1li1pmw.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14675"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63589@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 21 20:27:20 2023 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 1q0nm4-0003cg-4w for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 May 2023 20:27:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0nln-0003zN-RN; Sun, 21 May 2023 14:27:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0nlm-0003yy-F8 for bug-gnu-emacs@gnu.org; Sun, 21 May 2023 14:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0nlm-0002L7-7Q for bug-gnu-emacs@gnu.org; Sun, 21 May 2023 14:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q0nlm-0004rK-2O for bug-gnu-emacs@gnu.org; Sun, 21 May 2023 14:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thiago Melo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 May 2023 18:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63589 X-GNU-PR-Package: emacs Original-Received: via spool by 63589-submit@debbugs.gnu.org id=B63589.168469356318599 (code B ref 63589); Sun, 21 May 2023 18:27:02 +0000 Original-Received: (at 63589) by debbugs.gnu.org; 21 May 2023 18:26:03 +0000 Original-Received: from localhost ([127.0.0.1]:32847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0nko-0004pu-Ko for submit@debbugs.gnu.org; Sun, 21 May 2023 14:26:03 -0400 Original-Received: from mail-yw1-f176.google.com ([209.85.128.176]:59767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0nkm-0004pM-5w for 63589@debbugs.gnu.org; Sun, 21 May 2023 14:26:00 -0400 Original-Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-562191bcfb9so25046467b3.3 for <63589@debbugs.gnu.org>; Sun, 21 May 2023 11:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684693554; x=1687285554; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=GPKeY553duh/ssGHR9qJs5EfAHj1v3ZN28UyaA61vqU=; b=l5hlInWpypU2f+80i/g1XzA+pQwp+AKlWtYCYuxDKQE5G0WkQN3pKcIhjKpMYi8002 wnSyf6rRqYFZa/cwKH9+4HLDrdsPtpMaNEHbRrrnGPN9eo2UiS1qFOLHUsN3I4C05KIm 5g5FfWPQuYm2jB2dikas+VkNQPkH9eQdsuTsS5/Y54nXNhUVn6cBX5MyLew9M0BrFA6I 5MRVaqMG/chWTN9dVZpSJ1hzeqJv0D5iAMZbj2IpMeR23iGs7MLcP7uU4I8m5lu3gykd OIuBjQl611c0I+eih2/a/sKdXK+7WCEcluSy+f07X1OW92f5G4lQEMA62iX2RGjquWou eZPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684693554; x=1687285554; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GPKeY553duh/ssGHR9qJs5EfAHj1v3ZN28UyaA61vqU=; b=BEri0d35lTtvRrfhnJhrvcqbs4cYP7K2ZDv5DJag0xa59GvNmQQcCdULD5GOjcJKXa pbi4SbdZvT2ZqBr1F+HqJ8h3fiWAYeBPXT0ROIeRWWGqWchQCpgM/N83gHgrAlwQ3XDe O5fPE9FmsuxobEhNVnyKxWCouk+MO3W4YD0PB+sDFNCqbFdUAOe9LlcqKLtZ0guJrmGk HfkvzkB0VXIbec2HQWwU2SgkBc/D9CohIn5XloR16czeeHcvzodPgVlffxz4mGdMmPzo bmUUYWkCWPeFg0RqHdV52Qvd6kugsBEziBJkJYkEpF55Uet18Gaa90nD5+UlhWVoF7El tbbw== X-Gm-Message-State: AC+VfDxPffKyo93BJF2juGpZXtIoi1pu5Lfg/cg2dV2oGTftdObaQBSv m5ekOu6q8c5fDMRBU7JBWvkx0SgjUC1SA8JsgQY= X-Google-Smtp-Source: ACHHUZ653tl0KRsg14BjzqpKr+CY39pKmQi8uXkszCAe89shUnWJ4wLUVYK4rhHNDYj492Tgz/lsdnySzCRcHiNFj4g= X-Received: by 2002:a81:9c4c:0:b0:559:f026:46d1 with SMTP id n12-20020a819c4c000000b00559f02646d1mr8770311ywa.40.1684693554292; Sun, 21 May 2023 11:25:54 -0700 (PDT) In-Reply-To: <87y1li1pmw.fsf@yahoo.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262118 Archived-At: > > Breakpoint 2, x_error_quitter (display=0x55555654f4f0, > > event=0x7fffffff71c0) at xterm.c:26126 > > 26126 if (event->error_code == BadName) > > (gdb) p *event > > $1 = { > > type = 0, > > display = 0x55555654f4f0, > > resourceid = 54526136, > > serial = 706, > > error_code = 14 '\016', > > request_code = 1 '\001', > > minor_code = 0 '\000' > > } > > (gdb) continue > > Continuing. > > This means Emacs tried to create a window with an invalid XID. Would > you please show the backtrace from this error, now that Emacs is > operating synchronously? There you go: $ gdb --args ./emacs-cairo-xcb -xrm "emacs.synchronous: true" -Q --fg-daemon=test GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git Copyright (C) 2021 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 "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./emacs-cairo-xcb... 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 TERM = xterm-256color Breakpoint 1 at 0x1de341: file emacs.c, line 427. Breakpoint 2 at 0x1ad020: file xterm.c, line 26126. (gdb) run Starting program: /dev/shm/src/emacs-29.0.91/src/emacs-cairo-xcb -xrm emacs.synchronous:\ true -Q --fg-daemon=test [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Starting Emacs daemon. Breakpoint 2, x_error_quitter (display=0x55555629dca0, event=0x7fffffff71a0) at xterm.c:26126 26126 if (event->error_code == BadName) (gdb) p *event $1 = { type = 0, display = 0x55555629dca0, resourceid = 41943224, serial = 707, error_code = 14 '\016', request_code = 1 '\001', minor_code = 0 '\000' } (gdb) backtrace #0 x_error_quitter (display=0x55555629dca0, event=0x7fffffff71a0) at xterm.c:26126 #1 0x0000555555701000 in x_error_handler (display=0x55555629dca0, event=0x7fffffff71a0) at xterm.c:26107 #2 0x00007ffff7e6e864 in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #3 0x00007ffff7e6b327 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #4 0x00007ffff7e6b3c5 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #5 0x00007ffff7e6bffa in _XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #6 0x00007ffff7e5d931 in XPending () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #7 0x00005555556fe44b in XTread_socket (terminal=0x55555628c1c0, hold_quit=0x7fffffff7440) at xterm.c:24773 #8 0x000055555574d48d in gobble_input () at keyboard.c:7426 #9 0x000055555574d97a in handle_async_input () at keyboard.c:7657 #10 0x000055555574d999 in process_pending_signals () at keyboard.c:7671 #11 0x000055555574d9d9 in unblock_input_to (level=0) at keyboard.c:7686 #12 0x000055555574d9fd in unblock_input () at keyboard.c:7705 #13 0x00005555558da91b in ftcrfont_text_extents (font=0x5555561339c0, code=0x7fffffff7608, nglyphs=1, metrics=0x555555f79a18 ) at ftcrfont.c:430 #14 0x000055555561df02 in get_per_char_metric (font=0x5555561339c0, char2b=0x7fffffff7608) at xdisp.c:29776 #15 0x0000555555626ec6 in gui_produce_glyphs (it=0x7fffffff7760) at xdisp.c:31946 #16 0x0000555555625acb in produce_special_glyphs (it=0x7fffffff8ba0, what=IT_CONTINUATION) at xdisp.c:31556 #17 0x00005555555c5790 in init_iterator (it=0x7fffffff8ba0, w=0x55555628c650, charpos=-1, bytepos=-1, row=0x0, base_face_id=DEFAULT_FACE_ID) at xdisp.c:3321 #18 0x00005555555e70e7 in gui_consider_frame_title (frame=XIL(0x55555628c3e5)) at xdisp.c:13566 #19 0x00005555555e7690 in prepare_menu_bars () at xdisp.c:13682 #20 0x00005555555ef199 in redisplay_internal () at xdisp.c:16602 #21 0x00005555555f1235 in redisplay_preserve_echo_area (from_where=13) at xdisp.c:17359 #22 0x0000555555888aab in Fdelete_process (process=XIL(0x5555562de7cd)) at process.c:1120 #23 0x00005555558256e0 in funcall_subr (subr=0x555555f71320 , numargs=1, args=0x7ffff5bff2b0) at eval.c:3034 #24 0x00005555558802bf in exec_byte_code (fun=XIL(0x7ffff657b8d5), args_template=514, nargs=2, args=0x7ffff5bff2c0) at bytecode.c:809 #25 0x0000555555825a66 in fetch_and_exec_byte_code (fun=XIL(0x5555560c6cbd), args_template=514, nargs=2, args=0x7fffffffbc38) at eval.c:3081 #26 0x0000555555825ed2 in funcall_lambda (fun=XIL(0x5555560c6cbd), nargs=2, arg_vector=0x7fffffffbc38) at eval.c:3153 #27 0x00005555558251bf in funcall_general (fun=XIL(0x5555560c6cbd), numargs=2, args=0x7fffffffbc38) at eval.c:2945 #28 0x00005555558254c1 in Ffuncall (nargs=3, args=0x7fffffffbc30) at eval.c:2995 #29 0x0000555555824727 in Fapply (nargs=2, args=0x7fffffffbcf0) at eval.c:2666 #30 0x0000555555824dd9 in apply1 (fn=XIL(0xd99d0), arg=XIL(0x5555563b0dd3)) at eval.c:2882 #31 0x0000555555894e46 in read_process_output_call (fun_and_args=XIL(0x5555563b0de3)) at process.c:6070 #32 0x0000555555820bb0 in internal_condition_case_1 (bfun=0x555555894db9 , arg=XIL(0x5555563b0de3), handlers=XIL(0x90), hfun=0x555555894e48 ) at eval.c:1498 #33 0x00005555558957b0 in read_and_dispose_of_process_output (p=0x5555562de7c8, chars=0x7fffffffbe10 "-env SHELL=/bin/bash -env SESSION_MANAGER=local/debian-x250:@/tmp/.ICE-unix/1634,unix/debian-x250:/tmp/.ICE-unix/1634 -env WINDOWID=23179042 -env QT_ACCESSIBILITY=1 -env COLORTERM=truecolor -env XDG_C"..., nbytes=2923, coding=0x5555560f5840) at process.c:6294 #34 0x0000555555895390 in read_process_output (proc=XIL(0x5555562de7cd), channel=5) at process.c:6204 #35 0x0000555555894585 in wait_reading_process_output (time_limit=0, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=XIL(0), wait_proc=0x0, just_wait_proc=0) at process.c:5888 #36 0x000055555574355b in kbd_buffer_get_event (kbp=0x7fffffffd4b8, used_mouse_menu=0x7fffffffdb5f, end_time=0x0) at keyboard.c:4012 #37 0x000055555573ded8 in read_event_from_main_queue (end_time=0x0, local_getcjmp=0x7fffffffd930, used_mouse_menu=0x7fffffffdb5f) at keyboard.c:2279 #38 0x000055555573e288 in read_decoded_event_from_main_queue (end_time=0x0, local_getcjmp=0x7fffffffd930, prev_event=XIL(0), used_mouse_menu=0x7fffffffdb5f) at keyboard.c:2343 #39 0x000055555574042e in read_char (commandflag=1, map=XIL(0x5555563a8f33), prev_event=XIL(0), used_mouse_menu=0x7fffffffdb5f, end_time=0x0) at keyboard.c:2973 #40 0x0000555555754a7b in read_key_sequence (keybuf=0x7fffffffdcf0, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:10083 #41 0x000055555573b05a in command_loop_1 () at keyboard.c:1384 #42 0x0000555555820ad5 in internal_condition_case (bfun=0x55555573ac30 , handlers=XIL(0x90), hfun=0x55555573a09c ) at eval.c:1474 #43 0x000055555573a819 in command_loop_2 (handlers=XIL(0x90)) at keyboard.c:1133 #44 0x000055555581fd0e in internal_catch (tag=XIL(0xf240), func=0x55555573a7f2 , arg=XIL(0x90)) at eval.c:1197 #45 0x000055555573a7ae in command_loop () at keyboard.c:1111 #46 0x0000555555739b5f in recursive_edit_1 () at keyboard.c:720 #47 0x0000555555739d7c in Frecursive_edit () at keyboard.c:803 #48 0x000055555573556a in main (argc=5, argv=0x7fffffffe238) at emacs.c:2529 Lisp Backtrace: "redisplay_internal (C function)" (0x0) "delete-process" (0xf5bff2b0) "server-delete-client" (0xf5bff240) "server-execute" (0xf5bff1a0) 0x5606ddf0 PVEC_COMPILED "server-execute-continuation" (0xf5bff0c8) "server-process-filter" (0xffffbc38)