From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruce Adams via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65811: 27.1; zzzzzzzz forever Date: Thu, 7 Sep 2023 20:33:31 +0000 Message-ID: Reply-To: Bruce Adams Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_DBAPR05MB717319D70E8820FB85AA9D77B5EEADBAPR05MB7173eurp_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37368"; mail-complaints-to="usenet@ciao.gmane.io" To: 65811@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 07 22:48:17 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 1qeLvE-0009V7-MQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Sep 2023 22:48:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeLv0-0000Iq-Af; Thu, 07 Sep 2023 16:48:02 -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 1qeLuy-0000If-ED for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 16:48:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qeLuy-0005D7-62 for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 16:48:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qeLuz-00078R-ND for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 16:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bruce Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Sep 2023 20:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65811 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.169411965527270 (code B ref -1); Thu, 07 Sep 2023 20:48:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Sep 2023 20:47:35 +0000 Original-Received: from localhost ([127.0.0.1]:41491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeLuU-00075g-OK for submit@debbugs.gnu.org; Thu, 07 Sep 2023 16:47:35 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:35206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeLm3-0006t3-Ju for submit@debbugs.gnu.org; Thu, 07 Sep 2023 16:38:49 -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 1qeLlv-0003C1-Rm for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 16:38:39 -0400 Original-Received: from mail-vi1eur05on20606.outbound.protection.outlook.com ([2a01:111:f400:7d00::606] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qeLls-0003Gx-9v for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 16:38:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E0M292BwOHNGyGUU5rC0bnMLeh3QROsFFS91kIVCRB5eE9tuf5WjzZ1v5j2+ti4NYE3iaDW9CRIuxHO1U+Fw/PUdhM4KluXJc/hrpmtohzYgYyJzgAmZJVVBChXckb6IoGonuZUT4nP2+ohGig0c4jxFJhBYYtQj4j79lBviFOpGJYCjFvInOG3cPVow+n6hQesH0fEz3lXxQSYlpwTVfkOSGa9IG94SQ0/bE4EIx/P5EauIkjxzuI04a2hyRF7+gQo3y4Ka0KDTiq4OzSrhZLth+SpHF9zGWPa1rguI4L0FlxLoNSnVh4KrY8QjW5V+gz8DK2D/DYN7tEcSA+gl3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vxf6UyuH7B+ZGI9+fyg3CVcR8R1KlEq1yaMMu/gf+f8=; b=djUpVT6GRA7awmTUIGvgFuBR/Fca+WJ8KrU34TU+6tABfX4eRQvhp25DMTw5+iPcHHveMwVmx6DBSZ8HAOnFydDTdUyB+vTtCdHZ867Jy6UesMYZh3Hg/TNbbvLXKH3GzErs5IAGrLrtnUIvOW0cEpGLcsctyCXQA4zHG5p6el1ltPwwAA++rB9I0aKw2H0nBD/Dl8pNppSl7s1NVsD2NqBq7prZMnNP7CHq1/t77N7G20eXfNOF9qbw77A10ACvf0iqECFCJLSqkNboa53K7RSwbgHLFhrWte2+Y35DX6Q0TmeNxS7E/+jKhvCQBuSNosipF+SaVdpBKxRn7jZKyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=optibrium.com; dmarc=pass action=none header.from=optibrium.com; dkim=pass header.d=optibrium.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=optibrium.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vxf6UyuH7B+ZGI9+fyg3CVcR8R1KlEq1yaMMu/gf+f8=; b=TQ/aoboR/Q89M5XoagS9ogh3EjFuRyY+8FI0+j9xdoJxpxeMMA9PpL8nUAhZ0dVmd/6bAzKwa0tbXGcryzKfpf/H9iWJMIwOsB6G3cNtu/PU0lHWPmcrDMvxoZ1gNilsTqhSOFmZxPC73YTJwmn7eKOdj8ClWU7yLXlbkywUHIw= Original-Received: from DBAPR05MB7173.eurprd05.prod.outlook.com (2603:10a6:10:1a7::21) by PAXPR05MB8206.eurprd05.prod.outlook.com (2603:10a6:102:158::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.34; Thu, 7 Sep 2023 20:33:31 +0000 Original-Received: from DBAPR05MB7173.eurprd05.prod.outlook.com ([fe80::9080:2309:796e:6437]) by DBAPR05MB7173.eurprd05.prod.outlook.com ([fe80::9080:2309:796e:6437%4]) with mapi id 15.20.6745.034; Thu, 7 Sep 2023 20:33:31 +0000 Thread-Topic: 27.1; zzzzzzzz forever Thread-Index: Adnhym/VCtJDTKcgQMCEnZLL63ikQw== Accept-Language: en-GB, en-US Content-Language: en-US authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=optibrium.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DBAPR05MB7173:EE_|PAXPR05MB8206:EE_ x-ms-office365-filtering-correlation-id: ea0b1af2-c4d4-4883-cc85-08dbafe1b341 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HH2K879JsauKBhjdeNb7XXhRgDxe6xppmXDlH3zTp8IDcpm3w1wReoXrB+SDcW3VQFRZMIDUxLU1Psnn2T7jyCZgrtzMRs99t9knPesO4jCmysBaZ3xzMnWK1ycITzId/6XuoYUS80rcXKvvlzTQwOZi2R0XDWzPCXXrSA6KNW9GXSuGtenD2Q2MGd88y/gfB/r7lT3sqUjwN94NU9TiFLWWc/ve1T9Kvl0ohnQlgplVCvowG/r9juti9mSnj1mUIsGvjbDUPRKPyh3Je2WxQ1/yyjSxNrEfmkEfAjpaa4W1H8iDnG1Ob1VLgm/b++MnKDui3y9P2MeNj9GiX1qBhvp1u5Z4dySZKNFaqFZNXxjcMy0Rv7wQWfHPlh6xESbFeb/H/4IE9/fPc/HJted32KPEqIoTFyIlIaZ74CsHFI8yUIY0I9mtZTnMZOngk1xA0ldBmeK1cAwf1KNa2mA+HOU4oD1/XhK++vh4moKBQZZ1wiKQ7VMTiWpsgohLiu+zyDJ5EdgsFxF9kvFBCy/ikuSrM5sdm3v2UgALXz/nMyztVmGsRROkj0XcyEPU5z/PStfaNJlfx7Cbym+URaavqtEA3Yqv33sjaMZDoZWQ/Nby2wPrObBq9oWGuVkCYE4O x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBAPR05MB7173.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(366004)(396003)(346002)(39840400004)(136003)(186009)(1800799009)(451199024)(66476007)(316002)(9686003)(83380400001)(26005)(6916009)(76116006)(52536014)(5660300002)(64756008)(66446008)(66556008)(7116003)(8936002)(8676002)(2906002)(6506007)(55236004)(7696005)(478600001)(71200400001)(66946007)(41300700001)(55016003)(86362001)(33656002)(38100700002)(38070700005)(122000001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: NnZNfeCk52GYC8OpggeuPmUgdVuoYoyvNqnsKbOO3f83x6ObbN0tcu433YG9cvtoy3sCOAbr+PTAodsgT1YyWK4ZzuwHsiJg9QDqKd4ps62mgWLtKGcRU02MkuCgGJ/Rt4yl1asFBPUCO1BomGHftMabTfFlev/lz1KH8vq6Qeh0gmLTvF/lXfqNYK9pi8JY3WoScvOfwT2+GyBE1iRJ80Rx4UEaHzOtOkOcVWGdvKSNl229B4rpp0eMm6p5inCHZF1kFU7A0Di4AgdfBYA2/aA6fYi8wSzO88UxsrLRRAwn/lGlZfmCC7i4DnbCbbWrlNv5r+NbLPjiYaIhuAS5YUzD/DgjFL0Epkel5/4qU/idsJpzsX+AyMniOUUQ8VRjK8LDrr9WweUU7/ortsqAzt1a3xRAjOgZAmk36OVC5pKW4B9sUjrjHFHOZAH0wj/uElCaQ05DcKVOll9l/qjXwV7koS3nhYx/KMuZ7woN1wNQtILQDZycIwr8l2VLgscKkUV2P7kLDUnUGu/Bkmrrh4KNDBOA4EoREqeYim2Cov1jscKU2RLKvzpGZQe1rN7RgznZoCVKs3GOBD+VpIQ+2WO/QhVHUyRWswfpPMEpBO68R07vSdqHb7qGeovDVLTQAylHtmRiU+brUmry5vdpurvU9enRYzMiWS9f7C/2QBVIh+zQlgccAfNfROlVHJ6Un+ORVmQ1ucONGYxJ4vM0P216YYV/TciUtiWzy3QREIgnYpgl2tD6KblYqU gTG+8hxvRvappcNB2YVvJWjwIu+A+gg2HztqZu+iJVi2nF9T82JIzwLhTwNaCAfXMioHh4EHmJuJ79VGGcGnwNH+BnEelyJvif X-OriginatorOrg: optibrium.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DBAPR05MB7173.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea0b1af2-c4d4-4883-cc85-08dbafe1b341 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2023 20:33:31.2402 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 6703ff33-9a4e-42e5-ba49-a4cc6b3a4f28 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: J4DEg4jgPJZ1Fxq8APGXFwYvko5xd+frZ4NPZa3WjLM/HMna1OstIdV+NLJgN7lr2KJG2MNqQUpT5k1tkqepOQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR05MB8206 Received-SPF: pass client-ip=2a01:111:f400:7d00::606; envelope-from=bruce@optibrium.com; helo=EUR05-VI1-obe.outbound.protection.outlook.com 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 07 Sep 2023 16:47:29 -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:269695 Archived-At: --_000_DBAPR05MB717319D70E8820FB85AA9D77B5EEADBAPR05MB7173eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have observed two issues while running emacs under WSL2 (Ubuntu 22.04) on Windows 11. I know this is a heresy but it should still work and does mostly. This bug report concerns issue one which is that sometimes my emacs inexplicably starts filling with repeated zzzzzzz characters. Though other editing activity is possible inbetween 'attacks' This continues even if I unplug the keyboard (to rule out a USB keyboard issue).zzzzzzzzzzzzzzzzzzzzzzz It is possible to get control back temporarily by changing the window size.zzzzzzzzzzzzzz The added zzzzz... can be undone using ctrl-u. This only happens to me with emacs under WSL. Not with emacs running under cygin or in a genuine linux host. Though I have a suspicion it might relates to pressing ctrl-z somehow. I have also observed a possibly related hang. My second issue is that if left running (typically unattended or out of focus) for a long time emacs crashes. I will try to add a second bug report with a backtrace when this happens. I did not have the debug symbols installed for previous occurances but it is quite repeatable. I had hoped the most recent update would fix this but it doesn't. emacs (1:27.1+1-3ubuntu5.1) jammy; urgency=3Dmedium * debian/patches/0001-Use-a-64KB-page-size-for-pdump.patch: cherry-pi= ck a change from upstream that fixes a crash when booted on a 64K page kernel on arm64. LP: #2030892. I have a couple of backtraces below for the zzzz issue: Reading symbols from emacs... Reading symbols from /usr/lib/debug/.build-id/96/8bd488365ca5ef23edbd3ff226= 5fa59c1ed52e.debug... Attaching to program: /usr/bin/emacs, process 31835 [New LWP 31836] [New LWP 31837] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". pselect64_syscall (sigmask=3D, timeout=3D, ex= ceptfds=3D0x0, writefds=3D0x7ffdcff6aad0, readfds=3D0x7ffdcff6aa50, nfds=3D= 7) at ../sysdeps/unix/sysv/linux/pselect.c:34 34 ../sysdeps/unix/sysv/linux/pselect.c: No such file or directory. (gdb) where #0 pselect64_syscall (sigmask=3D, timeout=3D= , exceptfds=3D0x0, writefds=3D0x7ffdcff6aad0, readfds=3D0x7ffdcff6aa50, nfd= s=3D7) at ../sysdeps/unix/sysv/linux/pselect.c:34 #1 __pselect (nfds=3D7, readfds=3D0x7ffdcff6aa50, writefds=3D0x7ffdcff6aad= 0, exceptfds=3D0x0, timeout=3D, sigmask=3D) a= t ../sysdeps/unix/sysv/linux/pselect.c:56 #2 0x000056552f834785 in really_call_select (arg=3D0x7ffdcff6a960) at ./de= bian/build-src/src/thread.c:586 #3 0x000056552f83551d in thread_select (func=3D, max_fds=3D= max_fds@entry=3D7, rfds=3Drfds@entry=3D0x7ffdcff6aa50, wfds=3Dwfds@entry=3D= 0x7ffdcff6aad0, efds=3Defds@entry=3D0x0, timeout=3Dtimeout@entry=3D0x7ffdcff6b070, sigmask=3D0x0) at ./debian/bu= ild-src/src/thread.c:616 #4 0x000056552f85238f in xg_select (fds_lim=3D7, rfds=3Drfds@entry=3D0x7ff= dcff6b180, wfds=3Dwfds@entry=3D0x7ffdcff6b200, efds=3Defds@entry=3D0x0, tim= eout=3Dtimeout@entry=3D0x7ffdcff6b070, sigmask=3Dsigmask@entry=3D0x0) at ./debian/build-src/src/xgselect.c:117 #5 0x000056552f812319 in wait_reading_process_output (time_limit=3Dtime_li= mit@entry=3D30, nsecs=3Dnsecs@entry=3D0, read_kbd=3Dread_kbd@entry=3D-1, do= _display=3Ddo_display@entry=3Dtrue, wait_for_cell=3Dwait_for_cell@entry=3D0x0, wait_proc=3Dwait_proc@entry= =3D0x0, just_wait_proc=3D0) at ./debian/build-src/src/process.c:5571 #6 0x000056552f676d53 in sit_for (timeout=3Dtimeout@entry=3D0x7a, reading= =3Dreading@entry=3Dtrue, display_option=3Ddisplay_option@entry=3D1) at ./de= bian/build-src/src/dispnew.c:6056 #7 0x000056552f75d494 in read_char (commandflag=3D1, map=3D0x5655312ca9d3,= prev_event=3D0x0, used_mouse_menu=3D0x7ffdcff6ba4b, end_time=3D0x0) at ./d= ebian/build-src/src/keyboard.c:2738 #8 0x000056552f75db6a in read_key_sequence (keybuf=3D, prom= pt=3D0x0, dont_downcase_last=3D, can_return_switch_frame=3Dt= rue, fix_current_buffer=3Dtrue, prevent_redisplay=3D) at ./debian/build-src/src/keyboard= .c:9553 #9 0x000056552f75f30c in command_loop_1 () at ./debian/build-src/src/keybo= ard.c:1350 #10 0x000056552f7ccf67 in internal_condition_case (bfun=3Dbfun@entry=3D0x56= 552f75f110 , handlers=3Dhandlers@entry=3D0x90, hfun=3Dhfun@= entry=3D0x56552f755a80 ) at ./debian/build-src/src/eval.c:1356 #11 0x000056552f7500f0 in command_loop_2 (ignore=3Dignore@entry=3D0x0) at .= /debian/build-src/src/keyboard.c:1091 #12 0x000056552f7ccea9 in internal_catch (tag=3Dtag@entry=3D0xd530, func=3D= func@entry=3D0x56552f7500c0 , arg=3Darg@entry=3D0x0) at ./d= ebian/build-src/src/eval.c:1117 #13 0x000056552f75007e in command_loop () at ./debian/build-src/src/keyboar= d.c:1070 #14 0x000056552f75568a in recursive_edit_1 () at ./debian/build-src/src/key= board.c:714 #15 0x000056552f7559c9 in Frecursive_edit () at ./debian/build-src/src/keyb= oard.c:786 #16 0x000056552f66caca in main (argc=3D2, argv=3D) at ./debi= an/build-src/src/emacs.c:2062 --- Reading symbols from emacs... Reading symbols from /usr/lib/debug/.build-id/96/8bd488365ca5ef23edbd3ff226= 5fa59c1ed52e.debug... Attaching to program: /usr/bin/emacs, process 31835 [New LWP 31836] [New LWP 31837] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". pselect64_syscall (sigmask=3D, timeout=3D, ex= ceptfds=3D0x0, writefds=3D0x7ffdcff6aad0, readfds=3D0x7ffdcff6aa50, nfds=3D= 7) at ../sysdeps/unix/sysv/linux/pselect.c:34 34 ../sysdeps/unix/sysv/linux/pselect.c: No such file or directory. (gdb) where #0 pselect64_syscall (sigmask=3D, timeout=3D= , exceptfds=3D0x0, writefds=3D0x7ffdcff6aad0, readfds=3D0x7ffdcff6aa50, nfd= s=3D7) at ../sysdeps/unix/sysv/linux/pselect.c:34 #1 __pselect (nfds=3D7, readfds=3D0x7ffdcff6aa50, writefds=3D0x7ffdcff6aad= 0, exceptfds=3D0x0, timeout=3D, sigmask=3D) a= t ../sysdeps/unix/sysv/linux/pselect.c:56 #2 0x000056552f834785 in really_call_select (arg=3D0x7ffdcff6a960) at ./de= bian/build-src/src/thread.c:586 #3 0x000056552f83551d in thread_select (func=3D, max_fds=3D= max_fds@entry=3D7, rfds=3Drfds@entry=3D0x7ffdcff6aa50, wfds=3Dwfds@entry=3D= 0x7ffdcff6aad0, efds=3Defds@entry=3D0x0, timeout=3Dtimeout@entry=3D0x7ffdcff6b070, sigmask=3D0x0) at ./debian/bu= ild-src/src/thread.c:616 #4 0x000056552f85238f in xg_select (fds_lim=3D7, rfds=3Drfds@entry=3D0x7ff= dcff6b180, wfds=3Dwfds@entry=3D0x7ffdcff6b200, efds=3Defds@entry=3D0x0, tim= eout=3Dtimeout@entry=3D0x7ffdcff6b070, sigmask=3Dsigmask@entry=3D0x0) at ./debian/build-src/src/xgselect.c:117 #5 0x000056552f812319 in wait_reading_process_output (time_limit=3Dtime_li= mit@entry=3D30, nsecs=3Dnsecs@entry=3D0, read_kbd=3Dread_kbd@entry=3D-1, do= _display=3Ddo_display@entry=3Dtrue, wait_for_cell=3Dwait_for_cell@entry=3D0x0, wait_proc=3Dwait_proc@entry= =3D0x0, just_wait_proc=3D0) at ./debian/build-src/src/process.c:5571 #6 0x000056552f676d53 in sit_for (timeout=3Dtimeout@entry=3D0x7a, reading= =3Dreading@entry=3Dtrue, display_option=3Ddisplay_option@entry=3D1) at ./de= bian/build-src/src/dispnew.c:6056 #7 0x000056552f75d494 in read_char (commandflag=3D1, map=3D0x5655312ca9d3,= prev_event=3D0x0, used_mouse_menu=3D0x7ffdcff6ba4b, end_time=3D0x0) at ./d= ebian/build-src/src/keyboard.c:2738 #8 0x000056552f75db6a in read_key_sequence (keybuf=3D, prom= pt=3D0x0, dont_downcase_last=3D, can_return_switch_frame=3Dt= rue, fix_current_buffer=3Dtrue, prevent_redisplay=3D) at ./debian/build-src/src/keyboard= .c:9553 #9 0x000056552f75f30c in command_loop_1 () at ./debian/build-src/src/keybo= ard.c:1350 #10 0x000056552f7ccf67 in internal_condition_case (bfun=3Dbfun@entry=3D0x56= 552f75f110 , handlers=3Dhandlers@entry=3D0x90, hfun=3Dhfun@= entry=3D0x56552f755a80 ) at ./debian/build-src/src/eval.c:1356 #11 0x000056552f7500f0 in command_loop_2 (ignore=3Dignore@entry=3D0x0) at .= /debian/build-src/src/keyboard.c:1091 #12 0x000056552f7ccea9 in internal_catch (tag=3Dtag@entry=3D0xd530, func=3D= func@entry=3D0x56552f7500c0 , arg=3Darg@entry=3D0x0) at ./d= ebian/build-src/src/eval.c:1117 #13 0x000056552f75007e in command_loop () at ./debian/build-src/src/keyboar= d.c:1070 #14 0x000056552f75568a in recursive_edit_1 () at ./debian/build-src/src/key= board.c:714 #15 0x000056552f7559c9 in Frecursive_edit () at ./debian/build-src/src/keyb= oard.c:786 #16 0x000056552f66caca in main (argc=3D2, argv=3D) at ./debi= an/build-src/src/emacs.c:2062 --_000_DBAPR05MB717319D70E8820FB85AA9D77B5EEADBAPR05MB7173eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I have observed two issues while running emacs under= WSL2 (Ubuntu 22.04)

on Windows 11.

I know this is a heresy but it should still work and= does mostly.

 

This bug report concerns issue one which is that som= etimes

my emacs inexplicably starts filling with repeated z= zzzzzz characters.

Though other editing activity is possible inbetween = 'attacks'

 

This continues even if I unplug the keyboard (to rul= e out a USB keyboard

issue).zzzzzzzzzzzzzzzzzzzzzzz

It is possible to get control back temporarily by ch= anging the window

size.zzzzzzzzzzzzzz

The added zzzzz... can be undone using ctrl-u.<= /o:p>

 

This only happens to me with emacs under WSL.

Not with emacs running under cygin

or in a genuine linux host.

Though I have a suspicion it might relates to pressi= ng ctrl-z somehow.

 

I have also observed a possibly related hang.

 

My second issue is that if left running (typically u= nattended or out of

focus) for a long time emacs crashes. I will try to = add a second bug report

with a backtrace when this happens.

I did not have the debug symbols installed for previ= ous occurances but

it is quite repeatable.

 

I had hoped the most recent update would fix this bu= t it doesn't.

 

    emacs (1:27.1+1-3ubuntu5.1) jammy= ; urgency=3Dmedium

 

      * debian/patches/0001= -Use-a-64KB-page-size-for-pdump.patch: cherry-pick

        a change = from upstream that fixes a crash when booted on a 64K page

        kernel on= arm64. LP: #2030892.

 

I have a couple of backtraces below for the zzzz iss= ue:

 

Reading symbols from emacs...

Reading symbols from /usr/lib/debug/.build-id/96/8bd= 488365ca5ef23edbd3ff2265fa59c1ed52e.debug...

Attaching to program: /usr/bin/emacs, process 31835<= o:p>

[New LWP 31836]

[New LWP 31837]

[Thread debugging using libthread_db enabled]

Using host libthread_db library "/lib/x86_64-li= nux-gnu/libthread_db.so.1".

pselect64_syscall (sigmask=3D<optimized out>, = timeout=3D<optimized out>, exceptfds=3D0x0, writefds=3D0x7ffdcff6aad0= , readfds=3D0x7ffdcff6aa50, nfds=3D7) at ../sysdeps/unix/sysv/linux/pselect= .c:34

34      ../sysdeps/unix/sys= v/linux/pselect.c: No such file or directory.

(gdb) where

#0  pselect64_syscall (sigmask=3D<optimized = out>, timeout=3D<optimized out>, exceptfds=3D0x0, writefds=3D0x7ff= dcff6aad0, readfds=3D0x7ffdcff6aa50, nfds=3D7) at ../sysdeps/unix/sysv/linu= x/pselect.c:34

#1  __pselect (nfds=3D7, readfds=3D0x7ffdcff6aa= 50, writefds=3D0x7ffdcff6aad0, exceptfds=3D0x0, timeout=3D<optimized out= >, sigmask=3D<optimized out>) at ../sysdeps/unix/sysv/linux/pselec= t.c:56

#2  0x000056552f834785 in really_call_select (a= rg=3D0x7ffdcff6a960) at ./debian/build-src/src/thread.c:586

#3  0x000056552f83551d in thread_select (func= =3D<optimized out>, max_fds=3Dmax_fds@entry=3D7, rfds=3Drfds@entry=3D= 0x7ffdcff6aa50, wfds=3Dwfds@entry=3D0x7ffdcff6aad0, efds=3Defds@entry=3D0x0= ,

    timeout=3Dtimeout@entry=3D0x7ffdc= ff6b070, sigmask=3D0x0) at ./debian/build-src/src/thread.c:616

#4  0x000056552f85238f in xg_select (fds_lim=3D= 7, rfds=3Drfds@entry=3D0x7ffdcff6b180, wfds=3Dwfds@entry=3D0x7ffdcff6b200, = efds=3Defds@entry=3D0x0, timeout=3Dtimeout@entry=3D0x7ffdcff6b070,

    sigmask=3Dsigmask@entry=3D0x0) at= ./debian/build-src/src/xgselect.c:117

#5  0x000056552f812319 in wait_reading_process_= output (time_limit=3Dtime_limit@entry=3D30, nsecs=3Dnsecs@entry=3D0, read_k= bd=3Dread_kbd@entry=3D-1, do_display=3Ddo_display@entry=3Dtrue,<= /p>

    wait_for_cell=3Dwait_for_cell@ent= ry=3D0x0, wait_proc=3Dwait_proc@entry=3D0x0, just_wait_proc=3D0) at ./debia= n/build-src/src/process.c:5571

#6  0x000056552f676d53 in sit_for (timeout=3Dti= meout@entry=3D0x7a, reading=3Dreading@entry=3Dtrue, display_option=3Ddispla= y_option@entry=3D1) at ./debian/build-src/src/dispnew.c:6056

#7  0x000056552f75d494 in read_char (commandfla= g=3D1, map=3D0x5655312ca9d3, prev_event=3D0x0, used_mouse_menu=3D0x7ffdcff6= ba4b, end_time=3D0x0) at ./debian/build-src/src/keyboard.c:2738<= /p>

#8  0x000056552f75db6a in read_key_sequence (ke= ybuf=3D<optimized out>, prompt=3D0x0, dont_downcase_last=3D<optimi= zed out>, can_return_switch_frame=3Dtrue, fix_current_buffer=3Dtrue,

    prevent_redisplay=3D<optimized= out>) at ./debian/build-src/src/keyboard.c:9553

#9  0x000056552f75f30c in command_loop_1 () at = ./debian/build-src/src/keyboard.c:1350

#10 0x000056552f7ccf67 in internal_condition_case (b= fun=3Dbfun@entry=3D0x56552f75f110 <command_loop_1>, handlers=3Dhandle= rs@entry=3D0x90, hfun=3Dhfun@entry=3D0x56552f755a80 <cmd_error>)=

    at ./debian/build-src/src/eval.c:= 1356

#11 0x000056552f7500f0 in command_loop_2 (ignore=3Di= gnore@entry=3D0x0) at ./debian/build-src/src/keyboard.c:1091

#12 0x000056552f7ccea9 in internal_catch (tag=3Dtag@= entry=3D0xd530, func=3Dfunc@entry=3D0x56552f7500c0 <command_loop_2>, = arg=3Darg@entry=3D0x0) at ./debian/build-src/src/eval.c:1117

#13 0x000056552f75007e in command_loop () at ./debia= n/build-src/src/keyboard.c:1070

#14 0x000056552f75568a in recursive_edit_1 () at ./d= ebian/build-src/src/keyboard.c:714

#15 0x000056552f7559c9 in Frecursive_edit () at ./de= bian/build-src/src/keyboard.c:786

#16 0x000056552f66caca in main (argc=3D2, argv=3D<= ;optimized out>) at ./debian/build-src/src/emacs.c:2062

 

 

---

 

Reading symbols from emacs...

Reading symbols from /usr/lib/debug/.build-id/96/8bd= 488365ca5ef23edbd3ff2265fa59c1ed52e.debug...

Attaching to program: /usr/bin/emacs, process 31835<= o:p>

[New LWP 31836]

[New LWP 31837]

[Thread debugging using libthread_db enabled]

Using host libthread_db library "/lib/x86_64-li= nux-gnu/libthread_db.so.1".

pselect64_syscall (sigmask=3D<optimized out>, = timeout=3D<optimized out>, exceptfds=3D0x0, writefds=3D0x7ffdcff6aad0= , readfds=3D0x7ffdcff6aa50, nfds=3D7) at ../sysdeps/unix/sysv/linux/pselect= .c:34

34      ../sysdeps/unix/sys= v/linux/pselect.c: No such file or directory.

(gdb) where

#0  pselect64_syscall (sigmask=3D<optimized = out>, timeout=3D<optimized out>, exceptfds=3D0x0, writefds=3D0x7ff= dcff6aad0, readfds=3D0x7ffdcff6aa50, nfds=3D7) at ../sysdeps/unix/sysv/linu= x/pselect.c:34

#1  __pselect (nfds=3D7, readfds=3D0x7ffdcff6aa= 50, writefds=3D0x7ffdcff6aad0, exceptfds=3D0x0, timeout=3D<optimized out= >, sigmask=3D<optimized out>) at ../sysdeps/unix/sysv/linux/pselec= t.c:56

#2  0x000056552f834785 in really_call_select (a= rg=3D0x7ffdcff6a960) at ./debian/build-src/src/thread.c:586

#3  0x000056552f83551d in thread_select (func= =3D<optimized out>, max_fds=3Dmax_fds@entry=3D7, rfds=3Drfds@entry=3D= 0x7ffdcff6aa50, wfds=3Dwfds@entry=3D0x7ffdcff6aad0, efds=3Defds@entry=3D0x0= ,

    timeout=3Dtimeout@entry=3D0x7ffdc= ff6b070, sigmask=3D0x0) at ./debian/build-src/src/thread.c:616

#4  0x000056552f85238f in xg_select (fds_lim=3D= 7, rfds=3Drfds@entry=3D0x7ffdcff6b180, wfds=3Dwfds@entry=3D0x7ffdcff6b200, = efds=3Defds@entry=3D0x0, timeout=3Dtimeout@entry=3D0x7ffdcff6b070,

    sigmask=3Dsigmask@entry=3D0x0) at= ./debian/build-src/src/xgselect.c:117

#5  0x000056552f812319 in wait_reading_process_= output (time_limit=3Dtime_limit@entry=3D30, nsecs=3Dnsecs@entry=3D0, read_k= bd=3Dread_kbd@entry=3D-1, do_display=3Ddo_display@entry=3Dtrue,<= /p>

    wait_for_cell=3Dwait_for_cell@ent= ry=3D0x0, wait_proc=3Dwait_proc@entry=3D0x0, just_wait_proc=3D0) at ./debia= n/build-src/src/process.c:5571

#6  0x000056552f676d53 in sit_for (timeout=3Dti= meout@entry=3D0x7a, reading=3Dreading@entry=3Dtrue, display_option=3Ddispla= y_option@entry=3D1) at ./debian/build-src/src/dispnew.c:6056

#7  0x000056552f75d494 in read_char (commandfla= g=3D1, map=3D0x5655312ca9d3, prev_event=3D0x0, used_mouse_menu=3D0x7ffdcff6= ba4b, end_time=3D0x0) at ./debian/build-src/src/keyboard.c:2738<= /p>

#8  0x000056552f75db6a in read_key_sequence (ke= ybuf=3D<optimized out>, prompt=3D0x0, dont_downcase_last=3D<optimi= zed out>, can_return_switch_frame=3Dtrue, fix_current_buffer=3Dtrue,

    prevent_redisplay=3D<optimized= out>) at ./debian/build-src/src/keyboard.c:9553

#9  0x000056552f75f30c in command_loop_1 () at = ./debian/build-src/src/keyboard.c:1350

#10 0x000056552f7ccf67 in internal_condition_case (b= fun=3Dbfun@entry=3D0x56552f75f110 <command_loop_1>, handlers=3Dhandle= rs@entry=3D0x90, hfun=3Dhfun@entry=3D0x56552f755a80 <cmd_error>)=

    at ./debian/build-src/src/eval.c:= 1356

#11 0x000056552f7500f0 in command_loop_2 (ignore=3Di= gnore@entry=3D0x0) at ./debian/build-src/src/keyboard.c:1091

#12 0x000056552f7ccea9 in internal_catch (tag=3Dtag@= entry=3D0xd530, func=3Dfunc@entry=3D0x56552f7500c0 <command_loop_2>, = arg=3Darg@entry=3D0x0) at ./debian/build-src/src/eval.c:1117

#13 0x000056552f75007e in command_loop () at ./debia= n/build-src/src/keyboard.c:1070

#14 0x000056552f75568a in recursive_edit_1 () at ./d= ebian/build-src/src/keyboard.c:714

#15 0x000056552f7559c9 in Frecursive_edit () at ./de= bian/build-src/src/keyboard.c:786

#16 0x000056552f66caca in main (argc=3D2, argv=3D<= ;optimized out>) at ./debian/build-src/src/emacs.c:2062

--_000_DBAPR05MB717319D70E8820FB85AA9D77B5EEADBAPR05MB7173eurp_--