Segfault when backgrounding process or on system suspend/resume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
beanstalkd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
beanstalkd 1.9 segfaults whenever it is run in the foreground and backgrounded with CTRL-Z then returned to the foreground with fg. It also segfaults when run as a daemon and the system resumes from being suspended.
The problem is with beanstalkd, not with Ubuntu. This bug was introduced here: https:/
I've submitted a patch for this issue, but master hasn't been updated in ~6 months, so I wouldn't count on it getting merged soon. The patch is very minimal and can be found here: https:/
Beyond the example cases I mentioned above, the truth of the bug is that beanstalkd will crash anytime epoll_wait returns EINTR to beanstalkd. I don't know a lot about epoll_wait, so I can't say when else that would be an issue.
I've tested that this issue exists when beanstalkd 1.9 is built on Precise and the issue exists with the package available with Trusty. The package version of beanstalkd on Precise does not segfault.
I don't know if it's something particular to the Trusty build, but beanstalkd 1.9 claims to be built with debug symbols, however when I try to open the core dump with gdb, it says that no debugging symbols were found. As such, I've not included a core. If it would be helpful for me to provide a core dump and a beanstalkd bin with debug symbols, let me know.
The attachment "Not sure what correct patch format is. This is a diff that fixes the issue." seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]