From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#21380: 25.0.50; GTK-induced segfault when scheduling timer from window-configuration-change-hook Date: Thu, 03 Sep 2015 11:36:44 -0400 Message-ID: References: <83mvx8252m.fsf@gnu.org> <83k2sc20k6.fsf@gnu.org> <83h9ng1ryx.fsf@gnu.org> <83a8t71qct.fsf@gnu.org> <83fv2ychbg.fsf@gnu.org> <838u8qcenv.fsf@gnu.org> <55E69F07.9060006@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1441294647 19322 80.91.229.3 (3 Sep 2015 15:37:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2015 15:37:27 +0000 (UTC) Cc: 21380@debbugs.gnu.org, Pip Cet To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 03 17:37:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZXWZc-0008NE-Sy for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Sep 2015 17:37:13 +0200 Original-Received: from localhost ([::1]:49325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXWZc-00070X-LV for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Sep 2015 11:37:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXWZW-0006wl-Bt for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2015 11:37:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXWZT-0005JL-3d for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2015 11:37:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXWZT-0005JH-0v for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2015 11:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZXWZS-0004bT-TY for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2015 11:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Sep 2015 15:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21380 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21380-submit@debbugs.gnu.org id=B21380.144129461117661 (code B ref 21380); Thu, 03 Sep 2015 15:37:02 +0000 Original-Received: (at 21380) by debbugs.gnu.org; 3 Sep 2015 15:36:51 +0000 Original-Received: from localhost ([127.0.0.1]:47783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXWZG-0004an-GO for submit@debbugs.gnu.org; Thu, 03 Sep 2015 11:36:50 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:51292) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXWZC-0004ac-PX for 21380@debbugs.gnu.org; Thu, 03 Sep 2015 11:36:49 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t83FaiZ6025788; Thu, 3 Sep 2015 11:36:44 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 7191966110; Thu, 3 Sep 2015 11:36:44 -0400 (EDT) In-Reply-To: <55E69F07.9060006@gmx.at> (martin rudalics's message of "Wed, 02 Sep 2015 09:02:31 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5418=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5418> : inlines <3750> : streams <1499219> : uri <2031698> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106109 Archived-At: >> So maybe we should introduce a special copy_sequence_no_quit function >> that never calls QUIT, and then use it for copying the timer lists. That'd be OK, yes. This said, maybe an even better solution would be to avoid the copy altogether. AFAICT these lists are only ever side-effected by timer.el's timer--activate, which has a special `reuse-cell' argument just to be able to do that. I'm not completely sure why we do it this way, but my naive understanding is the following: - For historical reasons of limited resources, timer.el tries hard to avoid allocating cons cells. - Then many years later we found a problem with this cell-reuse and circumvented it by copying the whole list all the time. - So we end up working hard to avoid allocating a couple cells on one side, only to end up allocating many more on the other. Maybe we should go back to bugs #12447 and #12326 and see if just removing the "reuse-cell" code (and the Fcopy_sequence(s)) fixes the problem as well. Stefan