crashes with segmentation fault on `sin(1/2pi)`

Bug #1412890 reported by SuperScript
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Calculator
Fix Released
High
Unassigned

Bug Description

I have no clue what causes this crash:

`sin(1/4pi)` => crash with segfault
`sin(0.25pi)` => 0.70711
`1/4pi` => 0.7854

Somehow when I try to get the sin of a fraction times pi, pantheon-calculator dies.

Related branches

Marvin Beckers (embik)
Changed in pantheon-calculator:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Ellie (magnonellie) wrote :

Fooled around a little bit and this seems to have something to do with having either multiply or divide in parentheses with a number and pi. So, in other words, this is basically how you crash it: (<* or /><number>π) Don't know if that's of any help, but now it's there anyway.

Marvin Beckers (embik)
Changed in pantheon-calculator:
status: Triaged → In Progress
Marvin Beckers (embik)
Changed in pantheon-calculator:
importance: Medium → High
Marvin Beckers (embik)
Changed in pantheon-calculator:
status: In Progress → Fix Committed
Changed in pantheon-calculator:
milestone: none → freya-beta2
Changed in pantheon-calculator:
status: Fix Committed → Fix Released
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.