From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: chiaki-ishikawa-thunderbird-account Newsgroups: gmane.emacs.bugs Subject: bug#39413: 26.2; Emacs gets hung Date: Tue, 26 May 2020 00:50:15 +0900 Message-ID: References: <85r1ynam0x.fsf@gmail.com> <44e850a0-c8dc-4aec-5706-c52db33697a1@ubin.jp> <119c5df5-080e-c45b-6498-2a2bc0f8273b@yk.rim.or.jp> <83lfme232a.fsf@gnu.org> <0b9cd846-b9f5-8351-5f45-5614bbc644c0@ubin.jp> <87sgfojjmm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="101007"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 Cc: chiaki-ishikawa-thunderbird-account , 39413@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 25 17:59:41 2020 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 1jdFVt-000QBR-C9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 May 2020 17:59:41 +0200 Original-Received: from localhost ([::1]:52988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdFVs-0004Yv-Ci for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 May 2020 11:59:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdFNW-0008Qn-V0 for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 11:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58911) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdFNW-0000Fx-K1 for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 11:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jdFNW-0007ud-J7 for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 11:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: chiaki-ishikawa-thunderbird-account Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 May 2020 15:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39413 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Original-Received: via spool by 39413-submit@debbugs.gnu.org id=B39413.159042182030362 (code B ref 39413); Mon, 25 May 2020 15:51:02 +0000 Original-Received: (at 39413) by debbugs.gnu.org; 25 May 2020 15:50:20 +0000 Original-Received: from localhost ([127.0.0.1]:42224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdFMq-0007td-CO for submit@debbugs.gnu.org; Mon, 25 May 2020 11:50:20 -0400 Original-Received: from mail104.siriuscloud.jp ([219.118.72.104]:57608 helo=mail04.SiriusCloud.jp) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdFMo-0007tR-MT for 39413@debbugs.gnu.org; Mon, 25 May 2020 11:50:19 -0400 Original-Received: from [192.168.0.5] (M106073032161.v4.enabler.ne.jp [106.73.32.161]) (Authenticated sender: ishikawa@yk.rim.or.jp) by access04.SiriusCloud.jp (Postfix) with ESMTPA id 49W1kv4YvSzlg2gf; Tue, 26 May 2020 00:50:15 +0900 (JST) Authentication-Results: access04.SiriusCloud.jp; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy); dkim-atps=neutral In-Reply-To: <87sgfojjmm.fsf@gmail.com> Content-Language: en-US X-Virus-Scanned: clamav-milter 0.98.6 at si-mail04 X-Virus-Status: Clean 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" Xref: news.gmane.io gmane.emacs.bugs:180986 Archived-At: On 2020/05/25 21:15, Noam Postavsky wrote: > chiaki-ishikawa-thunderbird-account writes: > >> Short of lisp function, maybe I can add message print out in alloc.c >> to print out such information so that it gets recorded in *Message* >> buffer. >> It is done only when gabage-collection-message is t and there should >> be some throttling mechanism to avoid spamming the user. >> Any pointer re the hook(s) short of rewriting alloc.c is >> appreciated. Well, if worst comes to worst, I don't mind rewriting >> alloc.c to create an array of fixed size to store the last dozen or so >> GC-related information that is updated before and after invocation of >> a certain GC entry point. >> I can print that out after a long GC to learn the memory situation. >> But that sounds a bit drastic. OTOH, it may be the only way to go. > That should probably work. I see the current > garbage_collection_messages code uses message_nolog, I guess because > growing the *Messages* buffer could also trigger GC. > Thank you, I will probably do that. Back in 18.x days, printing the message from within GC caused another GC invocation, thus emacs blew up due to stack flow after so many recursive calls. I think having a static array of 10-20 cells to store previous GC info should work. Stay tuned. I am really interested in WHERE/WHY this long pause occurs.: maybe Windows 10 memory allocation/ Virtual Box emulation/Linux kernel memory allocation, and AMD Ryzen CPU's cache replacement policy all add up. Chiaki