From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs Subject: bug#6069: 23.1.96; sxhash, big uints and overflow-error in custom-file Date: Fri, 30 Apr 2010 19:02:53 -0400 Message-ID: <5A5EF5AB-3423-4AB4-A315-FE0E167CCD71@cmu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272669961 2680 80.91.229.12 (30 Apr 2010 23:26:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 30 Apr 2010 23:26:01 +0000 (UTC) To: 6069@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 01 01:25:59 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O7zao-0006eL-E2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 May 2010 01:25:59 +0200 Original-Received: from localhost ([127.0.0.1]:44779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7zan-00016F-Cc for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Apr 2010 19:25:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O7zai-00014r-SP for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2010 19:25:52 -0400 Original-Received: from [140.186.70.92] (port=57350 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7zag-00012w-Vf for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2010 19:25:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O7zaf-00064d-Jy for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2010 19:25:50 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39393) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7zaf-00064X-GF for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2010 19:25:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O7zKP-0008Jn-PS; Fri, 30 Apr 2010 19:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Reitter Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Apr 2010 23:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Bug-Gnu-Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.127266890431964 (code B ref -1); Fri, 30 Apr 2010 23:09:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Apr 2010 23:08:24 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7zJn-0008JV-Cm for submit@debbugs.gnu.org; Fri, 30 Apr 2010 19:08:24 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7zEh-0008HB-9b for submit@debbugs.gnu.org; Fri, 30 Apr 2010 19:03:08 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:42391) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O7zEd-0003op-7j for submit@debbugs.gnu.org; Fri, 30 Apr 2010 19:03:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O7zEc-0007h8-Lm for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2010 19:03:02 -0400 Original-Received: from [140.186.70.92] (port=49935 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7zEa-0007f9-Nv for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2010 19:03:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O7zEX-0002AK-SZ for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2010 19:03:00 -0400 Original-Received: from smtp.andrew.cmu.edu ([128.2.11.61]:59984) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7zEX-0002A0-O7 for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2010 19:02:57 -0400 Original-Received: from scarlett.psy.cmu.edu (SCARLETT.PSY.CMU.EDU [128.2.249.106]) (user=reitter mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.14.3/8.14.3) with ESMTP id o3UN2rXC010749 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Fri, 30 Apr 2010 19:02:54 -0400 X-Mailer: Apple Mail (2.1078) X-PMX-Version: 5.5.9.388399, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2010.4.30.223914 X-SMTP-Spam-Clean: 19% ( RATWARE_SIGNATURE_3 2, SUPERLONG_LINE 0.05, FROM_EDU_TLD 0, __C230066_P5 0, __CP_MEDIA_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FRAUD_MONEY 0, __FRAUD_MONEY_VALUE 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MIME_VERSION_APPLEMAIL 0, __MSGID_APPLEMAIL 0, __PHISH_SPEAR_PASSWORD_1 0, __PHISH_SPEAR_STRUCTURE_1 0, __RATWARE_SIGNATURE_3 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __URI_NO_MAILTO 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS , __USER_AGENT_APPLEMAIL 0, __X_MAILER_APPLEMAIL 0) X-SMTP-Spam-Score: 19% X-Scanned-By: MIMEDefang 2.60 on 128.2.11.61 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Fri, 30 Apr 2010 19:08:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 30 Apr 2010 19:09:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36614 Archived-At: Not sure if this is an error of Emacs, or if the fault is mine: - `sxhash' of some object produced a 32-bit unsigned integer, which was = represented just fine in Lisp. - I stored it in a customization variable, which was subsequently saved = to my custom-file. - When reading back the file, I got an overflow error, as in (read-from-string "2475893479") --> overflow error Due to the nature of hashes, it appears unreasonable hard for me to make = a test case. But looking at the code, sxhash is designed to produce an = unsigned int and make a (signed?) Lisp integer from it. INTMASK is 0xffffffff at least on my system. Artihmetic operations, OTOH convert big ints to floats in = arith_driver(): (let ((bigint (+ 1475893479 1000000000))) (floatp bigint)) (Would sxhash in that case produce a negative value if its result is = printed? I don't know. Somewhere along the way to `custom-save-variables', some info about the = meaning of bit #31 gets lost, and Emacs produces string representation = that can't be read.) In GNU Emacs 23.1.96.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2010-04-30 on braeburn.aquamacs.org - Aquamacs Distribution = 2.0preview6 Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--with-ns' '--without-x' 'CFLAGS=3D-arch = i386 -arch ppc' 'LDFLAGS=3D-arch i386 -arch ppc'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Text Minor modes in effect: which-function-mode: t savehist-mode: t smart-frame-positioning-mode: t aquamacs-autoface-mode: t recentf-mode: t osx-key-mode: t tabbar-mwheel-mode: t tabbar-mode: t show-paren-mode: t delete-selection-mode: t pc-selection-mode: t cua-mode: t tooltip-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-encryption-mode: t auto-compression-mode: t smart-spacing-mode: t column-number-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t Recent input: E G A T I V E SPC V B A L U =20 A L U E ? =20 =E2=87=A7D O E SPC S =20 S SPC T H E R SPC ` P 0 R I N =20 =20 SPC =20 ^H V ^G ^H F=20 C U S T O M I - S A V E - V =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =E2=8C=98C = =20 =E2=87=A7S=20 O M E W H E R E SPC A L O N M G =20 G SPC T H E SPC W A Y SPC T O SPC ` =E2=8C=98V ' SPC S =20 M , SPC S O M E T =20 T H=20 I S SPC G E T S SPC L O S T SPC , SPC A=20 N D SPC I T SPC P R O D U C E S SPC A SPC C U S T O=20 =20 S T R I N G SPC R E P R E S=20 E N T A T I O N SPC T H A T SPC C A N ' T SPC B E SPC=20 R E A D SPC B . =20 =E2=8C=98A =E2=8C=98C = =20 =20 Recent messages: Making completion list... Type "q" to quit. if: Search failed: "arith_d" Mark set Undo... Undo! Mark set Quit uncompressing cus-edit.el.gz...done Unable to load color "dark cyan" Load-path shadows: /Users/dr/Library/Preferences/Aquamacs Emacs/Recent Files hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/Recent = Files /Users/dr/Library/Preferences/Aquamacs Emacs/Preferences hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/Preferences /Users/dr/Library/Preferences/Aquamacs Emacs/places hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/places /Users/dr/Library/Preferences/Aquamacs Emacs/minibuffer-history hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs = Emacs2/minibuffer-history /Users/dr/Library/Preferences/Aquamacs Emacs/frame-positions hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs = Emacs2/frame-positions /Users/dr/Library/Preferences/Aquamacs Emacs/customizations hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs = Emacs2/customizations /Users/dr/Library/Application Support/Aquamacs Emacs/JDEE/site-start = hides /Library/Application Support/Aquamacs Emacs/SLIME/site-start /Users/dr/Library/Application Support/Aquamacs Emacs/JDEE/site-start = hides /Users/dr/Downloads/Aquamacs = 2.app/Contents/Resources/lisp/aquamacs/site-start Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils emacsbug jka-compr multi-isearch vc-git cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs find-func pp which-func imenu slime-autoloads load-emacs-plugins aquamacs-mode-defaults auctex-config server tex-site smart-dnd aquamacs-aux savehist mouse-sel one-buffer-one-frame smart-frame-positioning drews_init color-theme-autoloads saveplace visual-line aquamacs-bug aquamacs-autoface-mode aquamacs-editing sendmail recentf tree-widget cus-edit osxkeys emulate-mac-keyboard-mode frame-cmds strings misc-fns thingatpt+ thingatpt frame-fns avoid aquamacs-mac-fontsets fit-frame aquamacs-frame-setup aquamacs-tabbar tabbar-window cl cl-19 tabbar easy-mmode cus-start cus-load load-emacs-pre-plugins aquamacs-site-start cocoa-compatibility filladapt aquamacs-redo check-for-updates aquamacs-menu osx_defaults aquamacs-tool-bar aquamacs mac-extra-functions aquamacs-tools aquamacs-macros parse-time timezone time-date paren delsel pc-select cua-base wid-edit regexp-opt advice advice-preload byte-opt bytecomp byte-compile debug help-fns help-mode view image-file disp-table tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) Command line: (/Users/dr/Downloads/Aquamacs = 2.app/Contents/MacOS/Aquamacs) PATH: = /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/b= in:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/Current/b= in:/opt/local/lib/postgresql82/bin:/opt/local/bin:/opt/local/sbin:/usr/bin= :/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X= 11/bin:/Users/dr/Applications:/Users/dr/Applications/bin:/Users/dr/Project= s/openccg/bin:/usr/texbin/powerpc-apple-darwin-current:/usr/local/git/bin:= /Developer/Platforms/iPhoneFOSS.platform/Developer/bin:/usr/bin:/bin:/usr/= sbin:/sbin:/usr/texbin:/usr/local/texlive/2009/bin exec-path: (/opt/local/bin /opt/local/sbin /opt/local/bin = /opt/local/sbin /opt/local/bin /opt/local/sbin = /Library/Frameworks/Python.framework/Versions/Current/bin = /opt/local/lib/postgresql82/bin /opt/local/bin /opt/local/sbin /usr/bin = /bin /usr/sbin /sbin /usr/local/bin /usr/local/git/bin /usr/texbin = /usr/X11/bin /Users/dr/Applications /Users/dr/Applications/bin = /Users/dr/Projects/openccg/bin /usr/texbin/powerpc-apple-darwin-current = /usr/local/git/bin = /Developer/Platforms/iPhoneFOSS.platform/Developer/bin /usr/bin /bin = /usr/sbin /sbin /Users/dr/Downloads/Aquamacs 2.app/Contents/MacOS/bin = /usr/local/texlive/2009/bin)=