From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: awrhygty@outlook.com Newsgroups: gmane.emacs.bugs Subject: bug#69263: 29.1; emacs freeze with memory swap Date: Tue, 20 Feb 2024 22:33:35 +0900 Message-ID: References: <86wmr0pqw9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14547"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 69263@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 20 14:35:14 2024 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 1rcQHB-0003UR-6E for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Feb 2024 14:35:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcQGs-0004tG-KJ; Tue, 20 Feb 2024 08:34:57 -0500 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 1rcQGf-0004m0-5W for bug-gnu-emacs@gnu.org; Tue, 20 Feb 2024 08:34:41 -0500 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 1rcQGe-0002ax-Rg for bug-gnu-emacs@gnu.org; Tue, 20 Feb 2024 08:34:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rcQH0-0000x3-GW for bug-gnu-emacs@gnu.org; Tue, 20 Feb 2024 08:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: awrhygty@outlook.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Feb 2024 13:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69263 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 69263-submit@debbugs.gnu.org id=B69263.17084360523594 (code B ref 69263); Tue, 20 Feb 2024 13:35:02 +0000 Original-Received: (at 69263) by debbugs.gnu.org; 20 Feb 2024 13:34:12 +0000 Original-Received: from localhost ([127.0.0.1]:44535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcQGB-0000vu-Jf for submit@debbugs.gnu.org; Tue, 20 Feb 2024 08:34:12 -0500 Original-Received: from mail-sgaapc01olkn2062.outbound.protection.outlook.com ([40.92.53.62]:32189 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcQG8-0000vV-1H for 69263@debbugs.gnu.org; Tue, 20 Feb 2024 08:34:09 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZnAc//3zUUFshBz9OEGIiZ8xiS5nZUcM7rmKawXb3NmCRhgp/Sjt47wnJAAGQDZhKd4WNlv99+c8t7aJpEBX1zrUM0D7t9i4ucjnLpbq3b31kPNQuFixU/kzlHaRC+yvHQej1tvGiu15BkuMvkO4tL+ZOVVPFV+afQTIr6ueitTs3fFnWmaZINziB/xl735BF5xNDWaYxy+c1wPQgb2YObG3oJnjVdi6F1ytOJZ06Tv6bo4p+Oq+G7tQuzTNe7A1sD6kAeJIb1bEYAybFkVZs7/p+7/X1qvTX+w83zcUdgz5cMJ7OEhEjlQQGTkGOkYe3038necnuvO9TzFV7F+6XA== 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=mRpTfKLxwtIIkv38OkQo6Q0LleNwzCfH9+1hVwKB27g=; b=H5IQ4pTcNnhXMF4MpZtO6EGIq7/3+uhwMLM30d1HivBiTmK3UUAAU0CqhSLZ2xrHAHoExRGnpb0BcFDoPQ8ynnGTuAxrnJO5Oo1YyZq99u9Pap0eG74QalHdgR4XbzNh4ambFFW/r+44skJBOukBaa/FjiGqIwT1wxWNK9bJCTmgsXWXZCvj4imYslZKVWWI8HtW5k3pr0+FobEoWbdubxwMBa8VSAR7XJ8ZpaObWByIFKBOaiokVvkPU585LKaGjl3fZRubwUHs+8B0B6qGzzhXFbpdnoqEs/6PgAcn6z2nEPD5LXudutcaDJ57b5BPd6g5PFwOVyNN8CEtY9osQw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mRpTfKLxwtIIkv38OkQo6Q0LleNwzCfH9+1hVwKB27g=; b=ZB29OXuuyEHwzrLN7iUr6eD1Udtx8btAc8JxXPaI4/2ZXmS5sXmB5na3adTwNLfkPRf5OaS15wZeTofpPpxaYHrk4Q2FlrTlWO4qrT+haAedfeEDeVZ0RFUvqfYTjS+DhnuwYeSWnsNldBlCsXWwaML0QqlOjHWtWmqB+6Gv0BMpo0MdqIGQh9z6mJPkSjvzL26ZE3HnbjgUxHlTdYaT0nPFo/ce5pqDbwzADChJC+pkQpKwFzkZp7PCIpgy7ZSKE+JiFHlnWZB2ptxAu49zWX/1svJzvXTi6eXmndfvX4JJh2v3aYOumDVtUG4AZVUTBV0axFRNf9l53wNSNhVVGQ== Original-Received: from TYZPR01MB3920.apcprd01.prod.exchangelabs.com (2603:1096:400:30::11) by KL1PR01MB6565.apcprd01.prod.exchangelabs.com (2603:1096:820:12e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.38; Tue, 20 Feb 2024 13:33:38 +0000 Original-Received: from TYZPR01MB3920.apcprd01.prod.exchangelabs.com ([fe80::b782:9f65:6e60:8557]) by TYZPR01MB3920.apcprd01.prod.exchangelabs.com ([fe80::b782:9f65:6e60:8557%6]) with mapi id 15.20.7292.029; Tue, 20 Feb 2024 13:33:38 +0000 In-Reply-To: <86wmr0pqw9.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 19 Feb 2024 07:42:01 -0500") X-TMN: [BprXV2W+5dgh8kV0gfHKFX55P7ao1geqcRYOPl7MyCw=] X-ClientProxiedBy: OSAPR01CA0258.jpnprd01.prod.outlook.com (2603:1096:604:29::30) To TYZPR01MB3920.apcprd01.prod.exchangelabs.com (2603:1096:400:30::11) X-Microsoft-Original-Message-ID: <864je3gt00.fsf@outlook.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR01MB3920:EE_|KL1PR01MB6565:EE_ X-MS-Office365-Filtering-Correlation-Id: 0ea3cf01-b127-4fdb-1ee6-08dc32188b2f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ibobvXHQo9yDIZpT9LoOCP+CCSYT5qjH04Q5nkFE+vPIGKn73pbOTVOsmAQO3ynIUMNoQeNAqN6HQBrXdEu2FhjuCb8o3DuLR/xmcRaEZrO/eNsH7FvA/YedU3aCJjQMfgSFw2vID9ZaYjPBNuxv+5Y2Qro9z19oYSFzrAR7qyAhqoZPE1TPmv1SFuiD7mtKe3AoiJ4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61lNJibkT9A0/89XXg2QwrkwJStk+UJJPmhCKhZB7jVX7RirBdPRF6t8Ox5deYb1ChkuyFuEcy3PFsMVUGBSWsyPc8Y8ek21H9H+6TJqulv4kpgVmLZ48dpNjuNRVlb4WD+guVOepif4LJXHCRoMk+U96Dll1TN7J1d0eb6fdtBhT5qasx vtDXIm0+ZEfYih+GVtqABYzkZA42tXFy721vaAzyR/jzScUBBYBphh1aHEI3y6QKKbmV8aFozrDDj8C2UM7dnXPkiEAJPFxr/X X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ea3cf01-b127-4fdb-1ee6-08dc32188b2f X-MS-Exchange-CrossTenant-AuthSource: TYZPR01MB3920.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2024 13:33:38.0525 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR01MB6565 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:280319 Archived-At: Eli Zaretskii writes: > tags 69263 moreinfo > thanks > >> From: awrhygty@outlook.com >> Date: Mon, 19 Feb 2024 14:56:10 +0900 >> >> >> My PC has 8GB memory and HDD, no SSD. >> Emacs freezes with the procedure below. >> >> (0) Close all applications. >> (1) Start task manager. >> Confirm disk usage is low and memory usage is about 2GB or less. >> (2) Start emacs -Q >> (3) Evaluate the form below >> (progn (make-string (* 8000 1000 1000) 0) >> (kill-emacs)) >> (4) Memory usage increases and then decreases in ten seconds. >> (5) Disk usage keep 100% active for a few minutes. >> (6) Application window of emacs keep alive and emacs process name is >> displayed in the process tab of task manager. >> (At least 10 hours, I waited.) > > I don't have a 8GB 64-bit Windows system to try this, and the results > are likely to be dependent on the intimate details of the Virtual > Memory setup on that system. > > So if you want to help us understand what happens in the strange case > where a Lisp program creates a 8GB Lisp string, and clear it all, on a > 8GB MS-Windows system, please attach GDB to Emacs after running the > above recipe, and produce a backtrace that can be used to try to > figure out what happens. (I hope that your Emacs binary is not > stripped of debugging symbols, because if it's stripped, GDB will not > tell anything useful.) > > Thanks. I installed MSYS2 and GDB for this. At first, I tried to attach with emacs PID. GDB says "Can't attach to process 1099". So I tried with WINPID. I am not sure it is a correct parameter. Here is a log within MSYS2 shell: $ ps PID PPID PGID WINPID TTY UID STIME COMMAND 1051 1 1051 3940 ? 197609 20:56:49 /usr/bin/mintty 1205 1052 1205 9776 pty0 197609 22:26:16 /usr/bin/ps 1052 1051 1052 11328 pty0 197609 20:56:49 /usr/bin/bash 1099 1052 1099 1384 pty0 197609 21:10:57 /c/Emacs/emacs-29.1/bin/emacs $ /mingw64/bin/gdb GNU gdb (GDB) 13.2 Copyright (C) 2023 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-w64-mingw32". 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". (gdb) attach 1384 Attaching to process 1384 [New Thread 1384.0xbbc] [New Thread 1384.0xbe0] [New Thread 1384.0x2bc0] [New Thread 1384.0x2cc4] [New Thread 1384.0x14a4] Reading symbols from C:\Emacs\emacs-29.1\bin\emacs.exe... (gdb) bt full #0 0x00007ffa73710b11 in ntdll!DbgBreakPoint () from C:\WINDOWS\SYSTEM32\ntdll.dll No symbol table info available. #1 0x00007ffa7373ca0e in ntdll!DbgUiRemoteBreakin () from C:\WINDOWS\SYSTEM32\ntdll.dll No symbol table info available. #2 0x00007ffa72237344 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll No symbol table info available. #3 0x00007ffa736c26b1 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available. (gdb) detach Detaching from program: C:\Emacs\emacs-29.1\bin\emacs.exe, process 1384 [Inferior 1 (process 1384) detached] (gdb) exit