From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu 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: Thu, 25 May 2023 14:13:38 +0800 Message-ID: <87cz2pszu5.fsf@yahoo.com> References: <253496c1-088b-b54f-3c64-1cc563e70f24@proton.me> <87ilclyxt3.fsf@yahoo.com> <875y8iussr.fsf@yahoo.com> Reply-To: Po Lu 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="7480"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63614@debbugs.gnu.org To: Leonardo =?UTF-8?Q?Hern=C3=A1ndez_?= =?UTF-8?Q?Hern=C3=A1ndez?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 25 08:15:44 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 1q24GG-0001kg-85 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 May 2023 08:15:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q24Fz-0003oi-5u; Thu, 25 May 2023 02:15:27 -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 1q24Fa-0003gX-9l for bug-gnu-emacs@gnu.org; Thu, 25 May 2023 02:15: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 1q24Fa-0000Zh-0w for bug-gnu-emacs@gnu.org; Thu, 25 May 2023 02:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q24FZ-0005am-SA for bug-gnu-emacs@gnu.org; Thu, 25 May 2023 02:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 May 2023 06:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63614 X-GNU-PR-Package: emacs Original-Received: via spool by 63614-submit@debbugs.gnu.org id=B63614.168499524221394 (code B ref 63614); Thu, 25 May 2023 06:15:01 +0000 Original-Received: (at 63614) by debbugs.gnu.org; 25 May 2023 06:14:02 +0000 Original-Received: from localhost ([127.0.0.1]:45679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q24Eb-0005Yi-Tc for submit@debbugs.gnu.org; Thu, 25 May 2023 02:14:02 -0400 Original-Received: from sonic304-20.consmr.mail.ne1.yahoo.com ([66.163.191.146]:39854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q24EW-0005YR-4G for 63614@debbugs.gnu.org; Thu, 25 May 2023 02:13:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1684995230; bh=5kXR7BqVDfktzgyG2V9a1ZHg4F/a2/I7puvZ9wImfUU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=LVoi6aXjkeFeejJRt+Fi6ohW0pC4OhQHteYXAYIYZNwk2ALTugLT76xGSWQenoY/8P/oiceVdMrnGqew5ilne1i4FkguK4JkPCm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WdDljetGdnFh0jrqTAgy8SVM7o26GM9Dx9T1Vrau4_hEi0N6dAewNrBYz i6eQL3qSCXQ718HjvaONhU0TzC2FpiXgE5nDqqNUvdU.7eUmwKZrBtAeAI70zTblAqj8kGZXeqNQ Sobf9_IuVwSBmqm.HLUN7RGwHk5ZYKZE17wLqGkfTN7mwZnxDnVqv5ZKFXxpo9sACLO90tGyqKC8 p.gLTvzwBszZJBCYP7l8kmtmkpVMBi_CgnUva2aHgwzfI6zkBphn57b6sKY2OQ_yS07e4tx.dqmf BXEgVHdfTsE_Kq_rhN6Bx7Z60ARuBE37Luvxk3V_nuOLZR2Y4ZFSHCJFo.21p9vCbrILI.eNUzBb zvhwXSznIdp5wcNVQVGiL7b6VLFYR4rF4BUaAFE5lJsueugrI7PFaO9VFHQ8vEDn7p_JJrYCKp8M KyqpBxR3eNqaE.udoXE9Guf52HjZyY.hMXn2NQKpiFTwgnWURQNZUtVT_LCHbF7Xi35LH2pigXxZ gDHkvMkrN3TvrtbfJ7Q9AAGwaMlncbh3YL8DMXkzok X-Sonic-MF: X-Sonic-ID: bac0c00d-c2e8-4146-ad67-77589d569ade Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Thu, 25 May 2023 06:13:50 +0000 Original-Received: by hermes--production-sg3-748897c457-24pr6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 34fe7dbebd6ed5c14b5d481fdeb82e8c; Thu, 25 May 2023 06:13:44 +0000 (UTC) In-Reply-To: ("Leonardo =?UTF-8?Q?Hern=C3=A1ndez_?= =?UTF-8?Q?Hern=C3=A1ndez?="'s message of "Thu, 25 May 2023 05:34:04 +0000") X-Mailer: WebService/1.1.21495 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:262336 Archived-At: Leonardo Hern=C3=A1ndez Hern=C3=A1ndez writes: > event =3D 0x55d8dac3bc20 > copy =3D {kind =3D SELECTION_CLEAR_EVENT, dpyinfo =3D 0xdb87f650,= requestor =3D 0x0, selection =3D 0x45, target =3D 0x0, property =3D 0x0, t= ime =3D 0} > moved_events =3D > #10 process_special_events () at keyboard.c:4449 > event =3D 0x55d8dac3bc20 > copy =3D {kind =3D SELECTION_CLEAR_EVENT, dpyinfo =3D 0xdb87f650,= requestor =3D 0x0, selection =3D 0x45, target =3D 0x0, property =3D 0x0, t= ime =3D 0} > moved_events =3D > #11 0x000055d8da521cbd in swallow_events (do_display=3Dtrue) at keyboard.= c:4489 > old_timers_run =3D > #12 0x000055d8da63da7c in wait_reading_process_output > (time_limit=3D, nsecs=3D, read_kbd=3D, do_display=3D, wait_for_cell=3D, wait_proc=3D, just_wait_proc=3D) at proces= s.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 -1 > #13 0x000055d8da41e3a0 in sit_for (timeout=3D, reading=3D<= optimized out>, display_option=3D) at dispnew.c:6264 > sec =3D 30 > nsec =3D 0 > do_display =3D > curbuf_eq_winbuf =3D true > nbytes =3D > #14 0x000055d8da52a5c5 in read_char (commandflag=3D1, map=3D0x55d8dbdab6d= 3, prev_event=3D0x0, used_mouse_menu=3D0x7ffffcfef4fb, end_time=3D0x0) at k= eyboard.c:2881 > delay_level =3D > buffer_size =3D > c =3D 0x0 > local_getcjmp =3D {{__jmpbuf =3D {94389871329920, -49403126818968= 98891, 1, 140582085818120, 0, 94389890508307, -4940312682234540363, -120746= 7647118897483}, __mask_was_saved =3D 0, __saved_mask =3D {__val =3D {943898= 65389056, 94389889840131, 586, 2, 94389865403823, 140737437954896, 40080, 1= 40737437954784, 0, 0, 140582085818125, 0, 94389889840131, 0, 146, 147}}}} > save_jump =3D {{__jmpbuf =3D {0, 0, 0, 0, 0, 0, 0, 0}, __mask_was= _saved =3D 0, __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 0x55d8db7facb0 > #15 0x000055d8da6d84b7 in read_key_sequence.constprop.0 > (keybuf=3D, prevent_redisplay=3Dfalse, fix_current_buf= fer=3D, can_return_switch_frame=3D, dont_down= case_last=3D, prompt=3D) > at keyboard.c:10083 > interrupted_kboard =3D 0x55d8db7facb0 > 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 0x55d8dbdab6d3 > first_unbound =3D 31 > mock_input =3D 0 > used_mouse_menu_history =3D {false } > fkey =3D {parent =3D 0x55d8db691393, map =3D 0x55d8db691393, star= t =3D 0, end =3D 0} > keytran =3D {parent =3D 0x7fdbd1c0897b, map =3D 0x7fdbd1c0897b, s= tart =3D 0, end =3D 0} > indec =3D {parent =3D 0x55d8db6913a3, map =3D 0x55d8db6913a3, sta= rt =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 0x000055d8da51dc5a in command_loop_1 () at keyboard.c:1384 > cmd =3D > keybuf =3D {0x5e, 0x55d8da5dc786 , 0x55d8db63e510,= 0x55d8da63530c , 0x0, 0x80, 0x0, 0x7fdbd190e738, 0x55d= 8da78c020 , 0x7fdbd1ce62b5, 0x55d8db6843c4, 0x0, 0x55= d8da716314, 0x7fdbd6f01705, 0x53474e, 0x7fdbd5638400, 0x7ffffcfefaf0, 0xe90= a45cb1b95ae00, 0x9510, 0x55d8da71cd60, 0x7ffffcfef7c0, 0x60, 0x55d8db6843c4= , 0x0, 0x55d8da78c020 , 0x55d8da51b995 , 0x55d8da716314, 0x7fdbd5638f12 , 0x15, 0x30} > i =3D > prev_modiff =3D 31 > prev_buffer =3D 0x7fdbd1497708 > #17 0x000055d8da5d6b67 in internal_condition_case (bfun=3D0x55d8da51d990 = , handlers=3D, hfun=3D0x55d8da51b3f0 ) at eval.c:1474 > val =3D > c =3D 0x55d8db688350 > #18 0x000055d8da51b6ae in command_loop_2 (handlers=3Dhandlers@entry=3D0x9= 0) at keyboard.c:1133 > val =3D > #19 0x000055d8da5d6abc in internal_catch (tag=3D, func=3D0= x55d8da51b680 , arg=3D0x90) at eval.c:1197 > val =3D > c =3D 0x55d8db687de0 > #20 0x000055d8da51d479 in command_loop () at keyboard.c:1111 > #21 0x000055d8da70b9b0 in recursive_edit_1.isra.0 () at keyboard.c:720 > val =3D > #22 0x000055d8da51d95c in Frecursive_edit () at keyboard.c:803 > buffer =3D > #23 0x000055d8da411b9d in main (argc=3D, argv=3D0x7ffffcfe= fc08) 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 1844674407370955161= 5} > lc_all =3D > sockfd =3D -1 > module_assertions =3D > (gdb) frame 8 > #8 0x000055d8da6bd059 in pgtk_handle_selection_clear (event=3D) at pgtkselect.c:742 > 742 local_selection_data =3D LOCAL_SELECTION (selection_symbol, dpyinfo); > (gdb) p *event > value has been optimized out > (gdb) frame 9 > #9 0x000055d8da520ab6 in pgtk_handle_selection_event (event=3D0x7ffffcfe= ea00) at pgtkselect.c:782 > 782 pgtk_handle_selection_clear (event); > (gdb) p *event > $1 =3D {kind =3D SELECTION_CLEAR_EVENT, dpyinfo =3D 0xdb87f650, requestor= =3D 0x0, selection =3D 0x45, target =3D 0x0, property =3D 0x0, time =3D 0} I suppose what this shows is that an invalid SELECTION_CLEAR_EVENT has somehow found its way in to the keyboard buffer. We need to narrow down the scope of the problem. If you comment out the entirety of `process_special_events', does the crash still occur?