bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7852: 23.1; Calc binary xor truncating results


From: Jan Seeger
Subject: bug#7852: 23.1; Calc binary xor truncating results
Date: Mon, 17 Jan 2011 13:55:20 +0100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Goj┼Ź) APEL/10.8 Emacs/23.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Run the calculator with M-x calc, and enter two large numbers. 
(2#10001110000110100010000100010011010010111000011100010110100100010100001001011110000101100111000010101010001000110110011110110
 and 
10001110000110100010000100010011010010111000011000010101101100000000000001011010000100100011011010000110100001000110110110101
 for example). Then, calculate the binary xor of the two numbers with b x. You 
will see that the result is truncated to a 32-bit number (32 numbers in binary, 
8 numbers in hex).

Expected behavior: The calculator should calculate the correct xor of the two 
numbers which is a bit larger than 2^80.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.1/etc/DEBUG for instructions.


In GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-03-29 on yellow, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10900000
configured using `configure  '--build=x86_64-linux-gnu' 
'--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' 
'--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' 
'--mandir=/usr/share/man' '--with-pop=yes' 
'--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim'
 '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 
'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN 
-g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''

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: de_DE.utf8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Calculator

Minor modes in effect:
  show-paren-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  diff-auto-refine-mode: t
  erc-log-mode: t
  erc-list-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-networks-mode: t
  erc-pcomplete-mode: t
  erc-track-mode: t
  erc-match-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-netsplit-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  shell-dirtrack-mode: t
  global-highlight-changes-mode: t
  highlight-changes-visible-mode: t
  desktop-save-mode: t
  auto-insert-mode: t
  display-time-mode: t
  display-battery-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t

Recent input:
<f10> N N <return> <return> n n N n n o s p <tab> a 
m <return> x q P <return> <return> q C-x b : C-g M-x 
c a l c <return> <help-echo> <down-mouse-2> <mouse-2> 
<backspace> 1 6 # <help-echo> <help-echo> <down-mouse-2> 
<mouse-2> <down-mouse-2> <mouse-2> <down-mouse-2> <mouse-2> 
<double-down-mouse-2> <double-mouse-2> <triple-down-mouse-2> 
<triple-mouse-2> <help-echo> <help-echo> <down-mouse-2> 
<mouse-2> <help-echo> <return> <tab> <backspace> <tab> 
<backspace> <tab> <tab> <tab> <backspace> <tab> <backspace> 
<tab> <backspace> <help-echo> 1 5 <backspace> 6 $ <backspace> 
<backspace> <return> <backspace> 1 6 # <help-echo> 
<down-mouse-2> <mouse-2> <return> b x U x b C-g b x 
U d r 1 6 <return> d r 2 <return> d r 1 0 <return> 
d r 2 <return> b x d r 1 0 <return> U b x d r 2 <return> 
<help-echo> <down-mouse-1> <mouse-1> <double-down-mouse-1> 
<double-mouse-1> <help-echo> C-p C-g C-x 0 C-x b r 
a n d o m <return> C-x 1 C-p C-p M-x c a l c <return> 
M-> 1 6 # <S-insert> <return> 1 6 # <backspace> # <S-insert> 
<return> b x B U ? B U 2 <return> B U <tab> B U <tab> 
C-h f c a l c - l o <tab> g <return> q i C-s l o g 
a r i t h m C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s 
C-s C-n C-n C-n <S-down> d r 1 0 <return> B U U U U 
U b x d r 2 <return> U b x M-x e m a c s b u g <return> 
C-a C-k r e p o t r <tab> <backspace> <backspace> r 
<tab> e m <tab> <return>

Recent messages:
Making completion list...
Type "q" to delete this window.
Mark saved where search started
Number radix is 10
Working...
Undo! [5 times]
Working...
Number radix is 2
Undo!
Working...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]