Crashes when left in background after a couple of minutes
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| endeavour (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Bug Description
[ Impact ]
Endeavour crashes when left idling in the background with the following message: SIGFPE: integer divide by zero.
My patch fixes the divide by zero crash by checking if n_messages is greater zero before performing the division.
[ Test Plan ]
1. Start Endeavour
2. Let it idle in the background (for a possibly long time)
Endeavour should not crashes.
[ Where problems could occur ]
Since Endeavour crashed with an n_messages value of 0 before, it might be possible that show_message() can not handle 0 in some cases. The remainder in the calculation could always have been 0, so I assume this case is working.
[ Other Info ]
Upstream issue: https:/
Related branches
- Simon Quigley (community): Needs Fixing
- git-ubuntu import: Pending requested
-
Diff: 53 lines (+34/-0)3 files modifieddebian/changelog (+6/-0)
debian/patches/omni-area-check-for-n_messages-greater-zero-to-avoid.patch (+27/-0)
debian/patches/series (+1/-0)

Here is a package branch with the patch: https:/ /git.launchpad. net/~philippun/ ubuntu/ +source/ endeavour/ log/?h= patch-for- crash
I built the package from this branch and installed it. Everything seems to be working fine, tested it for several days now and it does not crash anymore.