crashes with segmentation fault on `sin(1/2pi)`
Bug #1412890 reported by
SuperScript
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
lp://staging/~embik/pantheon-calculator/bug-1412890
- Marvin Beckers (community): Approve
-
Diff: 129 lines (+34/-19)2 files modifiedsrc/Core/Evaluation.vala (+28/-17)
src/Core/Scanner.vala (+6/-2)
Changed in pantheon-calculator: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in pantheon-calculator: | |
status: | Triaged → In Progress |
Changed in pantheon-calculator: | |
importance: | Medium → High |
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.
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.