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

Bug #1317725 reported by errors.ubuntu.com bug bridge
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-calculator (Ubuntu)
Fix Released
Medium
Robert Ancell
Trusty
Fix Released
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
Revision history for this message
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
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

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
Revision history for this message
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
Revision history for this message
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
Revision history for this message
Colin Watson (cjwatson) wrote : Update 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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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