← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1622379] Re: sin(0)/sin(0) crash the the calculator

 

This issue was fixed in Yakkety with the upload of gnome-calculator
(1:3.22.0-1ubuntu1).

gnome-calculator (1:3.22.0-1ubuntu1) yakkety; urgency=medium

  * Merge with Debian. Remaining changes:
    - Add epoch
    - debian/patches/git_no_headerbars_in_unity.patch:
      + Don't use HeaderBars in Unity

gnome-calculator (3.22.0-1) unstable; urgency=medium

** Description changed:

+ [Impact]
+ 
+ It is possible to cause gnome-calcualtor segfault when elements of
+ division to zero have null assigned tokens. For example, the following
+ calculation will trigger a segfault:
+ 
+ sin(0)/sin(0)
+ 
+ [Test Case]
+ 
+ Open a terminal with CTRL+ALT+t and launch 'gnome-calculator'. Type the
+ following into the equation entry area 'sin(0)/sin(0)' and press enter,
+ gnome-calculator will segfault.
+ 
+ When the patched 'gnome-calculator' package is installed performing the
+ same calculation described above will not cause 'gnome-calculator' to
+ crash and instead the following will be displayed: Division by zero is
+ undefined
+ 
+ [Regression Potential]
+ 
+ None expected. The applied patch is taken directly from the following
+ upstream commit:
+ 
+   * https://git.gnome.org/browse/gnome-
+ calculator/commit/?id=647eb687821fd74764a55767bf1e34f68f5df940
+ 
+ gnome-calculator packages have been built in a PPA and tested.
+ 
+ [Other Info]
+  
  dw3@linux:~$ gnome-calculator
  
  (gnome-calculator:29011): GLib-CRITICAL **: g_str_has_prefix: assertion
  'str != NULL' failed
  
  (gnome-calculator:29011): GLib-CRITICAL **: g_str_has_prefix: assertion 'str != NULL' failed
  Segmentation fault (core dumped)
  dw3@linux:~$
  
  sin(0)/sin(0) = NaN, but it crash the calculator

** Changed in: gnome-calculator (Ubuntu)
       Status: Fix Committed => Fix Released

** Summary changed:

- sin(0)/sin(0) crash the the calculator
+ SRU: sin(0)/sin(0) crash the the calculator

** Changed in: gnome-calculator (Ubuntu Xenial)
   Importance: Undecided => High

** Description changed:

  [Impact]
  
  It is possible to cause gnome-calcualtor segfault when elements of
  division to zero have null assigned tokens. For example, the following
  calculation will trigger a segfault:
  
  sin(0)/sin(0)
  
  [Test Case]
  
  Open a terminal with CTRL+ALT+t and launch 'gnome-calculator'. Type the
  following into the equation entry area 'sin(0)/sin(0)' and press enter,
  gnome-calculator will segfault.
  
  When the patched 'gnome-calculator' package is installed performing the
  same calculation described above will not cause 'gnome-calculator' to
  crash and instead the following will be displayed: Division by zero is
  undefined
  
+ A debdiff for Xenial is attached in comment #2:
+ 
+   * https://bugs.launchpad.net/ubuntu/+source/gnome-
+ calculator/+bug/1622379/comments/2
+ 
  [Regression Potential]
  
  None expected. The applied patch is taken directly from the following
  upstream commit:
  
-   * https://git.gnome.org/browse/gnome-
+   * https://git.gnome.org/browse/gnome-
  calculator/commit/?id=647eb687821fd74764a55767bf1e34f68f5df940
  
  gnome-calculator packages have been built in a PPA and tested.
  
  [Other Info]
-  
+ 
  dw3@linux:~$ gnome-calculator
  
  (gnome-calculator:29011): GLib-CRITICAL **: g_str_has_prefix: assertion
  'str != NULL' failed
  
  (gnome-calculator:29011): GLib-CRITICAL **: g_str_has_prefix: assertion 'str != NULL' failed
  Segmentation fault (core dumped)
  dw3@linux:~$
  
  sin(0)/sin(0) = NaN, but it crash the calculator

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1622379

Title:
  SRU: sin(0)/sin(0) crash the the calculator

Status in GNOME Calculator:
  Fix Released
Status in gnome-calculator package in Ubuntu:
  Fix Released
Status in gnome-calculator source package in Xenial:
  In Progress

Bug description:
  [Impact]

  It is possible to cause gnome-calcualtor segfault when elements of
  division to zero have null assigned tokens. For example, the following
  calculation will trigger a segfault:

  sin(0)/sin(0)

  [Test Case]

  Open a terminal with CTRL+ALT+t and launch 'gnome-calculator'. Type
  the following into the equation entry area 'sin(0)/sin(0)' and press
  enter, gnome-calculator will segfault.

  When the patched 'gnome-calculator' package is installed performing
  the same calculation described above will not cause 'gnome-calculator'
  to crash and instead the following will be displayed: Division by zero
  is undefined

  A debdiff for Xenial is attached in comment #2:

    * https://bugs.launchpad.net/ubuntu/+source/gnome-
  calculator/+bug/1622379/comments/2

  [Regression Potential]

  None expected. The applied patch is taken directly from the following
  upstream commit:

    * https://git.gnome.org/browse/gnome-
  calculator/commit/?id=647eb687821fd74764a55767bf1e34f68f5df940

  gnome-calculator packages have been built in a PPA and tested.

  [Other Info]

  dw3@linux:~$ gnome-calculator

  (gnome-calculator:29011): GLib-CRITICAL **: g_str_has_prefix:
  assertion 'str != NULL' failed

  (gnome-calculator:29011): GLib-CRITICAL **: g_str_has_prefix: assertion 'str != NULL' failed
  Segmentation fault (core dumped)
  dw3@linux:~$

  sin(0)/sin(0) = NaN, but it crash the calculator

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-calculator/+bug/1622379/+subscriptions