From unknown Fri Aug 15 20:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Resent-From: Rupert Swarbrick Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Sep 2014 20:36:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 18586@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.141202293931051 (code B ref -1); Mon, 29 Sep 2014 20:36:04 +0000 Received: (at submit) by debbugs.gnu.org; 29 Sep 2014 20:35:39 +0000 Received: from localhost ([127.0.0.1]:55599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYhfW-00084g-7p for submit@debbugs.gnu.org; Mon, 29 Sep 2014 16:35:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41944) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYbZ5-000744-Dd for submit@debbugs.gnu.org; Mon, 29 Sep 2014 10:04:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYbYz-0003Mb-2Z for submit@debbugs.gnu.org; Mon, 29 Sep 2014 10:04:35 -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.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYbYy-0003LU-VV for submit@debbugs.gnu.org; Mon, 29 Sep 2014 10:04:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYbYo-0002yu-Lk for bug-gnu-emacs@gnu.org; Mon, 29 Sep 2014 10:04:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYbYj-0003KI-D2 for bug-gnu-emacs@gnu.org; Mon, 29 Sep 2014 10:04:18 -0400 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]:40158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYbYj-0003IU-3T for bug-gnu-emacs@gnu.org; Mon, 29 Sep 2014 10:04:13 -0400 X-IronPort-AV: E=Sophos;i="5.04,620,1406617200"; d="scan'208";a="46979193" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw2-out.broadcom.com with ESMTP; 29 Sep 2014 07:23:21 -0700 Received: from IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 29 Sep 2014 07:04:06 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) with Microsoft SMTP Server id 14.3.174.1; Mon, 29 Sep 2014 07:04:09 -0700 Received: from [10.177.72.81] (unknown [10.177.72.81]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 5D4FB41015 for ; Mon, 29 Sep 2014 07:03:57 -0700 (PDT) Message-ID: <542966D3.1050804@broadcom.com> Date: Mon, 29 Sep 2014 15:04:03 +0100 From: Rupert Swarbrick User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Mon, 29 Sep 2014 16:35:31 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (-----) With the code at the head of the development tree at the moment, running the code (x-focus-frame (selected-frame)) yields the error Not an in-range integer, float, or cons of integers (this comes from src/data.c, in case that's of interest). Bisection tracks the change down to the patch with git sha ID c7fcb3f8, which was committed on 7/9/2014, modifying xselect.c. Running gcc -E, I see that on this system the constant X_LONG_MAX comes out as 0x7fffffff (which is 2^31-1). LONG_MAX, on the other hand, comes out as 9223372036854775807L (which is 2^63-1, I think). This bug appears when Emacsclient tries to raise a frame in which it opened a file. This would be ignorable, but the error gets spotted by an emacsclient invocation when writing commit messages with magit, and the whole commit falls over. (I'm mostly writing this paragraph for anyone searching with Google and wondering whether this is the bug they hit) In GNU Emacs 24.4.50.6 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars) of 2014-09-29 on xl-cam-rhel6test Windowing system distributor `The X.Org Foundation', version 11.0.11300000 System Description: Red Hat Enterprise Linux Server release 6.4 (Santiago) Configured using: `configure --with-xml2 --without-sound --without-rsvg --without-imagemagick --with-x-toolkit=lucid' Configured features: XPM JPEG TIFF GIF PNG GPM DBUS GCONF NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 ZLIB Important settings: value of $LC_COLLATE: C value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Messages Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t Recent input: C-n M-x r e p o r t C-x o C-x b * C-x b C-x o C-n C-x o M-x M-p Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. eval: Not an in-range integer, float, or cons of integers End of buffer byte-code: Command attempted to use minibuffer while in minibuffer End of buffer Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 76621 5099) (symbols 48 17849 0) (miscs 40 48 127) (strings 32 11789 3804) (string-bytes 1 308287) (vectors 16 9947) (vector-slots 8 388130 17256) (floats 8 72 143) (intervals 56 203 8) (buffers 976 11) (heap 1024 37250 627)) From unknown Fri Aug 15 20:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame References: <542966D3.1050804@broadcom.com> In-Reply-To: <542966D3.1050804@broadcom.com> Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Sep 2014 04:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Rupert Swarbrick Cc: 18586@debbugs.gnu.org Received: via spool by 18586-submit@debbugs.gnu.org id=B18586.141204980113332 (code B ref 18586); Tue, 30 Sep 2014 04:04:01 +0000 Received: (at 18586) by debbugs.gnu.org; 30 Sep 2014 04:03:21 +0000 Received: from localhost ([127.0.0.1]:55720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYoek-0003Sw-TD for submit@debbugs.gnu.org; Tue, 30 Sep 2014 00:03:20 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:52299) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYoeh-0003Si-9D for 18586@debbugs.gnu.org; Tue, 30 Sep 2014 00:03:16 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 20E6839E8017; Mon, 29 Sep 2014 21:03:14 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hGHuOxshhmnr; Mon, 29 Sep 2014 21:03:09 -0700 (PDT) Received: from [192.168.1.9] (pool-71-177-17-123.lsanca.dsl-w.verizon.net [71.177.17.123]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 6DE1039E8012; Mon, 29 Sep 2014 21:03:09 -0700 (PDT) Message-ID: <542A2B7D.9050704@cs.ucla.edu> Date: Mon, 29 Sep 2014 21:03:09 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.1 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -3.1 (---) Thanks for the bug report. I'm not observing the problem on my platform with a similar configuration (Emacs trunk bzr 117978, Fedora 20 x86-64, gcc 4.9.1, detailed configuration below). I ran 'emacs -Q' and then typed "(x-focus-frame (selected-frame)) C-j"; the result was nil. Can you put a breakpoint on cons_to_unsigned's call to 'error', and similarly on cons_to_signed's call to 'error', and get a backtrace at that point? Here's my configuration, which I tried to make as close to yours as I easily could: In GNU Emacs 25.0.50.5 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars) of 2014-09-29 on penguin.cs.ucla.edu Repository revision: 116308 eggert@cs.ucla.edu-20140930024425-eua1x25mazj5u3wu Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Fedora release 20 (Heisenbug) Configured using: `configure --with-xml2 --without-sound --without-rsvg --without-imagemagick --with-x-toolkit=lucid --without-xaw3d --without-gsettings --without-xft --without-m17n-flt --without-libotf' Configured features: XPM JPEG TIFF GIF PNG GPM DBUS GCONF NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 ZLIB Important settings: value of $LC_COLLATE: C value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: en_US.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: ( C-a C-d C-d C-d C-e C-j x r e p o r t - e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 76363 5743) (symbols 48 17876 0) (miscs 40 45 127) (strings 32 11790 4268) (string-bytes 1 309976) (vectors 16 9312) (vector-slots 8 384075 16693) (floats 8 70 92) (intervals 56 234 0) (buffers 976 11) (heap 1024 39578 935)) From unknown Fri Aug 15 20:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Sep 2014 08:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Eggert Cc: Rupert Swarbrick , 18586@debbugs.gnu.org Received: via spool by 18586-submit@debbugs.gnu.org id=B18586.14120646324479 (code B ref 18586); Tue, 30 Sep 2014 08:11:02 +0000 Received: (at 18586) by debbugs.gnu.org; 30 Sep 2014 08:10:32 +0000 Received: from localhost ([127.0.0.1]:55862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYsVy-0001AA-Rj for submit@debbugs.gnu.org; Tue, 30 Sep 2014 04:10:31 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:61923) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYsVw-0001A1-7a for 18586@debbugs.gnu.org; Tue, 30 Sep 2014 04:10:29 -0400 Received: by mail-pd0-f181.google.com with SMTP id z10so4817672pdj.12 for <18586@debbugs.gnu.org>; Tue, 30 Sep 2014 01:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=//UuIYnxCrNnJCIBzGNjsFqB08K3RXBOGkN7nOVZI/Q=; b=clsqD/d3dv5LA1zt9BA801vcYdIIrr5rRLDfmIkdas4hCGNDnQe+Yu7x5JR0XlCw+F vnr2dl5iiVTx83WmsXqK8OVz+PI3jzGIINiGWM4HoRG7R1izUE4s6ErHZDqFhfKElL9c zzO1Fv2GfX82I7gp221RLaPGRa0aCc/88hGx03QMQEGfEH/R+6f9XDuNjR9Glt6eoObI 5E9ntZ98LIKhUAsKTBblgwenSWmdC42UuxH07VZZ809VcvkJVZsC/sWsV/++ciTvYKn6 +U7YgA+6PCIy2Fxt3ADbodiup89wVBju8pibmS8ldZUTUxhepcBwgUyA4b70QOUE5XrV fnoA== X-Received: by 10.68.223.103 with SMTP id qt7mr69046736pbc.9.1412064627543; Tue, 30 Sep 2014 01:10:27 -0700 (PDT) Received: from fortuna ([221.222.147.223]) by mx.google.com with ESMTPSA id az8sm8325132pac.12.2014.09.30.01.10.24 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 30 Sep 2014 01:10:27 -0700 (PDT) From: Leo Liu References: <542966D3.1050804@broadcom.com> <542A2B7D.9050704@cs.ucla.edu> Face: iVBORw0KGgoAAAANSUhEUgAAACkAAAApAQAAAACAGz1bAAABKElEQVQYlWNg3NIt5FDPUPt7 4+X79Qyucz5/ugik+L2PBgKpyphaIK921q23QDnG0NBQoMr/vaWl9f8ZLL78uPv5PwN7RETfzXoG jhmFz27XM0RXmpuY/WfY+fv0Mc56BvFybfXA/wwL5t/wF61n2PU59axXPcOVzbmSW/8zrNt1benC /ww70hqUU/4zKCtrT9jwn8FhwynbufUMendE2aLqGRpdX9al1zM8eh17lKeeQcTMrdD5P8P3j/YT Q/8zXHSb7p1Qz/C4OM2JuZ7hgtI7K6AjqsMnf8j4z8C6xG1tw3+GqpqvsVn/GTzmpD9j/8/wP/oZ S/l/Bka+QO/g/wy15ueeFQL9N1O8mPU/g+umV3t1gdT0/1bTgHLqYVeXAlWKpMWt+w8Az82C9nHf X0cAAAAASUVORK5CYII= Date: Tue, 30 Sep 2014 16:10:20 +0800 In-Reply-To: <542A2B7D.9050704@cs.ucla.edu> (Paul Eggert's message of "Mon, 29 Sep 2014 21:03:09 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (CentOS 6.5) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) On 2014-09-29 21:03 -0700, Paul Eggert wrote: > Thanks for the bug report. I'm not observing the problem on my > platform with a similar configuration (Emacs trunk bzr 117978, Fedora > 20 x86-64, gcc 4.9.1, detailed configuration below). I ran 'emacs -Q' > and then typed "(x-focus-frame (selected-frame)) C-j"; the result was > nil. > > Can you put a breakpoint on cons_to_unsigned's call to 'error', and > similarly on cons_to_signed's call to 'error', and get a backtrace at > that point? I had a report on a similar issue but the bug is gone after a reboot. Not easy to reproduce. Leo From unknown Fri Aug 15 20:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Sep 2014 09:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Rupert Swarbrick , 18586@debbugs.gnu.org Cc: Paul Eggert Received: via spool by 18586-submit@debbugs.gnu.org id=B18586.141207111214463 (code B ref 18586); Tue, 30 Sep 2014 09:59:02 +0000 Received: (at 18586) by debbugs.gnu.org; 30 Sep 2014 09:58:32 +0000 Received: from localhost ([127.0.0.1]:55872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYuCV-0003lC-Bp for submit@debbugs.gnu.org; Tue, 30 Sep 2014 05:58:31 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:57273) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYuCT-0003l2-2g for 18586@debbugs.gnu.org; Tue, 30 Sep 2014 05:58:29 -0400 Received: by mail-pd0-f177.google.com with SMTP id v10so515749pde.8 for <18586@debbugs.gnu.org>; Tue, 30 Sep 2014 02:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=OG3Aawx4wna0zkjHZ7417JB3UYz4vIyFCrdhURIE6+M=; b=h6hztxP7Bo2gYNg7AmuPquM/stsJk6gsYRIdCUmxvF4hAAwQ62qKHaf8IzEl1xL2qA Jsk5Rueutde+fLaZIhIMPIGcBhwsiYEBIaAGlWT8oSzRVwTh35H9YyaRznPUgox1v5Wq AorjW6ye+nJgqBQJBzBYjmGGlaAt5Wymyw4DQ7fyee2m2LBUTmeD7Cvnsif1iS7MtQb1 IZ3Y0cgL2KPPI1dDBIANUzrJBH7JaejyCiu9XKF7SCCQrW+TCQPfclvbPo8QpXSMhbM0 1ZdtO0nUrvd1VKpL7sDyBVO237GWfKJoQRmgApeTubdqXHID5MxJUp5bIB6yoO7q/y9C 4y2g== X-Received: by 10.70.96.74 with SMTP id dq10mr2139749pdb.165.1412071107607; Tue, 30 Sep 2014 02:58:27 -0700 (PDT) Received: from fortuna ([221.222.147.223]) by mx.google.com with ESMTPSA id iq3sm14652930pbb.71.2014.09.30.02.58.25 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 30 Sep 2014 02:58:26 -0700 (PDT) From: Leo Liu References: <542966D3.1050804@broadcom.com> <542A2B7D.9050704@cs.ucla.edu> Face: iVBORw0KGgoAAAANSUhEUgAAACkAAAApAQAAAACAGz1bAAABKElEQVQYlWNg3NIt5FDPUPt7 4+X79Qyucz5/ugik+L2PBgKpyphaIK921q23QDnG0NBQoMr/vaWl9f8ZLL78uPv5PwN7RETfzXoG jhmFz27XM0RXmpuY/WfY+fv0Mc56BvFybfXA/wwL5t/wF61n2PU59axXPcOVzbmSW/8zrNt1benC /ww70hqUU/4zKCtrT9jwn8FhwynbufUMendE2aLqGRpdX9al1zM8eh17lKeeQcTMrdD5P8P3j/YT Q/8zXHSb7p1Qz/C4OM2JuZ7hgtI7K6AjqsMnf8j4z8C6xG1tw3+GqpqvsVn/GTzmpD9j/8/wP/oZ S/l/Bka+QO/g/wy15ueeFQL9N1O8mPU/g+umV3t1gdT0/1bTgHLqYVeXAlWKpMWt+w8Az82C9nHf X0cAAAAASUVORK5CYII= Date: Tue, 30 Sep 2014 17:58:21 +0800 In-Reply-To: (Leo Liu's message of "Tue, 30 Sep 2014 16:10:20 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (CentOS 6.5) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) > My GDB-fu failed me when trying to move further up the call stack, but > I think the number "o" that's triggering the assertion comes from > dpyinfo->last_user_time in x_ewmh_activate_frame on line 9669 of > xterm.c. I don't know what last_user_time comes from, but on this > server: > ~> uptime > 09:57:15 up 192 days, 22:17, 47 users, load average: 32.29, 32.12, 31.64 > Maybe the corresponding number is smaller after reboot? The only other > server I have to hand has been up for 21 days and I still see the > error. Not sure whether that's a counter-example or whether 21 days is > still a long time... Sounds familiar to me. I also gdb'd before giveup. My server was up for 80 days. x_fill_property_data was passed some data it didn't expect. Maybe it would be easier if you can provide Paul access (if possible) to a server where the problem can be reproduced. Thanks, Leo From unknown Fri Aug 15 20:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Resent-From: Rupert Swarbrick Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Sep 2014 10:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Leo Liu , <18586@debbugs.gnu.org> Cc: Paul Eggert Received: via spool by 18586-submit@debbugs.gnu.org id=B18586.141207127514835 (code B ref 18586); Tue, 30 Sep 2014 10:02:01 +0000 Received: (at 18586) by debbugs.gnu.org; 30 Sep 2014 10:01:15 +0000 Received: from localhost ([127.0.0.1]:55881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYuF8-0003rC-E6 for submit@debbugs.gnu.org; Tue, 30 Sep 2014 06:01:14 -0400 Received: from mail-gw1-out.broadcom.com ([216.31.210.62]:65495) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYuF6-0003r4-KO for 18586@debbugs.gnu.org; Tue, 30 Sep 2014 06:01:13 -0400 X-IronPort-AV: E=Sophos;i="5.04,625,1406617200"; d="scan'208";a="47282128" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw1-out.broadcom.com with ESMTP; 30 Sep 2014 04:13:05 -0700 Received: from IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 30 Sep 2014 03:01:15 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) with Microsoft SMTP Server id 14.3.174.1; Tue, 30 Sep 2014 03:01:14 -0700 Received: from [10.177.72.81] (unknown [10.177.72.81]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 5E67A40FE5; Tue, 30 Sep 2014 03:01:07 -0700 (PDT) Message-ID: <542A7F68.2090609@broadcom.com> Date: Tue, 30 Sep 2014 11:01:12 +0100 From: Rupert Swarbrick User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 References: <542966D3.1050804@broadcom.com> <542A2B7D.9050704@cs.ucla.edu> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.1 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -3.1 (---) On 30/09/2014 10:58, Leo Liu wrote: >> ~> uptime >> 09:57:15 up 192 days, 22:17, 47 users, load average: 32.29, 32.12, 31.64 > >> Maybe the corresponding number is smaller after reboot? The only other >> server I have to hand has been up for 21 days and I still see the >> error. Not sure whether that's a counter-example or whether 21 days is >> still a long time... > > Sounds familiar to me. I also gdb'd before giveup. My server was up for > 80 days. x_fill_property_data was passed some data it didn't expect. That sounds plausible. If I have some time this evening, I'll poke around a little more to figure out where this is coming from. > Maybe it would be easier if you can provide Paul access (if possible) to > a server where the problem can be reproduced. I'm sorry, but that's not going to be possible - it's not my home server, but lives on a company network. That said, I'm vaguely knowledgeable about X and quite knowledgeable about elisp and C and I'll happily dig on his behalf. Rupert From unknown Fri Aug 15 20:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Sep 2014 10:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Rupert Swarbrick Cc: Paul Eggert , 18586@debbugs.gnu.org Received: via spool by 18586-submit@debbugs.gnu.org id=B18586.141207181815619 (code B ref 18586); Tue, 30 Sep 2014 10:11:01 +0000 Received: (at 18586) by debbugs.gnu.org; 30 Sep 2014 10:10:18 +0000 Received: from localhost ([127.0.0.1]:55885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYuNt-00043o-Vn for submit@debbugs.gnu.org; Tue, 30 Sep 2014 06:10:18 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:45794) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYuNr-00043d-6R for 18586@debbugs.gnu.org; Tue, 30 Sep 2014 06:10:16 -0400 Received: by mail-pd0-f182.google.com with SMTP id y10so7138541pdj.27 for <18586@debbugs.gnu.org>; Tue, 30 Sep 2014 03:10:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=09pAUpU8DtMVIm5029AxZaoMtT64UWHjwwXmrxYuamI=; b=KzJ6bIEaFAQaGOotdcJKvW5spwkGjRoPVbsPEBK75fanzLIjfL+FoO3yoc+pLtdsBt V3q048WmiHtrziog0kcMWx6+77HvPoP1Zl5UUTyVfJCXegjV/vh7Z3WsHOzOXW/48XX+ +g2fnYKdKPf5devH1g2rMr51LqbNONQn11zDPAxlDlaXyRTuXJR2mwpzh+1jzfIQBfJ+ pBcz2nfnjf7ZNntJ6UY32/p1rG4lYx0xjPMFPUh4M51NvAlQOCf5bo6JYT+cLOsS65ea M7X58kXuBLiTTW6rleYK7DYtw6O4kg+VraTPC9KcUcfxbnq3snV3//5zFrnbZ+ddlcNE qI/g== X-Received: by 10.70.91.204 with SMTP id cg12mr36192130pdb.47.1412071814214; Tue, 30 Sep 2014 03:10:14 -0700 (PDT) Received: from fortuna ([221.222.147.223]) by mx.google.com with ESMTPSA id ll4sm14844619pab.9.2014.09.30.03.10.11 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 30 Sep 2014 03:10:13 -0700 (PDT) From: Leo Liu References: <542966D3.1050804@broadcom.com> <542A2B7D.9050704@cs.ucla.edu> <542A7F68.2090609@broadcom.com> Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= Date: Tue, 30 Sep 2014 18:10:07 +0800 In-Reply-To: <542A7F68.2090609@broadcom.com> (Rupert Swarbrick's message of "Tue, 30 Sep 2014 11:01:12 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (CentOS 6.5) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) On 2014-09-30 11:01 +0100, Rupert Swarbrick wrote: > I'm sorry, but that's not going to be possible - it's not my home > server, but lives on a company network. That said, I'm vaguely > knowledgeable about X and quite knowledgeable about elisp and C and > I'll happily dig on his behalf. Thanks for your efforts ;) Leo From unknown Fri Aug 15 20:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Resent-From: Ted Zlatanov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Sep 2014 13:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Eggert Cc: Rupert Swarbrick , 18586@debbugs.gnu.org Received: via spool by 18586-submit@debbugs.gnu.org id=B18586.14120835137367 (code B ref 18586); Tue, 30 Sep 2014 13:26:01 +0000 Received: (at 18586) by debbugs.gnu.org; 30 Sep 2014 13:25:13 +0000 Received: from localhost ([127.0.0.1]:55943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYxQW-0001uj-BA for submit@debbugs.gnu.org; Tue, 30 Sep 2014 09:25:12 -0400 Received: from mail-qg0-f49.google.com ([209.85.192.49]:48173) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYxQR-0001uY-Om for 18586@debbugs.gnu.org; Tue, 30 Sep 2014 09:25:09 -0400 Received: by mail-qg0-f49.google.com with SMTP id q107so13443227qgd.22 for <18586@debbugs.gnu.org>; Tue, 30 Sep 2014 06:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=bYuGGY7CPEn0Uqh4AimpTK1XzuVWiIG7lTYWwxZRz2Y=; b=IB3tmfM0ko70YV5s6yrQMwDmfvtfKXs2frRBlQtEfRjsxZd81RCdRXORZiY92BHKCG nsC6AkxpJJsPKynw9v1stTzEgfK60351jZ5gfEUEntb5GBD4ls+Gho0m6dsP1SAT53U4 TqRKE/l/gBS6a7H+FJiyapjBEVroT1SfIM7aE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=bYuGGY7CPEn0Uqh4AimpTK1XzuVWiIG7lTYWwxZRz2Y=; b=SphkbUa0ZR6/BbpbyvvXinPrb86/EMDmwhVG34U9lPwExtY/th1u6H/tLaCw+TdbGq fh9KZVivnhVPp0sXa8ffjKXLc7CEjBqysNv4XbUTQdvq49CGp6UN9E/4Gcv/EX7sCC4W PmsZPfIosQnY5wCS7o20Jo82iFPOZp9n/TtLAwFpYroGuPUVIEgxDN1cWaZFsTqCZfst wZANzD0K5z6EGdZxRbQ/X0gqLlaAhxWtE0kFImqeyWbxJ+WuW73+UMfxJQcVR95Qr8JB dAGmIcoWXO9KJ5BgCWsUVva0YcYXenECVjXOQTMH/3Hwcmbyr4kGaPSeXsVr0LTSX8eq OXxQ== X-Gm-Message-State: ALoCoQl/Ur0IsTFeqO0kh6lmuAb8UUXg+YF8ZXrpQe4zW/LJPNPT8HuGkiSdcO+qF5oebUjfAo6S X-Received: by 10.224.4.134 with SMTP id 6mr12226943qar.91.1412083500479; Tue, 30 Sep 2014 06:25:00 -0700 (PDT) Received: from bug.local ([198.0.146.153]) by mx.google.com with ESMTPSA id k3sm13822875qay.1.2014.09.30.06.24.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Sep 2014 06:24:59 -0700 (PDT) From: Ted Zlatanov Organization: =?UTF-8?Q?=D0=A2=D0=B5=D0=BE=D0=B4=D0=BE=D1=80_?= =?UTF-8?Q?=D0=97=D0=BB=D0=B0=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= @ Cienfuegos References: <542966D3.1050804@broadcom.com> <542A2B7D.9050704@cs.ucla.edu> X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Tue, 30 Sep 2014 09:24:59 -0400 In-Reply-To: <542A2B7D.9050704@cs.ucla.edu> (Paul Eggert's message of "Mon, 29 Sep 2014 21:03:09 -0700") Message-ID: User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) I also get this error on my home system, which is Ubuntu with a GTK Emacs built from trunk as of yesterday, with all the image-related libraries (png, gif, ImageMagick, etc.). emacsclient is not involved, but I do have a frame fontification hook. Maybe it will help find the problem. It happened when I tried to open a .el file; I can then reopen it on the second try. I was in a hurry and didn't have time to debug it further. (when (tzz-emacs-unix) (defun fontify-frame (frame) (let* ((w (frame-pixel-width)) (h (frame-pixel-height)) (font (if (and window-system (eq system-type 'darwin)) (if (> w 2000) "-*-inconsolata-*-*-*--36-*-*-*-*-*-*-*" "-*-inconsolata-*-*-*--24-*-*-*-*-*-*-*") (if (> w 2000) "-xos4-terminus-bold-r-normal-*-28-*-*-*-*-*-iso10646-1" "-xos4-terminus-bold-r-normal-*-22-*-*-*-*-*-iso10646-1")))) (if (and window-system (eq system-type 'darwin)) (set-face-font 'default font)) (set-frame-parameter frame 'font font))) ;; Fontify current frame (fontify-frame nil) ;; Fontify any future frames (push 'fontify-frame after-make-frame-functions)) I can dig further tonight if needed. HTH Ted From unknown Fri Aug 15 20:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18586: Fwd: Re: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Resent-From: Rupert Swarbrick Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Oct 2014 11:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: <18586@debbugs.gnu.org> Received: via spool by 18586-submit@debbugs.gnu.org id=B18586.141216290430365 (code B ref 18586); Wed, 01 Oct 2014 11:29:01 +0000 Received: (at 18586) by debbugs.gnu.org; 1 Oct 2014 11:28:24 +0000 Received: from localhost ([127.0.0.1]:56939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZI50-0007tX-1J for submit@debbugs.gnu.org; Wed, 01 Oct 2014 07:28:23 -0400 Received: from mail-gw1-out.broadcom.com ([216.31.210.62]:32427) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZI4w-0007tD-7R for 18586@debbugs.gnu.org; Wed, 01 Oct 2014 07:28:19 -0400 X-IronPort-AV: E=Sophos;i="5.04,631,1406617200"; d="txt'?scan'208";a="47393069" Received: from irvexchcas06.broadcom.com (HELO IRVEXCHCAS06.corp.ad.broadcom.com) ([10.9.208.53]) by mail-gw1-out.broadcom.com with ESMTP; 01 Oct 2014 05:40:45 -0700 Received: from IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) by IRVEXCHCAS06.corp.ad.broadcom.com (10.9.208.53) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 1 Oct 2014 04:28:20 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) with Microsoft SMTP Server id 14.3.174.1; Wed, 1 Oct 2014 04:28:20 -0700 Received: from [10.177.72.81] (unknown [10.177.72.81]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 3BAB240FE6 for <18586@debbugs.gnu.org>; Wed, 1 Oct 2014 04:28:11 -0700 (PDT) Message-ID: <542BE553.6070602@broadcom.com> Date: Wed, 1 Oct 2014 12:28:19 +0100 From: Rupert Swarbrick User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 References: <542A6D26.2000906@broadcom.com> In-Reply-To: <542A6D26.2000906@broadcom.com> X-Forwarded-Message-Id: <542A6D26.2000906@broadcom.com> Content-Type: multipart/mixed; boundary="------------000403000800080407000100" X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.9 (--) --------------000403000800080407000100 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Drat, I obviously hit "reply" rather than "reply all" when sending the message below. Rupert -------- Original Message -------- Subject: Re: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Date: Tue, 30 Sep 2014 09:43:18 +0100 From: Rupert Swarbrick To: Paul Eggert On 30/09/2014 05:03, Paul Eggert wrote: > Thanks for the bug report. I'm not observing the problem on my platform with a > similar configuration (Emacs trunk bzr 117978, Fedora 20 x86-64, gcc 4.9.1, > detailed configuration below). I ran 'emacs -Q' and then typed "(x-focus-frame > (selected-frame)) C-j"; the result was nil. > > Can you put a breakpoint on cons_to_unsigned's call to 'error', and similarly > on cons_to_signed's call to 'error', and get a backtrace at that point? Yep. I'm attaching a GDB session to this message (if debbugs eats it, I'll send a followup post with the text inline). The x_fill_property_data function calls cons_to_signed, with an argument of 0x385f739b4 (note 9 hex digits). Treating it as a 64 bit signed integer, this is larger than X_LONG_MAX (0x7fffffff on my system). Rupert --------------000403000800080407000100 Content-Type: text/plain; charset="windows-1252"; name="gdb-trace.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gdb-trace.txt" /tmp/ruperts/emacs-build> gdb --args src/emacs -Q --eval '(x-focus-frame (selected-frame))' GNU gdb (GDB) 7.4 Copyright (C) 2012 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-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /tmp/ruperts/emacs-build/src/emacs...done. (gdb) break data.c:2545 Breakpoint 1 at 0x5493a2: file ../../emacs-source/src/data.c, line 2545. (gdb) r Starting program: /tmp/ruperts/emacs-build/src/emacs -Q --eval \(x-focus-frame\ \(selected-frame\)\) [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". [New Thread 0x7ffff1a70700 (LWP 13085)] Breakpoint 1, cons_to_signed (c=, min=-2147483648, max=2147483647) at ../../emacs-source/src/data.c:2545 2545 error ("Not an in-range integer, float, or cons of integers"); (gdb) bt 10 #0 cons_to_signed (c=, min=-2147483648, max=2147483647) at ../../emacs-source/src/data.c:2545 #1 0x00000000004d5471 in x_fill_property_data (dpy=0x1394f70, data=, ret=, format=32) at ../../emacs-source/src/xselect.c:2314 #2 0x00000000004d5886 in x_send_client_event (display=, dest=, from=, message_type=239, format=, values=21641606) at ../../emacs-source/src/xselect.c:2597 #3 0x00000000004d16ad in x_focus_frame (f=0x10bb600) at ../../emacs-source/src/xfns.c:3372 #4 0x000000000041bc41 in Fx_focus_frame (frame=) at ../../emacs-source/src/frame.c:2237 #5 0x000000000055a000 in eval_sub (form=) at ../../emacs-source/src/eval.c:2178 #6 0x000000000055c2c1 in Feval (form=21641542, lexical=) at ../../emacs-source/src/eval.c:1993 #7 0x000000000055abeb in Ffuncall (nargs=, args=) at ../../emacs-source/src/eval.c:2726 #8 0x000000000059066d in exec_byte_code (bytestr=3783118445, vector=-2147483648, maxdepth=2147483647, args_template=1, nargs=2, args=0x7fffffffd690) at ../../emacs-source/src/bytecode.c:920 #9 0x000000000055a984 in Ffuncall (nargs=, args=0x7fffffffd688) at ../../emacs-source/src/eval.c:2784 (More stack frames follow...) (gdb) frame 1 #1 0x00000000004d5471 in x_fill_property_data (dpy=0x1394f70, data=, ret=, format=32) at ../../emacs-source/src/xselect.c:2314 2314 val = cons_to_signed (o, X_LONG_MIN, X_LONG_MAX); (gdb) l 2309 The XDnd spec. is not explicit about negative values, 2310 but let's assume negative v2 is sent modulo 2**16. */ 2311 val = (v1 << 16) | (v2 & 0xffff); 2312 } 2313 else 2314 val = cons_to_signed (o, X_LONG_MIN, X_LONG_MAX); 2315 } 2316 else if (STRINGP (o)) 2317 { 2318 block_input (); (gdb) p/x o $1 = 0x385f739b4 (gdb) p/x X_LONG_MIN $2 = 0x80000000 (gdb) p/x X_LONG_MAX $3 = 0x7fffffff (gdb) p/x LONG_MAX $4 = 0x7fffffffffffffff --------------000403000800080407000100-- From unknown Fri Aug 15 20:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Resent-From: Rupert Swarbrick Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Oct 2014 12:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: <18586@debbugs.gnu.org> Received: via spool by 18586-submit@debbugs.gnu.org id=B18586.141216596014895 (code B ref 18586); Wed, 01 Oct 2014 12:20:01 +0000 Received: (at 18586) by debbugs.gnu.org; 1 Oct 2014 12:19:20 +0000 Received: from localhost ([127.0.0.1]:56968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZIsJ-0003s8-EC for submit@debbugs.gnu.org; Wed, 01 Oct 2014 08:19:19 -0400 Received: from mail-gw1-out.broadcom.com ([216.31.210.62]:22382) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZIsG-0003rr-OL for 18586@debbugs.gnu.org; Wed, 01 Oct 2014 08:19:17 -0400 X-IronPort-AV: E=Sophos;i="5.04,632,1406617200"; d="scan'208";a="47399777" Received: from irvexchcas06.broadcom.com (HELO IRVEXCHCAS06.corp.ad.broadcom.com) ([10.9.208.53]) by mail-gw1-out.broadcom.com with ESMTP; 01 Oct 2014 06:31:45 -0700 Received: from IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) by IRVEXCHCAS06.corp.ad.broadcom.com (10.9.208.53) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 1 Oct 2014 05:19:19 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) with Microsoft SMTP Server id 14.3.174.1; Wed, 1 Oct 2014 05:19:19 -0700 Received: from [10.177.72.81] (unknown [10.177.72.81]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id AE7AC40FE5 for <18586@debbugs.gnu.org>; Wed, 1 Oct 2014 05:19:09 -0700 (PDT) Message-ID: <542BF145.3090403@broadcom.com> Date: Wed, 1 Oct 2014 13:19:17 +0100 From: Rupert Swarbrick User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 References: <542966D3.1050804@broadcom.com> <542A2B7D.9050704@cs.ucla.edu> <542A7F68.2090609@broadcom.com> In-Reply-To: <542A7F68.2090609@broadcom.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.9 (--) I've done some more investigating and I think I know what's wrong. In x_ewmh_activate_frame (in xterm.c), we cons up a list containing 1 and dpyinfo->last_user_time. The latter number is a "Time", which is declared in X.h. The type will be at least 32 bits wide and it gets filled with an unsigned 32 bit number. In x_fill_property_data in xselect.c, this number gets checked against X_LONG_MIN and X_LONG_MAX, which are the limits of a signed 32 bit number. This is incorrect, I think. In my original bug report, I'd gone to the effort of bisecting and finding the patch that triggers this bug. I'd forgotten that a git sha hash is less than helpful though, so I'll be more explicit: * This bug is triggered by an incorrect patch that was committed on 7/9/2014. * The subject line for the commit is "Adjust drag-and-drop fix when window is above top." * The changelog message is: +2014-09-07 Paul Eggert + + Adjust drag-and-drop fix when window is above top (Bug#18303). + * xselect.c (x_fill_property_data): Don't let sign bit of negative + XCDR bleed into XCAR's encoded value. Improve checks for + out-of-range data while we're at it. + I think that this shows that the "improved" checks are incorrect and, with the API in xselect.c, you can only check that the 64-bit sign extended value is between X_LONG_MIN and X_ULONG_MAX. Rupert From unknown Fri Aug 15 20:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Oct 2014 18:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Rupert Swarbrick Cc: 18586@debbugs.gnu.org Received: via spool by 18586-submit@debbugs.gnu.org id=B18586.141218676829164 (code B ref 18586); Wed, 01 Oct 2014 18:07:02 +0000 Received: (at 18586) by debbugs.gnu.org; 1 Oct 2014 18:06:08 +0000 Received: from localhost ([127.0.0.1]:57655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZOHv-0007aJ-Vx for submit@debbugs.gnu.org; Wed, 01 Oct 2014 14:06:08 -0400 Received: from mailfe08.swip.net ([212.247.154.225]:58277 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZOHu-0007aA-0q for 18586@debbugs.gnu.org; Wed, 01 Oct 2014 14:06:07 -0400 X-T2-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 537677391; Wed, 01 Oct 2014 20:06:03 +0200 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) From: Jan =?UTF-8?Q?Dj=C3=A4rv?= In-Reply-To: <542BF145.3090403@broadcom.com> Date: Wed, 1 Oct 2014 20:06:02 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <61F4C13D-A8B6-4952-829E-5DF9754A5F17@swipnet.se> References: <542966D3.1050804@broadcom.com> <542A2B7D.9050704@cs.ucla.edu> <542A7F68.2090609@broadcom.com> <542BF145.3090403@broadcom.com> X-Mailer: Apple Mail (2.1878.6) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) Hello. 1 okt 2014 kl. 14:19 skrev Rupert Swarbrick : > I've done some more investigating and I think I know what's wrong. >=20 > In x_ewmh_activate_frame (in xterm.c), we cons up a list containing 1 = and dpyinfo->last_user_time. The latter number is a "Time", which is = declared in X.h. The type will be at least 32 bits wide and it gets = filled with an unsigned 32 bit number. The problem seems to be that Time is unsigned 32 bits, but for = XClientMessageEvent you can only send signed 32 bits. So the signed 32 = bits aren't strictly a signed number, just 32 bits. I guess the apropriate thing to do is to use cons_to_signed if the value = fits in 32 signed bits, and cons_to_unsigned if it fits in 32 unsigned = bits. Jan D. >=20 > In x_fill_property_data in xselect.c, this number gets checked against = X_LONG_MIN and X_LONG_MAX, which are the limits of a signed 32 bit = number. This is incorrect, I think. >=20 > In my original bug report, I'd gone to the effort of bisecting and = finding the patch that triggers this bug. I'd forgotten that a git sha = hash is less than helpful though, so I'll be more explicit: >=20 > * This bug is triggered by an incorrect patch that was committed on = 7/9/2014. > * The subject line for the commit is > "Adjust drag-and-drop fix when window is above top." > * The changelog message is: >=20 > +2014-09-07 Paul Eggert > + > + Adjust drag-and-drop fix when window is above top = (Bug#18303). > + * xselect.c (x_fill_property_data): Don't let sign bit of = negative > + XCDR bleed into XCAR's encoded value. Improve checks for > + out-of-range data while we're at it. > + >=20 > I think that this shows that the "improved" checks are incorrect and, = with the API in xselect.c, you can only check that the 64-bit sign = extended value is between X_LONG_MIN and X_ULONG_MAX. >=20 >=20 > Rupert >=20 >=20 From unknown Fri Aug 15 20:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame References: <542966D3.1050804@broadcom.com> In-Reply-To: <542966D3.1050804@broadcom.com> Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Oct 2014 04:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: 18586@debbugs.gnu.org Received: via spool by 18586-submit@debbugs.gnu.org id=B18586.14122256593629 (code B ref 18586); Thu, 02 Oct 2014 04:55:02 +0000 Received: (at 18586) by debbugs.gnu.org; 2 Oct 2014 04:54:19 +0000 Received: from localhost ([127.0.0.1]:57945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZYPC-0000wS-S3 for submit@debbugs.gnu.org; Thu, 02 Oct 2014 00:54:19 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:52760) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZYPA-0000wK-Eq for 18586@debbugs.gnu.org; Thu, 02 Oct 2014 00:54:17 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 1871C39E8017; Wed, 1 Oct 2014 21:54:15 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xtlYbB9f21gM; Wed, 1 Oct 2014 21:54:06 -0700 (PDT) Received: from [192.168.1.9] (pool-71-177-17-123.lsanca.dsl-w.verizon.net [71.177.17.123]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 76D1839E8012; Wed, 1 Oct 2014 21:54:06 -0700 (PDT) Message-ID: <542CDA6A.50406@cs.ucla.edu> Date: Wed, 01 Oct 2014 21:54:02 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.9 (--) > I guess the apropriate thing to do is to use cons_to_signed if the value fits in 32 signed bits, and cons_to_unsigned if it fits in 32 unsigned bits. There's already a function cons_to_x_long that does exactly that, and I'll look into a patch to use it. However, I suspect another bug is involved, as the reported value (0x385f739b4) does not fit in 32-bit unsigned long either, and I have a sneaking suspicion that it's garbage of some sort, i.e., that there's another bug at work here too. From unknown Fri Aug 15 20:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Oct 2014 05:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Eggert Cc: 18586@debbugs.gnu.org Received: via spool by 18586-submit@debbugs.gnu.org id=B18586.14122290189315 (code B ref 18586); Thu, 02 Oct 2014 05:51:01 +0000 Received: (at 18586) by debbugs.gnu.org; 2 Oct 2014 05:50:18 +0000 Received: from localhost ([127.0.0.1]:57973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZZHN-0002QA-9E for submit@debbugs.gnu.org; Thu, 02 Oct 2014 01:50:17 -0400 Received: from mailfe04.swip.net ([212.247.154.97]:54770 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZZHK-0002Q0-Gc for 18586@debbugs.gnu.org; Thu, 02 Oct 2014 01:50:15 -0400 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 535187568; Thu, 02 Oct 2014 07:50:11 +0200 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) From: Jan =?UTF-8?Q?Dj=C3=A4rv?= In-Reply-To: <542CDA6A.50406@cs.ucla.edu> Date: Thu, 2 Oct 2014 07:50:09 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <2C321CF0-E870-418D-A1D4-1CF0B93F781A@swipnet.se> References: <542CDA6A.50406@cs.ucla.edu> X-Mailer: Apple Mail (2.1878.6) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) Hello. 2 okt 2014 kl. 06:54 skrev Paul Eggert : >> I guess the apropriate thing to do is to use cons_to_signed if the = value fits in 32 signed bits, and cons_to_unsigned if it fits in 32 = unsigned bits. >=20 > There's already a function cons_to_x_long that does exactly that, and = I'll look into a patch to use it. However, I suspect another bug is = involved, as the reported value (0x385f739b4) does not fit in 32-bit = unsigned long either, and I have a sneaking suspicion that it's garbage = of some sort, i.e., that there's another bug at work here too. If it does not fit in 32 bit unsigned, then it is indeed garbage. = Unfortunately Time is unsigned long which might be 64 bit, but on the X = protocol level it is 32 bit. So garbage may happen. A watchpoint in gdb on dpyinfo->last_user_time by anyone who can = reproduce this would find it. Jan D. From unknown Fri Aug 15 20:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Oct 2014 02:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Rupert Swarbrick Cc: Ted Zlatanov , Jan =?UTF-8?Q?Dj=C3=A4rv?= , 18586@debbugs.gnu.org Received: via spool by 18586-submit@debbugs.gnu.org id=B18586.141230341429483 (code B ref 18586); Fri, 03 Oct 2014 02:31:02 +0000 Received: (at 18586) by debbugs.gnu.org; 3 Oct 2014 02:30:14 +0000 Received: from localhost ([127.0.0.1]:59618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZsdK-0007fS-2K for submit@debbugs.gnu.org; Thu, 02 Oct 2014 22:30:14 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:49486) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZsdG-0007fJ-JS for 18586@debbugs.gnu.org; Thu, 02 Oct 2014 22:30:11 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 6941A39E8013; Thu, 2 Oct 2014 19:30:09 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zPHKH9YGqqrV; Thu, 2 Oct 2014 19:30:00 -0700 (PDT) Received: from [192.168.1.9] (pool-71-177-17-123.lsanca.dsl-w.verizon.net [71.177.17.123]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id AA1BB39E8012; Thu, 2 Oct 2014 19:30:00 -0700 (PDT) Message-ID: <542E0A28.2010505@cs.ucla.edu> Date: Thu, 02 Oct 2014 19:30:00 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 References: <542CDA6A.50406@cs.ucla.edu> In-Reply-To: <542CDA6A.50406@cs.ucla.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.3 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -3.3 (---) I installed a patch that I hope fixes the bug as trunk bzr 118021. Please give it a try. If you have a chance, also please compile with -DENABLE_CHECKING to try to catch that possible other bug with Time values out of unsigned 32-bit range. And thanks again for reporting the bug. From unknown Fri Aug 15 20:27:52 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Rupert Swarbrick Subject: bug#18586: closed (Re: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame) Message-ID: References: <542E5CB3.4030803@broadcom.com> <542966D3.1050804@broadcom.com> X-Gnu-PR-Message: they-closed 18586 X-Gnu-PR-Package: emacs Reply-To: 18586@debbugs.gnu.org Date: Fri, 03 Oct 2014 08:23:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1412324583-3223-1" This is a multi-part message in MIME format... ------------=_1412324583-3223-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from= x-focus-frame which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 18586@debbugs.gnu.org. --=20 18586: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18586 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1412324583-3223-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 18586-done) by debbugs.gnu.org; 3 Oct 2014 08:22:13 +0000 Received: from localhost ([127.0.0.1]:59783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZy7w-0000ol-UN for submit@debbugs.gnu.org; Fri, 03 Oct 2014 04:22:13 -0400 Received: from mail-gw3-out.broadcom.com ([216.31.210.64]:27082) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZy7t-0000ob-Ut for 18586-done@debbugs.gnu.org; Fri, 03 Oct 2014 04:22:10 -0400 X-IronPort-AV: E=Sophos;i="5.04,645,1406617200"; d="scan'208";a="47193003" Received: from irvexchcas07.broadcom.com (HELO IRVEXCHCAS07.corp.ad.broadcom.com) ([10.9.208.55]) by mail-gw3-out.broadcom.com with ESMTP; 03 Oct 2014 01:24:26 -0700 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS07.corp.ad.broadcom.com (10.9.208.55) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 3 Oct 2014 01:22:07 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.3.174.1; Fri, 3 Oct 2014 01:22:14 -0700 Received: from [10.177.252.209] (unknown [10.177.252.209]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 5F10940FE9; Fri, 3 Oct 2014 01:22:03 -0700 (PDT) Message-ID: <542E5CB3.4030803@broadcom.com> Date: Fri, 3 Oct 2014 09:22:11 +0100 From: Rupert Swarbrick User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Paul Eggert Subject: Re: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame References: <542CDA6A.50406@cs.ucla.edu> <542E0A28.2010505@cs.ucla.edu> In-Reply-To: <542E0A28.2010505@cs.ucla.edu> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 18586-done Cc: 18586-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -3.3 (---) On 03/10/2014 03:30, Paul Eggert wrote: > I installed a patch that I hope fixes the bug as trunk bzr 118021. Please give > it a try. If you have a chance, also please compile with -DENABLE_CHECKING to > try to catch that possible other bug with Time values out of unsigned 32-bit > range. And thanks again for reporting the bug. That looks like it's fixed the bug. I tried with and without ENABLE_CHECKING (and stared at command lines to make sure I was passing the define in correctly). Thanks for fixing it. Assuming I've remembered how to use debbugs, this email will also close the report. If not, feel free to do so :-) Rupert ------------=_1412324583-3223-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Sep 2014 20:35:39 +0000 Received: from localhost ([127.0.0.1]:55599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYhfW-00084g-7p for submit@debbugs.gnu.org; Mon, 29 Sep 2014 16:35:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41944) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYbZ5-000744-Dd for submit@debbugs.gnu.org; Mon, 29 Sep 2014 10:04:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYbYz-0003Mb-2Z for submit@debbugs.gnu.org; Mon, 29 Sep 2014 10:04:35 -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.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYbYy-0003LU-VV for submit@debbugs.gnu.org; Mon, 29 Sep 2014 10:04:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYbYo-0002yu-Lk for bug-gnu-emacs@gnu.org; Mon, 29 Sep 2014 10:04:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYbYj-0003KI-D2 for bug-gnu-emacs@gnu.org; Mon, 29 Sep 2014 10:04:18 -0400 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]:40158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYbYj-0003IU-3T for bug-gnu-emacs@gnu.org; Mon, 29 Sep 2014 10:04:13 -0400 X-IronPort-AV: E=Sophos;i="5.04,620,1406617200"; d="scan'208";a="46979193" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw2-out.broadcom.com with ESMTP; 29 Sep 2014 07:23:21 -0700 Received: from IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 29 Sep 2014 07:04:06 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) with Microsoft SMTP Server id 14.3.174.1; Mon, 29 Sep 2014 07:04:09 -0700 Received: from [10.177.72.81] (unknown [10.177.72.81]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 5D4FB41015 for ; Mon, 29 Sep 2014 07:03:57 -0700 (PDT) Message-ID: <542966D3.1050804@broadcom.com> Date: Mon, 29 Sep 2014 15:04:03 +0100 From: Rupert Swarbrick User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Subject: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 29 Sep 2014 16:35:31 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (-----) With the code at the head of the development tree at the moment, running the code (x-focus-frame (selected-frame)) yields the error Not an in-range integer, float, or cons of integers (this comes from src/data.c, in case that's of interest). Bisection tracks the change down to the patch with git sha ID c7fcb3f8, which was committed on 7/9/2014, modifying xselect.c. Running gcc -E, I see that on this system the constant X_LONG_MAX comes out as 0x7fffffff (which is 2^31-1). LONG_MAX, on the other hand, comes out as 9223372036854775807L (which is 2^63-1, I think). This bug appears when Emacsclient tries to raise a frame in which it opened a file. This would be ignorable, but the error gets spotted by an emacsclient invocation when writing commit messages with magit, and the whole commit falls over. (I'm mostly writing this paragraph for anyone searching with Google and wondering whether this is the bug they hit) In GNU Emacs 24.4.50.6 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars) of 2014-09-29 on xl-cam-rhel6test Windowing system distributor `The X.Org Foundation', version 11.0.11300000 System Description: Red Hat Enterprise Linux Server release 6.4 (Santiago) Configured using: `configure --with-xml2 --without-sound --without-rsvg --without-imagemagick --with-x-toolkit=lucid' Configured features: XPM JPEG TIFF GIF PNG GPM DBUS GCONF NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 ZLIB Important settings: value of $LC_COLLATE: C value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Messages Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t Recent input: C-n M-x r e p o r t C-x o C-x b * C-x b C-x o C-n C-x o M-x M-p Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. eval: Not an in-range integer, float, or cons of integers End of buffer byte-code: Command attempted to use minibuffer while in minibuffer End of buffer Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 76621 5099) (symbols 48 17849 0) (miscs 40 48 127) (strings 32 11789 3804) (string-bytes 1 308287) (vectors 16 9947) (vector-slots 8 388130 17256) (floats 8 72 143) (intervals 56 203 8) (buffers 976 11) (heap 1024 37250 627)) ------------=_1412324583-3223-1-- From unknown Fri Aug 15 20:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18586: 24.4.50; "Not an in-range integer, float, or cons of integers" from x-focus-frame Resent-From: Ted Zlatanov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Oct 2014 21:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Eggert Cc: Rupert Swarbrick , 18586@debbugs.gnu.org Received: via spool by 18586-submit@debbugs.gnu.org id=B18586.141245802515702 (code B ref 18586); Sat, 04 Oct 2014 21:28:02 +0000 Received: (at 18586) by debbugs.gnu.org; 4 Oct 2014 21:27:05 +0000 Received: from localhost ([127.0.0.1]:33276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaWr2-00045C-O5 for submit@debbugs.gnu.org; Sat, 04 Oct 2014 17:27:04 -0400 Received: from mail-qa0-f44.google.com ([209.85.216.44]:44653) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaWqz-00044m-Ta for 18586@debbugs.gnu.org; Sat, 04 Oct 2014 17:27:03 -0400 Received: by mail-qa0-f44.google.com with SMTP id x12so2208735qac.31 for <18586@debbugs.gnu.org>; Sat, 04 Oct 2014 14:27:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=YWLiznFUJpmAOOd3mwn8qIx+/UONlod1+oQluYOUc6g=; b=JCH5h8abCND9N5juoYVvUsyzQP1icgGFwFPL/LL58aJy3fZKDZ3yxmd5e23aAd4goD 3ZFEWxIpW1EP7oxO13Tl9cRvlZaW1yiSJnKFKRig3hxr/7wkeQWs38OE0f3mSDA4lPkX 0WenJwa0+yjTMh1gblwuX2pzr8sODdmpHKawo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=YWLiznFUJpmAOOd3mwn8qIx+/UONlod1+oQluYOUc6g=; b=ME33LVSUcn4KiqIHx3CEseZEpwmffW5ZYQeYulLbo8OaXwDcOM8TKZcFPaPS0iU2Gq ibAk6oWlSR3P3oTidYfkUNtruOIw8mK0a53f0FYzwcuPgt8IVHz75bjJUxD95yCjPcCL LJB03ACEbNgP8+MdJgNZhq+XKg0r9hc1ZtCV10E3zfzcO4+QB+0NVSYi/DgFX+79DKZB A0eDaIHY0lIzf014Bwh+16omqcj2VCM20VAutJE1k2+JFaP1GC6NA9Io7at9UUdFt9Uz 94v54VAFLLihk+MNRI9IOE3nUaB00wEoci4sg5nMg0mW1hJV72ZZuYn23uxkf2j1KHBf JoIg== X-Gm-Message-State: ALoCoQk7goX22vI9W/HVKkxoTVlUeaya3W5swlZMmo0RvdrcZGMyiwq7A658GXsKuqoINQ7hLhrM X-Received: by 10.224.40.193 with SMTP id l1mr18758379qae.14.1412458021409; Sat, 04 Oct 2014 14:27:01 -0700 (PDT) Received: from flea (c-98-229-61-72.hsd1.ma.comcast.net. [98.229.61.72]) by mx.google.com with ESMTPSA id j48sm8916195qgd.36.2014.10.04.14.27.00 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 04 Oct 2014 14:27:00 -0700 (PDT) From: Ted Zlatanov Organization: =?UTF-8?Q?=D0=A2=D0=B5=D0=BE=D0=B4=D0=BE=D1=80_?= =?UTF-8?Q?=D0=97=D0=BB=D0=B0=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= @ Cienfuegos References: <542CDA6A.50406@cs.ucla.edu> <542E0A28.2010505@cs.ucla.edu> X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Sat, 04 Oct 2014 17:27:46 -0400 In-Reply-To: <542E0A28.2010505@cs.ucla.edu> (Paul Eggert's message of "Thu, 02 Oct 2014 19:30:00 -0700") Message-ID: <87y4svikz1.fsf@lifelogs.com> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) On Thu, 02 Oct 2014 19:30:00 -0700 Paul Eggert wrote: PE> I installed a patch that I hope fixes the bug as trunk bzr 118021. I can confirm that the bug is fixed for me. Thank you Ted