-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GIT commit f50db552 "Revive CUPS_PRINTER_DISCOVERED for cupsEnumDests." causes libcups to segfault #5022
Comments
gdb output of the core file generated by the "
|
Will investigate; Avahi's API is a lot more fragile than mDNSResponder so there might be a situation where we are double-freeing or doing something while Avahi is busy... |
I have found a fix now, patch attached: |
Looking are your proposed fix; might need some tweaking but looks reasonable on first glance... |
Tweaked and pushed... |
By bisecting the CUPS GIT repo I have found out that libcups segfaults from above-mentioned commit on.
The command causing the segfault and used for the bisection tests is
lpstat -e
Other lpstat calls segfaultet at me, too.
In addition, with a faulty libcups also GNOME (of Ubuntu Zesty and Artful) gets unstable and crashes from time to time.
A quick way to get able to log in with GNOME again is to re-install the libcups provided by the distro
sudo apt install --reinstall libcups2
from a text console.
The crashes occurred also when building an Ubuntu/Debian package from the current GIT snapshot of CUPS and install this, to get the most correct CUPS installation for the Ubuntu environment. To get rid of the crashes one only needs to downgrade only /usr/lib/x86_64-linux-gnu/libcups.so.2 to any version before the commit mentioned above.
So the problem seems to be in the changes of the above-mentioned commit.
The text was updated successfully, but these errors were encountered: