From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leonardo =?UTF-8?Q?Hern=C3=A1ndez?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63614: 29.0.91; PGTK Emacs crashes after clearing the clipboard Date: Sat, 20 May 2023 18:52:31 +0000 Message-ID: <253496c1-088b-b54f-3c64-1cc563e70f24@proton.me> Reply-To: Leonardo =?UTF-8?Q?Hern=C3=A1ndez?= Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13299"; mail-complaints-to="usenet@ciao.gmane.io" To: 63614@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 20 21:51:41 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 1q0Sc8-0003HZ-LH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 May 2023 21:51:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0Sbd-000139-0m; Sat, 20 May 2023 15:51:09 -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 1q0SbX-00012t-Qb for bug-gnu-emacs@gnu.org; Sat, 20 May 2023 15:51:04 -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 1q0SbW-0001CG-MM for bug-gnu-emacs@gnu.org; Sat, 20 May 2023 15:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q0SbW-0003Rl-2y for bug-gnu-emacs@gnu.org; Sat, 20 May 2023 15:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leonardo =?UTF-8?Q?Hern=C3=A1ndez?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 May 2023 19:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63614 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168461220413081 (code B ref -1); Sat, 20 May 2023 19:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 May 2023 19:50:04 +0000 Original-Received: from localhost ([127.0.0.1]:59400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0SaX-0003Oc-EM for submit@debbugs.gnu.org; Sat, 20 May 2023 15:50:04 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0RhN-0001tV-0T for submit@debbugs.gnu.org; Sat, 20 May 2023 14:53:04 -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 1q0RhL-00050R-T8 for bug-gnu-emacs@gnu.org; Sat, 20 May 2023 14:52:59 -0400 Original-Received: from mail-40135.protonmail.ch ([185.70.40.135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0RhH-0005x7-HO for bug-gnu-emacs@gnu.org; Sat, 20 May 2023 14:52:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1684608764; x=1684867964; bh=gROdN/ZPGZUq076D3ToXyOdjj5QcTJ/Pw7VMl98Qmdk=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=jJhBrkMGWks6Lj9Jy5SWazA8qDfVfih0L1lkq8X0cqZr901JAgO23SEVV42jijyAx PvT0if4PSWQ9pmKimyqZxoi053Yru0aiIuPuGEHs0FSPBcuczGPMe/NJOE5Cm7Mm1l pXJuL4IFUk3L/xs/nN2kcgzLLpVh21AQCB5VwJj5vTPq7voMRZxnkrQRPzGfi8jpXL iZKUR+Io8fhfc7c8dYXlJEWA5BEawretZNiiKhm2UHTInbzNM2Lzu6sQk1K8sel4Vb VQM8bwy1dmrdJvz7BFOWAfjVSZ3E8hi5jwBxJ0sPgN662qji7gWGEbaxWUjjHgC+cz NQ6dQ4kudp0Eg== Feedback-ID: 45473059:user:proton Received-SPF: pass client-ip=185.70.40.135; envelope-from=leohdz172@proton.me; helo=mail-40135.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 20 May 2023 15:50:00 -0400 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:262067 Archived-At: Hello, I have been having issues with crashes running Emacs with PGTK on Wayland. To reproduce, open `emacs -Q`, then copy whatever you want with or and then copy another thing outside Emacs, for example, `wl-copy <<< "Copied text"`, then Emacs crashes. Backtrace: #0 0x00007f92636ac8ec in () at /usr/lib64/libc.so.6 #1 0x00007f926365d3e2 in raise () at /usr/lib64/libc.so.6 #2 0x0000563f0697d0a5 in terminate_due_to_signal (sig=3D11,=20 backtrace_limit=3D) at emacs.c:464 #3 0x0000563f0697def8 in handle_fatal_signal (sig=3D11) at sysdep.c:1783 fatal =3D #4 deliver_thread_signal (handler=3D, sig=3D11) at sysdep.c:= 1775 fatal =3D #5 deliver_fatal_thread_signal (sig=3D11) at sysdep.c:1795 fatal =3D #6 handle_sigsegv (sig=3D11, siginfo=3D0x563f072243f0 = ,=20 arg=3D) at sysdep.c:1888 fatal =3D #7 0x00007f926365d490 in () at /usr/lib64/libc.so.6 #8 0x0000563f06c49d89 in pgtk_handle_selection_clear (event=3D) at pgtkselect.c:742 selection =3D changed_owner_time =3D 0 selection_symbol =3D local_selection_data =3D local_selection_time =3D dpyinfo =3D 0x90c1b80 Vselection_alist =3D #9 0x0000563f06a9a5c6 in pgtk_handle_selection_event=20 (event=3D0x7fff20369bc0) at pgtkselect.c:782 event =3D 0x563f071d44a0 copy =3D {kind =3D SELECTION_CLEAR_EVENT, dpyinfo =3D 0x90c1b80, requestor = =3D=20 0x0, selection =3D 0x45, target =3D 0x0, property =3D 0x0, time =3D 0} moved_events =3D #10 process_special_events () at keyboard.c:4449 event =3D 0x563f071d44a0 copy =3D {kind =3D SELECTION_CLEAR_EVENT, dpyinfo =3D 0x90c1b80, requestor = =3D=20 0x0, selection =3D 0x45, target =3D 0x0, property =3D 0x0, time =3D 0} moved_events =3D #11 0x0000563f06a9b7cd in swallow_events (do_display=3Dtrue) at=20 keyboard.c:4489 old_timers_run =3D #12 0x0000563f06bc2c0c in wait_reading_process_output=20 (time_limit=3D, nsecs=3D, read_kbd=3D, do_display=3D, wait_for_cell=3D,=20 wait_proc=3D, just_wait_proc=3D) at=20 process.c:5781 leave =3D false wrapped =3D process_skipped =3D channel_start =3D child_fd =3D channel =3D nfds =3D Available =3D {fds_bits =3D {16, 0 }} Writeok =3D {fds_bits =3D {0 }} check_write =3D true check_delay =3D no_avail =3D false xerrno =3D 11 proc =3D timeout =3D {tv_sec =3D 0, tv_nsec =3D 0} end_time =3D {tv_sec =3D , tv_nsec =3D } timer_delay =3D {tv_sec =3D , tv_nsec =3D } got_output_end_time =3D {tv_sec =3D , tv_nsec =3D } wait =3D got_some_output =3D prev_wait_proc_nbytes_read =3D retry_for_async =3D count =3D {bytes =3D } now =3D {tv_sec =3D , tv_nsec =3D } last_read_channel =3D 17 #13 0x0000563f06997b20 in sit_for (timeout=3D,=20 reading=3D, display_option=3D) at dispnew.c:6= 264 sec =3D 30 nsec =3D 0 do_display =3D curbuf_eq_winbuf =3D true nbytes =3D #14 0x0000563f06aa40d5 in read_char (commandflag=3D1, map=3D0x563f09b61013,= =20 prev_event=3D0x0, used_mouse_menu=3D0x7fff2036a6bb, end_time=3D0x0) at=20 keyboard.c:2881 delay_level =3D buffer_size =3D c =3D 0x0 local_getcjmp =3D {{__jmpbuf =3D {94828702059008, -8807486309767267314, 1,= =20 94828736677880, 0, 94828745980467, -8807486309702255602,=20 -3006776290544272370}, __mask_was_saved =3D 0, __saved_mask =3D {__val =3D= =20 {94828696057600, 140266600468637, 66, 140266600466355, 94828696063071,=20 140266600468637, 40080, 140733733840032, 0, 0, 94828736677885, 0,=20 94828745829971, 0, 16, 17}}}} save_jump =3D {{__jmpbuf =3D {0, 0, 0, 0, 0, 0, 0, 0}, __mask_was_saved =3D= 0,=20 __saved_mask =3D {__val =3D {0 }}}} tem =3D save =3D previous_echo_area_message =3D 0x0 also_record =3D 0x0 reread =3D false recorded =3D false polling_stopped_here =3D false orig_kboard =3D 0x563f08f43c30 #15 0x0000563f06c620d7 in read_key_sequence.constprop.0=20 (keybuf=3D, prevent_redisplay=3Dfalse,=20 fix_current_buffer=3D, can_return_switch_frame=3D, dont_downcase_last=3D, prompt=3D) at=20 keyboard.c:10083 interrupted_kboard =3D 0x563f08f43c30 key =3D used_mouse_menu =3D false echo_local_start =3D 0 last_real_key_start =3D 0 keys_local_start =3D 0 new_binding =3D t =3D 0 echo_start =3D 0 keys_start =3D 0 current_binding =3D 0x563f09b61013 first_unbound =3D 31 mock_input =3D 0 used_mouse_menu_history =3D {false } fkey =3D {parent =3D 0x563f08e6f3d3, map =3D 0x563f08e6f3d3, start =3D 0, e= nd =3D 0} keytran =3D {parent =3D 0x7f925d6191eb, map =3D 0x7f925d6191eb, start =3D 0= , end=20 =3D 0} indec =3D {parent =3D 0x563f08e6f4a3, map =3D 0x563f08e6f4a3, start =3D 0, = end =3D 0} shift_translated =3D delayed_switch_frame =3D original_uppercase =3D original_uppercase_position =3D dummyflag =3D false fake_prefixed_keys =3D 0x0 first_event =3D 0x0 second_event =3D #16 0x0000563f06a9776a in command_loop_1 () at keyboard.c:1384 cmd =3D keybuf =3D {0x200001de, 0x1a, 0x7fff2036a8f0, 0x2, 0x295355bfea70,=20 0x7f925cf00a7d, 0x0, 0x563f06c6728d ,=20 0x1, 0x1, 0x1, 0x7fff2036a950, 0x7fff2036a8c0, 0x563f0722f000 ,=20 0x563f06ca0314, 0x7f92636ba48c, 0x295355ba8688, 0x981baf1862a21b00,=20 0x9510, 0x563f06ca6dc0, 0x7fff2036a980, 0x60, 0x563f08fd28d4, 0x0,=20 0x563f06d19020 , 0x563f06a954a5 ,=20 0x563f06ca0314, 0x7f92636baf12 , 0x563f06ca0314, 0x30} i =3D prev_modiff =3D 6 prev_buffer =3D 0x563f092a07f8 #17 0x0000563f06b4cc67 in internal_condition_case (bfun=3D0x563f06a974a0=20 , handlers=3D, hfun=3D0x563f06a94f00=20 ) at eval.c:1474 val =3D c =3D 0x563f08f8c370 #18 0x0000563f06a951be in command_loop_2 (handlers=3Dhandlers@entry=3D0x90)= =20 at keyboard.c:1133 val =3D #19 0x0000563f06b4cbbc in internal_catch (tag=3D,=20 func=3D0x563f06a95190 , arg=3D0x90) at eval.c:1197 val =3D c =3D 0x563f08f8c240 #20 0x0000563f06a96f89 in command_loop () at keyboard.c:1111 #21 0x0000563f06c95c30 in recursive_edit_1.isra.0 () at keyboard.c:720 val =3D #22 0x0000563f06a9746c in Frecursive_edit () at keyboard.c:803 buffer =3D #23 0x0000563f0698b274 in main (argc=3D,=20 argv=3D0x7fff2036adc8) at emacs.c:2529 stack_bottom_variable =3D 0x0 no_loadup =3D false junk =3D 0x0 dname_arg =3D 0x0 ch_to_dir =3D 0x0 original_pwd =3D 0x0 dump_mode =3D skip_args =3D 0 temacs =3D 0x0 attempt_load_pdump =3D only_version =3D false rlim =3D {rlim_cur =3D 10022912, rlim_max =3D 18446744073709551615} lc_all =3D sockfd =3D -1 module_assertions =3D In GNU Emacs 29.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.17.8) of 2023-05-20 built on localhost Repository revision: f571e8f1bb678c52839180e450c2415b31a70516 Repository branch: emacs-29 System Description: Gentoo Linux Configured using: 'configure --prefix=3D/usr --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --mandir=3D/usr/share/man --infodir=3D/usr/share/info --datadir=3D/usr/share --sysconfdir=3D/etc --localstatedir=3D/var/lib --datarootdir=3D/usr/share --disable-silent-rules --docdir=3D/usr/share/doc/emacs-29.0.9999-r1 --htmldir=3D/usr/share/doc/emacs-29.0.9999-r1/html --libdir=3D/usr/lib64 --program-suffix=3D-emacs-29-vcs --includedir=3D/usr/include/emacs-29-vcs --infodir=3D/usr/share/info/emacs-29-vcs --localstatedir=3D/var --enable-locallisppath=3D/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-file-notification=3Dinotify --with-pdumper --enable-acl --with-dbus --with-modules --without-gameuser --with-libgmp --with-gpm --with-native-compilation=3Daot --with-json --without-kerberos --without-kerberos5 --with-lcms2 --with-xml2 --with-mailutils --without-selinux --with-sqlite3 --with-gnutls --without-libsystemd --with-threads --with-tree-sitter --without-wide-int --with-sound=3Dalsa --with-zlib --with-pgtk --without-x --without-ns --with-toolkit-scroll-bars --without-gconf --with-gsettings --with-harfbuzz --without-libotf --without-m17n-flt --without-xwidgets --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-webp --with-imagemagick --with-dumping=3Dpdumper --with-cairo 'CFLAGS=3D-march=3Dnative -O3 -pipe -flto=3Dauto -Werror=3Dodr -Werror=3Dstrict-aliasing -Werror=3Dlto-type-mismatch -g3 -ggdb3 -gdwarf-4' 'LDFLAGS=3D-Wl,-O1 -Wl,--as-needed -Wl,-O2'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LC_MONETARY: es_MX.UTF-8 value of $LC_NUMERIC: es_MX.UTF-8 value of $LC_TIME: es_MX.UTF-8 value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 77298 7908) (symbols 48 7106 0) (strings 32 19506 1667) (string-bytes 1 590407) (vectors 16 15625) (vector-slots 8 327135 8165) (floats 8 27 46) (intervals 56 405 0) (buffers 984 12))