bitwise operation with value 0 fails with "Invalid bitwise operation"

Bug #496235 reported by Eric Bertrand
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gcalctool (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: gcalctool

In programming mode:

Bitwise operations AND/OR/XOR all fail with "Invalid bitwise operation" if one of the operands is 0

XNOR exhibits the following behavior using decimal and 16 bit operand:
1 XNOR 0 returns 65534
0 XNOR 1 returns "Invalid bitwise operation"

This appears to be the case regardless of base used or operand size

Haven't tested the NOT operator

ProblemType: Bug
Architecture: i386
Date: Sun Dec 13 11:17:27 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/gcalctool
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelModules: nvidia
Package: gcalctool 5.28.1-0ubuntu1
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-16.53-genusername
SourcePackage: gcalctool
Uname: Linux 2.6.31-16-generic i686
XsessionErrors:
 (gnome-settings-daemon:1912): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:2001): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:2025): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (gnome-panel:2000): Gdk-WARNING **: /build/buildd/gtk+2.0-2.18.3/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window
 (gnome-panel:2000): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -4 and height 24

Revision history for this message
Eric Bertrand (ebertrand) wrote :
Changed in gcalctool (Ubuntu):
importance: Undecided → Low
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Fixed in 5.29.91 (Ubuntu 10.04 Lucid). Thanks for your bug report

Changed in gcalctool (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcalctool - 5.29.91-0ubuntu1

---------------
gcalctool (5.29.91-0ubuntu1) lucid; urgency=low

  * New upstream release:
    * Fix bug where backspace deletes all input in locales with no thousands
      separator (LP: #521038)
    * Make boolean operations work with zero, e.g. "0 XOR 5" (LP: #496235)
    * Don't override space and return when display area not selected
    * Make window non-resizable (LP: #486359) (LP: #501680)
    * Change boolean functions to uppercase (xor -> XOR)
    * Documentation rewritten (LP: #521396)
    * Modernised build system
  * debian/control:
    - Build-depend on gnome-common
    - Remove build-depend on scrollkeeper
  * debian/rules:
    - Run autoreconf on build
    - Don't need to clean /var anymore (no scrollkeeper)
    - Don't need to disable scrollkeeper on build
    - Don't need to delete libparser.a anymore
  * debian/install:
  * debian/links:
  * debian/rules:
    - Install gcalctool.xpm from debian/install
    - Make gnome-calculator man page link in debian/links
  * debian/patches/01_lpi.patch:
    - Updated
  * debian/patches/99_autoconf.patch:
    - Not required, autoconf now run from debian/rules
 -- Robert Ancell <email address hidden> Mon, 22 Feb 2010 11:22:07 +1100

Changed in gcalctool (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.