From unknown Thu Aug 14 20:51:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27706 <27706@debbugs.gnu.org> To: bug#27706 <27706@debbugs.gnu.org> Subject: Status: MacOS: decode-time hang Reply-To: bug#27706 <27706@debbugs.gnu.org> Date: Fri, 15 Aug 2025 03:51:11 +0000 retitle 27706 MacOS: decode-time hang reassign 27706 emacs submitter 27706 "Charles A. Roelli" severity 27706 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 15 10:20:02 2017 Received: (at submit) by debbugs.gnu.org; 15 Jul 2017 14:20:02 +0000 Received: from localhost ([127.0.0.1]:40468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWNvO-0005Tk-Av for submit@debbugs.gnu.org; Sat, 15 Jul 2017 10:20:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWNvN-0005TD-9Y for submit@debbugs.gnu.org; Sat, 15 Jul 2017 10:20:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWNvG-0006pF-R1 for submit@debbugs.gnu.org; Sat, 15 Jul 2017 10:19:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54300) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dWNvG-0006pB-O8 for submit@debbugs.gnu.org; Sat, 15 Jul 2017 10:19:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWNvF-0001kC-Ep for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 10:19:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWNvC-0006nG-95 for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 10:19:53 -0400 Received: from [195.159.176.226] (port=48028 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWNvC-0006me-3p for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 10:19:50 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dWNv3-0008IH-7f for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 16:19:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: "Charles A. Roelli" Subject: MacOS: decode-time hang Date: Sat, 15 Jul 2017 16:19:39 +0200 Lines: 88 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 X-Mozilla-News-Host: news://news.gmane.org:119 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Evaluating the following form on my system (macOS 10.6) results in a hang from Emacs 23 to master: (decode-time '(-1034058203136 0)) [other values around -1034058203136 don't cause an issue] The stack trace (stuck in macOS' libc, I think): (gdb) bt full #0 0x00007fff83860aef in timesub () from /usr/lib/libSystem.B.dylib No symbol table info available. #1 0x00007fff8386081c in _st_localsub () from /usr/lib/libSystem.B.dylib No symbol table info available. #2 0x00007fff83869d71 in localtime_r () from /usr/lib/libSystem.B.dylib No symbol table info available. #3 0x00000001004586c7 in localtime_rz (tz=0x10210bba0, t=0x7fff5fbf8d20, tm=0x7fff5fbf8ce8) at time_rz.c:296 abbr_saved = false old_tz = 0x1 #4 0x00000001002ba08b in emacs_localtime_rz (tz=0x10210bba0, t=0x7fff5fbf8d20, tm=0x7fff5fbf8ce8) at editfns.c:103 No locals. #5 0x00000001002c2680 in Fdecode_time (specified_time=..., zone=...) at editfns.c:2163 time_spec = -67768038400720896 gmt_tm = { tm_sec = 1606388960, tm_min = 32767, tm_hour = 1766166, tm_mday = 1, tm_mon = 0, tm_year = 0, tm_wday = 0, tm_yday = 0, tm_isdst = 0, tm_gmtoff = 10261984, tm_zone = 0x7fff5fbf8d30 "`\215\277_\377\177" } tz = 0x10210bba0 local_tm = { tm_sec = 24, tm_min = 38, tm_hour = 8, tm_mday = 32767, tm_mon = 0, tm_year = 0, tm_wday = 0, tm_yday = 0, tm_isdst = 0, tm_gmtoff = 0, tm_zone = 0x0 } tm = 0x0 tm_year_base = 0 The form is called when compiling the new org-timer.el, which requires org-clock.el, which itself contains this call that causes the issue: (defconst org-clock--oldest-date (let* ((dichotomy (lambda (min max pred) (if (funcall pred min) min (cl-incf min) (while (> (- max min) 1) (let ((mean (+ (ash min -1) (ash max -1) (logand min max 1)))) (if (funcall pred mean) (setq max mean) (setq min mean))))) max)) (high (funcall dichotomy most-negative-fixnum 0 (lambda (m) (ignore-errors (decode-time (list m 0)))))) (low (funcall dichotomy most-negative-fixnum 0 (lambda (m) (ignore-errors (decode-time (list high m))))))) (list high low)) "Internal time for oldest date representable on the system.") As a result, "make" hangs for me, so I delete org-timer.el locally to get around the problem for now. But I'd like to find a more permanent solution to make sure this doesn't happen elsewhere. Can anyone reproduce this under macOS, and if so, under which macOS version? I'd like to know which versions might need a fix for this problem. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 15 17:32:13 2017 Received: (at 27706) by debbugs.gnu.org; 15 Jul 2017 21:32:13 +0000 Received: from localhost ([127.0.0.1]:40723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWUfd-0000RF-DK for submit@debbugs.gnu.org; Sat, 15 Jul 2017 17:32:13 -0400 Received: from mail-wr0-f175.google.com ([209.85.128.175]:36619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWUfb-0000R3-Uj for 27706@debbugs.gnu.org; Sat, 15 Jul 2017 17:32:12 -0400 Received: by mail-wr0-f175.google.com with SMTP id v60so14701564wrc.3 for <27706@debbugs.gnu.org>; Sat, 15 Jul 2017 14:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=GO3hG3p5qcz+JQRHN06OfZ/DdtHaEW58fMAORnfxub8=; b=RMzn1psHCFcAWgwMVzcE45rWow9jMOl4AjwrSC2vmDCk5RP4Orfnmr37fTwuiJLBci OMWk8b3TqyoGx2Wfk/lVMfvTaVdPciP3gKx38BTnXVYQACSWaJBIIkM3p8SWYwIoFHtb sU7PBKyjSldfxdBm/CV7oZskARfWk8GN1yzwoNp8+O2zv3iYg9tFJ78SOUIhG70BOygP ReagLT/IMWM6Lq9xOovH6viW1DWxl+vJxyZEEkJyEOpHLNxhdp1AI6FQeJ+YUAHqS8wk Nqg3rA1mAOo85zidC0o17GHkUo+R2j36P2uroOOljpZ5IQA7+qmag9wZO7kwZ8rPqDl0 vT5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=GO3hG3p5qcz+JQRHN06OfZ/DdtHaEW58fMAORnfxub8=; b=fYje6fRJlWybP0ugIMFu/3UY2Os0uFj60iO7zfGAbDg8sHgBGj2coZZKnrwfXDYA5M zZV7aKgUTU0cZ4WODJGElWtM/vlPc/P0ZMrlK1Gg8euGxmA8FwH4E/0e4DoipTI0lT9n yxotTvk7GgbO+hgWkr3zUuXxsO5LmKWsbouVpv9cKLib58+27/WlEJbnTOvQn08xNJU7 v5Qp+Sr93bEGbeDuKIk3PywkUYh4VIrr+QAEqVGOXWYS/ofv9nkUBe/ymxB5Z+mXDU45 LCPykyWxinYw54rvsmVcdwJAL4kPC8+PTgAvQcB9YW4Jgs3+jDUGkxrejgMeEpHtuasl WHUQ== X-Gm-Message-State: AIVw113TWH/1xHufG3JLexXC4ckwHI1P42P3bWLazNKo10CM/LqW3bbb XpNsmdRmqRLrcJRGXkg= X-Received: by 10.223.167.130 with SMTP id j2mr9014674wrc.210.1500154326074; Sat, 15 Jul 2017 14:32:06 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-e9a1-3503-5c3f-d7d9.holly.idiocy.org. [2001:8b0:3f8:8129:e9a1:3503:5c3f:d7d9]) by smtp.gmail.com with ESMTPSA id x21sm7308748wme.24.2017.07.15.14.32.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Jul 2017 14:32:04 -0700 (PDT) Date: Sat, 15 Jul 2017 22:32:03 +0100 From: Alan Third To: "Charles A. Roelli" Subject: Re: bug#27706: MacOS: decode-time hang Message-ID: <20170715213203.GB51913@breton.holly.idiocy.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 27706 Cc: 27706@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) On Sat, Jul 15, 2017 at 04:19:39PM +0200, Charles A. Roelli wrote: > Evaluating the following form on my system (macOS 10.6) results in a > hang from Emacs 23 to master: > > (decode-time '(-1034058203136 0)) > > [other values around -1034058203136 don't cause an issue] I can’t reproduce in 10.12. -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 16 12:11:35 2017 Received: (at 27706) by debbugs.gnu.org; 16 Jul 2017 16:11:35 +0000 Received: from localhost ([127.0.0.1]:42623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWm8t-0006Hj-7i for submit@debbugs.gnu.org; Sun, 16 Jul 2017 12:11:35 -0400 Received: from sinyavsky.aurox.ch ([37.35.109.145]:38657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWm8q-0006HU-Pv for 27706@debbugs.gnu.org; Sun, 16 Jul 2017 12:11:33 -0400 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 3B0EF224B7 for <27706@debbugs.gnu.org>; Sun, 16 Jul 2017 16:06:11 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h=to :references:message-id:content-transfer-encoding:date:date :in-reply-to:x-mailer:from:from:subject:subject:mime-version :content-type:content-type; s=dkim; t=1500221169; x=1501085170; bh=pOGzqJzqtP/8Oy4cI8kKtTxPykaT7c6qqqprUteFh9k=; b=QnCiaWLh7UOr 6uO1aNKZhy9TOX00pwaLkvOZswphMX/ZVxPl03b9spZskWd1lGxBg8b6WS+f+WPm UY9IXiE/cR64BsMlH8GJMye0hwjQqN+YymP8AED55SBINMsGfNjXOFKiISgj4GcX gQib9h7PoWQwWFxEIX13NV5xtEc8a4I= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mQ4wbzR1zi-y for <27706@debbugs.gnu.org>; Sun, 16 Jul 2017 16:06:09 +0000 (UTC) Received: from [192.168.1.110] (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 3E4EE2249A; Sun, 16 Jul 2017 16:06:09 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: bug#27706: MacOS: decode-time hang From: "Charles A. Roelli" X-Mailer: iPhone Mail (14F89) In-Reply-To: <20170715213203.GB51913@breton.holly.idiocy.org> Date: Sun, 16 Jul 2017 18:11:23 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <9DB54E28-D7E5-4B0E-8D46-90A4B9D508F2@aurox.ch> References: <20170715213203.GB51913@breton.holly.idiocy.org> To: Alan Third X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27706 Cc: 27706@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Thanks for testing it. > On 15 Jul 2017, at 23:32, Alan Third wrote: >=20 >> On Sat, Jul 15, 2017 at 04:19:39PM +0200, Charles A. Roelli wrote: >> Evaluating the following form on my system (macOS 10.6) results in a >> hang from Emacs 23 to master: >>=20 >> (decode-time '(-1034058203136 0)) >>=20 >> [other values around -1034058203136 don't cause an issue] >=20 > I can=E2=80=99t reproduce in 10.12. > --=20 > Alan Third From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 17 15:44:43 2017 Received: (at control) by debbugs.gnu.org; 17 Jul 2017 19:44:43 +0000 Received: from localhost ([127.0.0.1]:44847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXBwh-0001xZ-9A for submit@debbugs.gnu.org; Mon, 17 Jul 2017 15:44:43 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:36302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXBwf-0001xL-1e for control@debbugs.gnu.org; Mon, 17 Jul 2017 15:44:41 -0400 Received: by mail-wm0-f41.google.com with SMTP id t70so25351794wmt.1 for ; Mon, 17 Jul 2017 12:44:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:message-id:to:from:subject; bh=I+/TpJtPM3ZRNcZaPcnkS761x0VhDuf8omFgkreNNHU=; b=s6B4HRolmcaFuQJpMMSX9wI4YCdUkhNFqeumv0AYKj7MjFj2xDI8nuE2Z/efFEMc5N 5DsT3MVBSeo9o/0mmtkasbm0Dk3VO4Oo1afKTJHnEutWAVX47tddpyMsqhuGQ1l4CAVF 1431VNy9bP3UwgMV5r7yaNgMOMGEZ6dPW8qirV1p2PsRwZnefznB7KKO9kF7rrsH5Egz DpxwcZnaj72GmWSL1Z9yrQJBzV94uwCD+XP1/7JIFhrznKg3pu1JJZGFAi+fefV7CtkR 9ZFiEyuf1Z2tsdpd2Zka2H1GlkoDcxq3MiOWxy+a85p9tbnvu88Ep5U1uu1ntfcdkSfw 6RUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:to:from:subject; bh=I+/TpJtPM3ZRNcZaPcnkS761x0VhDuf8omFgkreNNHU=; b=bhWQO9kAE4hiM0b5xQtfMKEchim6uVECIjZUPDc/Do7J7B9+p5m4UyTBPoIu2xpelS 1JbeBGkBoqZNroc6vQtGKsgqd+sKEKdSK18oEsJAM/pOJSPd0gCRCO3kJLo3cJIDrR05 NoF4IgYGS9l00gy0rOb4kibAOrt9zv44QiZnBJgzp7HyJqWXkXFVoRzVfDBEja1x8gfv 5sAUW0kRq8rhH8UX/x+al9YkgbuMYch4G59INM7AvfVIOupdo0VcQOQ473rdGZqqfi0Q tz4Q3zgHUSDOczANLibqntQfMG5l0uWY25H+4Fmqc4aeqVW6lxO/rGvIU3tCp8uQ09F9 QcGg== X-Gm-Message-State: AIVw110GvxQ5tpis/aE7X6UbtfRN5VfbKLgB7pGveg80UoQpY+QA6Wj5 0HnTmMMfZw9FIOjkA/Y12Q== X-Received: by 10.28.69.201 with SMTP id l70mr5354486wmi.53.1500320675038; Mon, 17 Jul 2017 12:44:35 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-e9a1-3503-5c3f-d7d9.holly.idiocy.org. [2001:8b0:3f8:8129:e9a1:3503:5c3f:d7d9]) by smtp.gmail.com with ESMTPSA id l14sm71462wrb.19.2017.07.17.12.44.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Jul 2017 12:44:34 -0700 (PDT) Date: Mon, 17 Jul 2017 20:44:35 +0100 Message-Id: To: control@debbugs.gnu.org From: Alan Third Subject: control message for bug #27706 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) merge 27706 27736 From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 30 15:09:38 2017 Received: (at 27706) by debbugs.gnu.org; 30 Sep 2017 19:09:38 +0000 Received: from localhost ([127.0.0.1]:41460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyN8s-0005XN-KB for submit@debbugs.gnu.org; Sat, 30 Sep 2017 15:09:38 -0400 Received: from sinyavsky.aurox.ch ([37.35.109.145]:43820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyN8q-0005Wk-TM for 27706@debbugs.gnu.org; Sat, 30 Sep 2017 15:09:37 -0400 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 4A30222558 for <27706@debbugs.gnu.org>; Sat, 30 Sep 2017 19:03:02 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= content-type:content-type:mime-version:references:subject :subject:in-reply-to:to:from:from:message-id:date:date; s=dkim; t=1506798180; x=1507662181; bh=lJjIbwBDGjKBhyDUARe99dauRlrIQTBM +1njhkY73p4=; b=YYgtuJN4WdFUf2agVzbPpy/qrZzm1DMGDwYE/V7FXCX2emys SDt3/U/WYTbIAH0LJOTVHJHwMVash/GpXaTwbl/DuUqAoBQGmpURbHIPozOcVQq3 0ZVsSfO+lSpJm3dsLvUU5tftbykN9R7PD1pco5KpVsnaJPL7uc3CMkWFaJo= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id QcBvu6e1jMC6 for <27706@debbugs.gnu.org>; Sat, 30 Sep 2017 19:03:00 +0000 (UTC) Received: from gray (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 5169F22506 for <27706@debbugs.gnu.org>; Sat, 30 Sep 2017 19:02:58 +0000 (UTC) Date: Sat, 30 Sep 2017 21:09:08 +0200 Message-Id: From: charles@aurox.ch (Charles A. Roelli) To: 27706@debbugs.gnu.org In-reply-to: (charles@aurox.ch) Subject: Re: bug#27706: MacOS: decode-time hang References: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27706 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > From: "Charles A. Roelli" > Date: Sat, 15 Jul 2017 16:19:39 +0200 > > Evaluating the following form on my system (macOS 10.6) results in a > hang from Emacs 23 to master: > > (decode-time '(-1034058203136 0)) > > [other values around -1034058203136 don't cause an issue] > > The stack trace (stuck in macOS' libc, I think): > > [...] > > The form is called when compiling the new org-timer.el, which requires > org-clock.el, which itself contains this call that causes the issue: > > (defconst org-clock--oldest-date > (let* ((dichotomy > (lambda (min max pred) > (if (funcall pred min) min > (cl-incf min) > (while (> (- max min) 1) > (let ((mean (+ (ash min -1) (ash max -1) (logand min max 1)))) > (if (funcall pred mean) (setq max mean) (setq min mean))))) > max)) > (high > (funcall dichotomy > most-negative-fixnum > 0 > (lambda (m) (ignore-errors (decode-time (list m 0)))))) > (low > (funcall dichotomy > most-negative-fixnum > 0 > (lambda (m) (ignore-errors (decode-time (list high m))))))) > (list high low)) > "Internal time for oldest date representable on the system.") > > As a result, "make" hangs for me, so I delete org-timer.el locally to > get around the problem for now. But I'd like to find a more permanent > solution to make sure this doesn't happen elsewhere. > > Can anyone reproduce this under macOS, and if so, under which macOS > version? I'd like to know which versions might need a fix for this > problem. I'd like to fix this for emacs-26. Is this fix okay to apply? >From b7a871e126b6e2036dbbe81b5c8b36bfbf6da419 Mon Sep 17 00:00:00 2001 From: "Charles A. Roelli" Date: Sat, 30 Sep 2017 20:42:03 +0200 Subject: [PATCH] Workaround for faulty localtime() under macOS 10.6 * lisp/org/org-clock.el (org-clock--oldest-date): Only execute 'decode-time' on times later than year -2**31 under macOS 10.6. See Bug#27706. --- lisp/org/org-clock.el | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lisp/org/org-clock.el b/lisp/org/org-clock.el index 8df185d..97d9612 100644 --- a/lisp/org/org-clock.el +++ b/lisp/org/org-clock.el @@ -478,7 +478,18 @@ org-clock--oldest-date (funcall dichotomy most-negative-fixnum 0 - (lambda (m) (ignore-errors (decode-time (list m 0)))))) + (lambda (m) + ;; libc in macOS 10.6 hangs when decoding times + ;; around year -2**31. Limit `high' not to go + ;; any earlier than that. + (if (and (featurep 'ns) + (string-match-p + "10\\.6\\.[[:digit:]]" + (shell-command-to-string + "sw_vers -productVersion"))) + (if (> m -1034058203136) + (ignore-errors (decode-time (list m 0)))) + (ignore-errors (decode-time (list m 0))))))) (low (funcall dichotomy most-negative-fixnum -- 2.9.4 From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 30 16:21:12 2017 Received: (at 27706) by debbugs.gnu.org; 30 Sep 2017 20:21:12 +0000 Received: from localhost ([127.0.0.1]:41498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyOG8-0007Lo-LD for submit@debbugs.gnu.org; Sat, 30 Sep 2017 16:21:12 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:45601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyOG6-0007LY-R0 for 27706@debbugs.gnu.org; Sat, 30 Sep 2017 16:21:11 -0400 Received: by mail-wr0-f180.google.com with SMTP id m18so1578207wrm.2 for <27706@debbugs.gnu.org>; Sat, 30 Sep 2017 13:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=+GyRAqxqC274xNm55MQTNABcF1rLls/oqBk7Lucm6XQ=; b=aigP8O+H0mRpbtZX40+ZSmi41xaKgKxOExOANE/IhPHp8A8oplZsrnooXqI77sIRfu DOsIp+QOEhGs46R7Fqg3AXfa2eX83teWfuDn8fFlHRDT1mfrQSgI/86hse/8NoVP6TkA WfIXMMJR51OmGPiJAh0S4hFAjcMYt5W+tucGsZCphREb9l9B7iXxZTnP0edoZIw53UZn jArr/hDUu9Rg0lK+p7kWM+2PhNBsTHgrYnLH3Zae4JqvayaVx37fWZidA5PpavHX08wL XuKg3ZdSA11rsu6H1BO4dh767FFpgGtgChU+cDYD15uEeHBFuMYXVa4XFYEThEmvPOeP mhdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=+GyRAqxqC274xNm55MQTNABcF1rLls/oqBk7Lucm6XQ=; b=fv5Hom0RLFO/Pocc0aHrve3uG1xQ+Upr1lkro5aTAQRIsABm/GhRp2epe1O9MvJOJ1 GLuJISoOj/rDGEyy7s0tZTO8dq1SmMj8J3v51nOcla+NP+eKRRUCHLff4QMXOnH+zsts L7DllUmc8I+1g5EZ5n90PGnyyoOpq/aNM6Q9O6x4K/pmJQBycAqcPi6DADbsltDyjUq+ xAxZQ390nDJ6goLt4Hdcs6FMqFctu7WviuRZ6m+7Ow/GBxdvLRVYx4YMT+PqfSUG92FX YSSZs+A4C5bVVFsJo6x9+add84Rw0i/JlOm5LLM632k8hJyYY+yBTAfNh1ffCoDPbpI4 EMTg== X-Gm-Message-State: AHPjjUhguoMFqWtoHk5UgvBaEfMHOfW7DpH4yqW28lbQuWM/2gvGCJJ6 SP0+f3RQMXtd+TDR34EHcFLMKUlA X-Google-Smtp-Source: AOwi7QBX36sf370be4IWYI9Q3cXvU8NOEkSiA55d8ZKJUGuX5qxevQzEuT1iTS0SYcIcJYERSOX0ug== X-Received: by 10.223.188.70 with SMTP id a6mr10524968wrh.224.1506802865117; Sat, 30 Sep 2017 13:21:05 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-ad89-e054-05c6-3eca.holly.idiocy.org. [2001:8b0:3f8:8129:ad89:e054:5c6:3eca]) by smtp.gmail.com with ESMTPSA id u52sm5601913wrb.23.2017.09.30.13.21.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Sep 2017 13:21:04 -0700 (PDT) Date: Sat, 30 Sep 2017 21:21:02 +0100 From: Alan Third To: "Charles A. Roelli" Subject: Re: bug#27706: MacOS: decode-time hang Message-ID: <20170930202102.GA885@breton.holly.idiocy.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.0 (2017-09-02) X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 27706 Cc: 27706@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) On Sat, Sep 30, 2017 at 09:09:08PM +0200, Charles A. Roelli wrote: > + (if (and (featurep 'ns) > + (string-match-p > + "10\\.6\\.[[:digit:]]" > + (shell-command-to-string > + "sw_vers -productVersion"))) I can’t speak for the issue generally as I don’t know what this code does, but this particular check looks incorrect to me. sw_vers doesn’t exist on GNU/Linux, and probably other platforms that GNUstep runs on, so you can’t just use a check for NS. Probably you need to check for Darwin, which should work on terminal only versions of Emacs too. (string-equal system-type "darwin") (There may be other ways to check, this is the only one I know.) -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 30 17:22:00 2017 Received: (at 27706) by debbugs.gnu.org; 30 Sep 2017 21:22:00 +0000 Received: from localhost ([127.0.0.1]:41529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyPCy-0000bk-4J for submit@debbugs.gnu.org; Sat, 30 Sep 2017 17:22:00 -0400 Received: from mail-io0-f171.google.com ([209.85.223.171]:53201) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyPCw-0000bT-8o for 27706@debbugs.gnu.org; Sat, 30 Sep 2017 17:21:58 -0400 Received: by mail-io0-f171.google.com with SMTP id i197so2241501ioe.9 for <27706@debbugs.gnu.org>; Sat, 30 Sep 2017 14:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=qC0l/Nptj92JKtfbczJuCkTMp4cZ81F9bO/lHP0EJwI=; b=g1cvq6Nt1R3ynBIFFqoPCUracbMfsOPVSzmL/bQtYcrJycr7JMFbjFT6Whno7E0js3 ndvD5X/kqo8ZolhCU8z76QBd+CnpWP4LalI/rzbt6UemlNeIQRFzMzq/+DTowzjtebNg RZQOZw9GJemjiAvz+E+jRKq0apdIcg/qoanTl9arPnylf2Z6n+BxNSxEXUfRH912vtau m+1/JUzDv2LJXs/xF8+Fkbqg9hvJhruajYBM7a0z9DgpIIPFqUctoS6n4NGQ8zfFo9jo HxORkD/qL1dxnVX3uJu+r65kf7Irvxy4jad/ck1qrmHN64YQs4Uqwh9UFI4xBoKJXZ2g 7qGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=qC0l/Nptj92JKtfbczJuCkTMp4cZ81F9bO/lHP0EJwI=; b=Bi4cexhLEnk6jirzTCLvUgRuGHS7GD1vKjDLIES59X3xp2u21ZjQQZuswocnU4pZ0a mHQQ5NWeJrYbv0Vi6S2VuQMEzQHH56Lioo8vXEfCKZc2ezs2K2O5g8bN3h7L/uFtV7Pv auGYwsI/CO6ddNAIB+HZZ7iu5hpZU6LiNXrg751Tzf6rkmd5YcE1opdQCNdTfJ+NvlZ8 Eg9PcmwE0b8yepFmwq1k/rWzOg6CahnhS+rsXXHB39etJ0vy4T9BMpOPeumQDQ/pfBWS Dj+eJ/mI0aW4ULdWFfYSQ+KN+psieU6dbxyxHu2+/TInfDM0VFzZPoRexspynnmeYmIJ 48zg== X-Gm-Message-State: AMCzsaWZkLH2OKCNBcFei4mFFT8vX6MkfoYkH7yxB331KN0fRhh/Xkdl Y7OLlNR1YYYbUpTC8D8wEVqNXQ== X-Google-Smtp-Source: AOwi7QCGPoKqudZv5N9dE+uLKo9+LfR39r0PLuxijtt9Uj6SZRseGLEGgZhTjGOuub4GJAZWtFyTMg== X-Received: by 10.107.162.3 with SMTP id l3mr19476588ioe.227.1506806512391; Sat, 30 Sep 2017 14:21:52 -0700 (PDT) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id l195sm3186007itl.2.2017.09.30.14.21.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 30 Sep 2017 14:21:51 -0700 (PDT) From: Noam Postavsky To: Alan Third Subject: Re: bug#27706: MacOS: decode-time hang References: <20170930202102.GA885@breton.holly.idiocy.org> Date: Sat, 30 Sep 2017 17:21:49 -0400 In-Reply-To: <20170930202102.GA885@breton.holly.idiocy.org> (Alan Third's message of "Sat, 30 Sep 2017 21:21:02 +0100") Message-ID: <87d167evbm.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 27706 Cc: "Charles A. Roelli" , 27706@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Alan Third writes: > (string-equal system-type "darwin") `system-type' contains a symbol, so generally the comparison should look like this (unless there is some strong reason to do string comparison) (eq system-type 'darwin) From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 01 05:28:20 2017 Received: (at 27706) by debbugs.gnu.org; 1 Oct 2017 09:28:20 +0000 Received: from localhost ([127.0.0.1]:41740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyaXr-00088H-Vo for submit@debbugs.gnu.org; Sun, 01 Oct 2017 05:28:20 -0400 Received: from sinyavsky.aurox.ch ([37.35.109.145]:44205) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyaXq-000880-4C for 27706@debbugs.gnu.org; Sun, 01 Oct 2017 05:28:18 -0400 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 98D302255E for <27706@debbugs.gnu.org>; Sun, 1 Oct 2017 09:21:44 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= content-type:content-type:mime-version:references:subject :subject:in-reply-to:to:from:from:message-id:date:date; s=dkim; t=1506849703; x=1507713704; bh=bqq8VomhN9QrQJGxdeFKueft0+jefX6H r6XnUUZmR9Q=; b=Puh3imFqPJcCL67byo1zf8rbp9t+MAfLjl3oRksV12NDTgdD ezYXbXq7DYXQVGsgf1M4mQLGkoleVmOOAVV8SpQ2IjdCuBntCRMuVtN/TxkO14PP DKJ6s5TUlp+l+flmyzmc08qEEh4dKTXhxlss+pvBkq16KGDguMvRRVaytO0= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qhTSNL8nnHMd for <27706@debbugs.gnu.org>; Sun, 1 Oct 2017 09:21:43 +0000 (UTC) Received: from gray (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 8001622550; Sun, 1 Oct 2017 09:21:40 +0000 (UTC) Date: Sun, 01 Oct 2017 11:27:38 +0200 Message-Id: From: charles@aurox.ch (Charles A. Roelli) To: Noam Postavsky In-reply-to: <87d167evbm.fsf@users.sourceforge.net> (message from Noam Postavsky on Sat, 30 Sep 2017 17:21:49 -0400) Subject: Re: bug#27706: MacOS: decode-time hang References: <20170930202102.GA885@breton.holly.idiocy.org> <87d167evbm.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27706 Cc: alan@idiocy.org, 27706@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > From: Noam Postavsky > Date: Sat, 30 Sep 2017 17:21:49 -0400 > > Alan Third writes: > > > (string-equal system-type "darwin") > > `system-type' contains a symbol, so generally the comparison should look > like this (unless there is some strong reason to do string comparison) > > (eq system-type 'darwin) Thanks to both of you for your help. Updated patch follows. I've also made the check a bit easier to read, and verified that it also works on the Darwin terminal. >From 7ddfdae2359c07bdddeeeafd69517e02ee3ee2f5 Mon Sep 17 00:00:00 2001 From: "Charles A. Roelli" Date: Sat, 30 Sep 2017 20:42:03 +0200 Subject: [PATCH] Workaround for faulty localtime() under macOS 10.6 * lisp/org/org-clock.el (org-clock--oldest-date): Only execute 'decode-time' on times later than year -2**31 under macOS 10.6. See Bug#27706. --- lisp/org/org-clock.el | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lisp/org/org-clock.el b/lisp/org/org-clock.el index 8df185d..2eec817 100644 --- a/lisp/org/org-clock.el +++ b/lisp/org/org-clock.el @@ -478,7 +478,17 @@ org-clock--oldest-date (funcall dichotomy most-negative-fixnum 0 - (lambda (m) (ignore-errors (decode-time (list m 0)))))) + (lambda (m) + ;; libc in macOS 10.6 hangs when decoding times + ;; around year -2**31. Limit `high' not to go + ;; any earlier than that. + (unless (and (eq system-type 'darwin) + (string-match-p + "10\\.6\\.[[:digit:]]" + (shell-command-to-string + "sw_vers -productVersion")) + (<= m -1034058203136)) + (ignore-errors (decode-time (list m 0))))))) (low (funcall dichotomy most-negative-fixnum -- 2.9.4 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 01 13:11:16 2017 Received: (at 27706) by debbugs.gnu.org; 1 Oct 2017 17:11:16 +0000 Received: from localhost ([127.0.0.1]:42984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyhls-0000SX-Jf for submit@debbugs.gnu.org; Sun, 01 Oct 2017 13:11:16 -0400 Received: from sinyavsky.aurox.ch ([37.35.109.145]:44422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyhlq-0000SH-El for 27706@debbugs.gnu.org; Sun, 01 Oct 2017 13:11:14 -0400 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id C11FE2255A for <27706@debbugs.gnu.org>; Sun, 1 Oct 2017 17:04:40 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1506877477; x=1507741478; bh=HYDA6DM0I+JgS awjStsamhvTPcYcmB4efMUxaWJO+pA=; b=t9M395Lyn8lb8Z3G+hsFIe4hZ1DTO 0T8HUtZOqBarLaiNZfNtoe6sbb5NwC4R92J9U6eoKTY/GOPAggRul0ps7xcruCvG yjtkEfc/06KDFHYGG73g+ecUZR1e8trVEwbDwDq7QvPoxGyPbZQMTK97aqfHFpeL OPwG4j/UCZR0y8= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id zwTJDpmaOojJ for <27706@debbugs.gnu.org>; Sun, 1 Oct 2017 17:04:37 +0000 (UTC) Received: from gray (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 8CF6522506; Sun, 1 Oct 2017 17:04:34 +0000 (UTC) Date: Sun, 01 Oct 2017 19:11:01 +0200 Message-Id: From: charles@aurox.ch (Charles A. Roelli) To: 27706@debbugs.gnu.org In-reply-to: (charles@aurox.ch) Subject: Re: bug#27706: MacOS: decode-time hang References: <20170930202102.GA885@breton.holly.idiocy.org> <87d167evbm.fsf@users.sourceforge.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27706 Cc: alan@idiocy.org, npostavs@users.sourceforge.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) I pushed the fix to emacs-26: commit bd49b6f1b39cffeaf6098bc7b0182552683b1c07 Workaround for faulty localtime() under macOS 10.6 * lisp/org/org-clock.el (org-clock--oldest-date): Only execute 'decode-time' on times later than year -2**31 under macOS 10.6. See Bug#27706. I'll close this bug in the next few days. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 07 11:33:35 2017 Received: (at 27706-done) by debbugs.gnu.org; 7 Oct 2017 15:33:35 +0000 Received: from localhost ([127.0.0.1]:54864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0r6d-0003e3-HB for submit@debbugs.gnu.org; Sat, 07 Oct 2017 11:33:35 -0400 Received: from sinyavsky.aurox.ch ([37.35.109.145]:48608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0r6b-0003dr-0z for 27706-done@debbugs.gnu.org; Sat, 07 Oct 2017 11:33:34 -0400 Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 24A082256D for <27706-done@debbugs.gnu.org>; Sat, 7 Oct 2017 15:26:54 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1507390011; x=1508254012; bh=ZKDGZMZS1Pyx0 t1TXRRb1e6MLEJNWwSbWBQJRSwA5yo=; b=jwj0J/kz2n0GlNCFJVfbzXB0CH5oD sGCxAnHFmNdSGzx8nv3fHWCwOftCoOJj+KICKbbMLCBsD9qNuuKvIcIHQbp9Vijh KENV5toQIgsHEux04BF/B0/VSCXj3Tc5Mqf4oC9wMPSpkfIhaD8b0ykDjJBudSre liZGs7rnXXAVxc= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Z3-xy6wmO42w for <27706-done@debbugs.gnu.org>; Sat, 7 Oct 2017 15:26:51 +0000 (UTC) Received: from gray (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 940FE2255D; Sat, 7 Oct 2017 15:26:51 +0000 (UTC) Date: Sat, 07 Oct 2017 17:33:24 +0200 Message-Id: From: charles@aurox.ch (Charles A. Roelli) To: charles@aurox.ch (Charles A. Roelli) In-reply-to: (charles@aurox.ch) Subject: Re: bug#27706: MacOS: decode-time hang References: <20170930202102.GA885@breton.holly.idiocy.org> <87d167evbm.fsf@users.sourceforge.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 27706-done Cc: alan@idiocy.org, npostavs@users.sourceforge.net, 27706-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > Date: Sun, 01 Oct 2017 19:11:01 +0200 > From: charles@aurox.ch (Charles A. Roelli) > CC: npostavs@users.sourceforge.net, alan@idiocy.org > > I pushed the fix to emacs-26: > > commit bd49b6f1b39cffeaf6098bc7b0182552683b1c07 > > Workaround for faulty localtime() under macOS 10.6 > > * lisp/org/org-clock.el (org-clock--oldest-date): Only execute > 'decode-time' on times later than year -2**31 under macOS 10.6. > See Bug#27706. > > I'll close this bug in the next few days. Works, closing. From unknown Thu Aug 14 20:51:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 05 Nov 2017 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 05 13:01:00 2017 Received: (at control) by debbugs.gnu.org; 5 Nov 2017 18:01:00 +0000 Received: from localhost ([127.0.0.1]:52566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBPEB-0000m1-R4 for submit@debbugs.gnu.org; Sun, 05 Nov 2017 13:00:59 -0500 Received: from gateway34.websitewelcome.com ([192.185.148.140]:16420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBPEA-0000ls-De for control@debbugs.gnu.org; Sun, 05 Nov 2017 13:00:58 -0500 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway34.websitewelcome.com (Postfix) with ESMTP id 2933C15462 for ; Sun, 5 Nov 2017 12:00:57 -0600 (CST) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id BPE8eMY5jrWstBPE9e5PJi; Sun, 05 Nov 2017 12:00:57 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=p2xCxPuIzEAtKBXt05CzZkGjvPWcnJ4kicAf6KCMcnY=; b=FxnW7f9EheIsh88aTvf0PikJON zFwOqDgtgUqGUnjRjetpqW8pdBSUWZfMymb+Zt7bcudEQmxNyWXMgBMzxGi1rTQgiel+loD0Eubcf ErOUn2DBt/hPggyRKTTLET/Q13BZ8Stre/mVE91o/DgBCt/k2vTrMPBpi6AAt+7hHM0fx9yjXGbjQ ZO9B2pO4wMDnOS0bH+sFY44un57qmPNTqnuGTQb0HH5bO5SFNtvqy/AK9iTzOFWeZUJmpgv9SUrh+ pwb8JuvaoOyZg2H8ikTFizAwZ2sw+8fKKgLoajxRojQkrf5AyniLHE1RHwhUgM7mi8SEhTsKfp1i9 ZPDHn4wg==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:49790 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1eBPE8-001rIR-F9 for control@debbugs.gnu.org; Sun, 05 Nov 2017 12:00:56 -0600 Date: Sun, 05 Nov 2017 10:00:54 -0800 Message-ID: From: Keith David Bershatsky To: control@debbugs.gnu.org Subject: Re: bug#27736: OSX 10.6.8: Building from master branch fails. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1eBPE8-001rIR-F9 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.private) [45.48.239.195]:49790 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) unarchive 27736 From unknown Thu Aug 14 20:51:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 07 Dec 2017 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 27 16:50:10 2018 Received: (at control) by debbugs.gnu.org; 27 Mar 2018 20:50:11 +0000 Received: from localhost ([127.0.0.1]:56295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0vXm-0001xz-OP for submit@debbugs.gnu.org; Tue, 27 Mar 2018 16:50:10 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:37958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0vXk-0001xb-BT for control@debbugs.gnu.org; Tue, 27 Mar 2018 16:50:08 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4F9C11611D3 for ; Tue, 27 Mar 2018 13:50:02 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id hKmWo_AbQv4B for ; Tue, 27 Mar 2018 13:50:01 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id AB6ED160E32 for ; Tue, 27 Mar 2018 13:50:01 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id CT_w0aZeUdrl for ; Tue, 27 Mar 2018 13:50:01 -0700 (PDT) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 946021611D3 for ; Tue, 27 Mar 2018 13:50:01 -0700 (PDT) To: GNU bug control From: Paul Eggert Subject: unarchive 27736 Organization: UCLA Computer Science Department Message-ID: <01805471-0876-ce14-58a8-599a459482a2@cs.ucla.edu> Date: Tue, 27 Mar 2018 13:49:58 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) unarchive 27736 From unknown Thu Aug 14 20:51:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 30 Apr 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator