Public bug reported: 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://github.com/kr/beanstalkd/commit/e284badf079db519db8fdd2e86959f2ee17240be 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://github.com/kr/beanstalkd/pull/221. I've also attached a diff to this bug report. 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. ** Affects: beanstalkd (Ubuntu) Importance: Undecided Status: New ** Tags: patch ** Patch added: "Not sure what correct patch format is. This is a diff that fixes the issue." https://bugs.launchpad.net/bugs/1263808/+attachment/3934869/+files/epoll_wait_segfault_fix.diff -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to beanstalkd in Ubuntu. https://bugs.launchpad.net/bugs/1263808 Title: Segfault when backgrounding process or on system suspend/resume To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/beanstalkd/+bug/1263808/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs