Crashes switching to super/subscript mode when trailing whitespace in display

Bug #1317725 reported by errors.ubuntu.com bug bridge on 2014-05-09
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-calculator (Ubuntu)
Medium
Robert Ancell
Trusty
Medium
Robert Ancell

Bug Description

[Impact]
Calculator can crash when using super/subscript buttons. Detected by errors.ubuntu.com https://errors.ubuntu.com/problem/b7cada446385c6bdc9749be0c020ad3a365e7e8d

[Test Case]
1. Open Calculator
2. Change to advanced mode (Mode>Advanced menu)
3. Enter "1 " (note the trailing whitespace)
4. Press the subscript button "ā†“n"
Expected result:
Calculator enters subscript mode
Observed result:
Calculator crashes

[Regression potential]
Low, the fix is in code only used by the super/subscript buttons

Changed in gnome-calculator (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in gnome-calculator (Ubuntu Trusty):
status: New → Triaged
importance: Undecided → Medium
description: updated
Changed in gnome-calculator (Ubuntu Trusty):
assignee: nobody → Robert Ancell (robert-ancell)
Changed in gnome-calculator (Ubuntu):
assignee: nobody → Robert Ancell (robert-ancell)
Changed in gnome-calculator (Ubuntu Trusty):
status: Triaged → In Progress
Changed in gnome-calculator (Ubuntu):
status: Triaged → In Progress
description: updated
summary: - /usr/bin/gnome-
- calculator:11:gtk_text_iter_make_real:gtk_text_iter_backward_chars:gtk_text_iter_backward_char:math_buttons_remove_trailing_spaces:math_buttons_set_subscript_cb
+ Crashes switching to super/subscript mode when trailing whitespace in
+ display
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-calculator - 1:3.10.2-0ubuntu2

---------------
gnome-calculator (1:3.10.2-0ubuntu2) utopic; urgency=medium

  * debian/patches/super_subscript_crash.patch:
    - Fix crash switching to super/subscript mode (LP: #1317725)
 -- Robert Ancell <email address hidden> Fri, 09 May 2014 15:07:11 +1200

Changed in gnome-calculator (Ubuntu):
status: In Progress → Fix Released

Hello errors.ubuntu.com, or anyone else affected,

Accepted gnome-calculator into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/gnome-calculator/1:3.10.2-0ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in gnome-calculator (Ubuntu Trusty):
status: In Progress → Fix Committed
tags: added: verification-needed
Robert Ancell (robert-ancell) wrote :

Tested in a VM running trusty. Bug occurs in 1:3.10.2-0ubuntu1, not in 1:3.10.2-0ubuntu1.1. Fixed.

tags: added: verification-done
removed: verification-needed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-calculator - 1:3.10.2-0ubuntu1.1

---------------
gnome-calculator (1:3.10.2-0ubuntu1.1) trusty; urgency=medium

  * debian/patches/super_subscript_crash.patch:
    - Fix crash switching to super/subscript mode (LP: #1317725)
 -- Robert Ancell <email address hidden> Fri, 09 May 2014 15:07:11 +1200

Changed in gnome-calculator (Ubuntu Trusty):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for gnome-calculator has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers