Crashes when left in background after a couple of minutes

Bug #2089604 reported by Philipp
12
This bug affects 2 people
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://gitlab.gnome.org/World/Endeavour/-/issues/496

Related branches

Revision history for this message
Philipp (philippun) wrote :

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.

Revision history for this message
Philipp (philippun) wrote :

Updated description with SRU.

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in endeavour (Ubuntu):
status: New → Confirmed
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.