From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#17986: 24.3.92; Evaluating (setq default-directory nil) freezes Emacs Date: Thu, 10 Jul 2014 14:27:30 +0200 Message-ID: <87pphdwg99.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1404995367 31343 80.91.229.3 (10 Jul 2014 12:29:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2014 12:29:27 +0000 (UTC) To: 17986@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 10 14:29:21 2014 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 1X5DTU-0004SU-UG for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Jul 2014 14:29:21 +0200 Original-Received: from localhost ([::1]:37741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5DTU-0002im-IO for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Jul 2014 08:29:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5DTJ-0002gB-P4 for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2014 08:29:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5DTC-0004xn-CS for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2014 08:29:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5DTC-0004xj-8C for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2014 08:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X5DTB-0000cD-PI for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2014 08:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Jul 2014 12:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17986 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14049952942302 (code B ref -1); Thu, 10 Jul 2014 12:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jul 2014 12:28:14 +0000 Original-Received: from localhost ([127.0.0.1]:51788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5DSL-0000b0-LS for submit@debbugs.gnu.org; Thu, 10 Jul 2014 08:28:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56855) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5DSF-0000Zv-PZ for submit@debbugs.gnu.org; Thu, 10 Jul 2014 08:28:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5DS3-0004mB-DA for submit@debbugs.gnu.org; Thu, 10 Jul 2014 08:27:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5DS3-0004m2-A9 for submit@debbugs.gnu.org; Thu, 10 Jul 2014 08:27:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5DRw-0002Jq-AT for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2014 08:27:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5DRj-0004dp-Tr for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2014 08:27:42 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:50068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5DRj-0004cG-K4 for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2014 08:27:31 -0400 Original-Received: from rosalinde.fritz.box ([89.245.109.192]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MKHtm-1X3Ykm3epa-001jge for ; Thu, 10 Jul 2014 14:27:30 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) X-Provags-ID: V03:K0:RL8kaGcdq/NwkGFR/m7HxpC1yAfdkRMAR7P9p0CVjxxNBUhHiXO zV5/hNsX2NAoUofRfL6Mx6cRmRVRf9gy5i7x7Gq1UKi3AVe1wwn2twjCmTeN1JwAaG79EUL AU9lrjW7Ks7eBi2U+f4JqQavDp0r3v99i+W5B5ugD7xJTnButCV9pgesKWhII5weX/fHaAw ahlIIv7bLF3koIQ9I8Zpw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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: 140.186.70.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:91375 Archived-At: 0. Start Emacs with -Q or -Q -D 1. Type (setq default-directory nil) in *scratch* and evaluate it. => Emacs freezes uninterruptibly and uses up to 90% CPU; I have to kill it from outside. This happens in both emacs-24 and the trunk. The C backtrace seems to differ depending on how quickly I type `z' in gdb and whether I start Emacs with -Q or with -Q -D. If no one else can reproduce this, I can supply backtraces. So far, I've gotten as the only Lisp backtrace "redisplay_internal (C function)" (twice with emacs-24 from July 7) and (after updating to current sources) "command-error-default-function" (twice with trunk, once with emacs-24). I know that default-directory is documented as being a string, though its global value is "nil" (and evaluating (setq-default default-directory nil) is unproblematic). Still, Emacs shouldn't just freeze up. FWIW, it hit this problem while testing code that sets default-directory to the value of a variable, which in the course of testing at one point happened to be nil. In GNU Emacs 24.3.92.7 (x86_64-suse-linux-gnu, GTK+ Version 3.10.4) of 2014-07-10 on rosalinde Repository revision: 117368 monnier@iro.umontreal.ca-20140709185406-m0q0fjepl42pcrqx Windowing system distributor `The X.Org Foundation', version 11.0.11403901 System Description: openSUSE 13.1 (Bottle) (x86_64) Configured using: `configure --without-toolkit-scroll-bars CFLAGS=-g3' Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Memory information: ((conses 16 363760 33883) (symbols 48 50640 0) (miscs 40 392 740) (strings 32 91952 9976) (string-bytes 1 3053626) (vectors 16 39068) (vector-slots 8 1553444 171631) (floats 8 853 677) (intervals 56 16382 141) (buffers 960 38) (heap 1024 52675 1862))