FS#50797 - [libcups] 2.2.0-1 causes high CPU load of samba

Attached to Project: Arch Linux
Opened by Vladimir (_v_l) - Friday, 16 September 2016, 07:01 GMT
Last edited by Jan de Groot (JGC) - Monday, 19 September 2016, 14:06 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

I'm using Archlinux x86_64 and testing repos. After today upgrade and reboot of the system I noticed that samba and gnome-settings-daemon (run by a user) are loading CPU very high, both load two cores (I have i5 2410M, two cores with HT, so 4 "virtual" cores). Only downgrading of cups package (cups and libcups) to ver. 2.1.4-2 helps.

Not sure, if this is somehow related with  FS#50796 , but downgrading helps.

Additional info:
gnome-settings-daemon: 3.20.1+8+g40bf4fd-1
samba: 4.5.0-2
cups, libcups (affected version): 2.2.0-1
cups, libcups ("working" version): 2.1.4-2

Steps to reproduce:
Start samba, use top or htop to check the CPU load.
This task depends upon

Closed by  Jan de Groot (JGC)
Monday, 19 September 2016, 14:06 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#50796 
Comment by Vladimir (_v_l) - Friday, 16 September 2016, 07:15 GMT
Not sure if this problem of CUPS
https://github.com/apple/cups/issues/4870
is related to mine but it looks somehow similar (infinite loop, I tried run gnome-settings-daemon under strace and saw many connections, also I tried to connect with the help of gdb to samba process that eats most of CPU power and saw 'setsockopt->httpAddrConnect2->httpReconnect2...').
Comment by Vladimir (_v_l) - Friday, 16 September 2016, 07:43 GMT
However, almost the same configuration (libcups 2.2.0-1, samba 4.5.0-2, gnome-settings-daemon 3.20.1+8+g40bf4fd-1) works fine in VM running by qemu.

To trigger the same behavior (CPU load) I have to comment line
printcap name = /etc/printcap
in /etc/samba/smb.conf and restart the service.
Comment by Andreas Radke (AndyRTR) - Friday, 16 September 2016, 17:26 GMT
This is more a bug in cups-filters. Downgrading to cups-filters 1.11.2 seems to work well with cups 2.2.0 here. Upgrading to cups-filters 1.11.3 causes the load here.
Comment by Vladimir (_v_l) - Saturday, 17 September 2016, 17:09 GMT
I'm not sure about cups-filters. As I reported I have VM run by qemu with samba and libcups (also cups-pk-helper) but not cups-filters and samba process loads CPU at maximum when has
printcap name = /etc/printcap
commented out in /etc/samba/smb.conf.

Loading...