Bug 5788 - avahi-daemon refuses to start in clanton with 3.8 kernel
Summary: avahi-daemon refuses to start in clanton with 3.8 kernel
Status: RESOLVED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: connectivity (show other bugs)
Version: unspecified
Hardware: Other Multiple
: Undecided normal
Target Milestone: ---
Assignee: Cristian Iorga
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-02-05 10:55 UTC by Jukka Rissanen
Modified: 2014-02-05 14:30 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jukka Rissanen 2014-02-05 10:55:03 UTC
avahi-daemon refuses to start in 3.8 kernel found in clanton because SO_REUSEPORT socket option is missing. It seems that the symbol was found during compilation but it was not found at runtime. SO_REUSEPORT is available only in kernel 3.9 onwards.

A workaround is to set disallow-other-stacks=yes to /etc/avahi/avahi-daemon.conf which prevents the call to setsockopt(SO_REUSEPORT)
Comment 1 Cristian Iorga 2014-02-05 11:08:36 UTC
Investigation against master started.
Comment 2 Cristian Iorga 2014-02-05 11:57:39 UTC
Fixed in master.
Comment 3 Cristian Iorga 2014-02-05 14:30:26 UTC
Normal start for avahi-daemon:

cat /var/log/syslog
......
Feb  5 14:18:26 qemux86-64 avahi-daemon[808]: Found user 'avahi' (UID 999) and group 'avahi' (GID 998).
Feb  5 14:18:26 qemux86-64 avahi-daemon[808]: Successfully dropped root privileges.
Feb  5 14:18:26 qemux86-64 avahi-daemon[808]: avahi-daemon 0.6.31 starting up.
Feb  5 14:18:26 qemux86-64 avahi-daemon[808]: Successfully called chroot().          
Feb  5 14:18:26 qemux86-64 avahi-daemon[808]: Successfully dropped remaining capabilities.
Feb  5 14:18:27 qemux86-64 avahi-daemon[808]: Loading service file /services/sftp-ssh.service.
Feb  5 14:18:27 qemux86-64 avahi-daemon[808]: Loading service file /services/ssh.service.
Feb  5 14:18:27 qemux86-64 avahi-daemon[808]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.7.2.
Feb  5 14:18:27 qemux86-64 avahi-daemon[808]: New relevant interface eth0.IPv4 for mDNS.
Feb  5 14:18:27 qemux86-64 avahi-daemon[808]: Network interface enumeration completed.
Feb  5 14:18:27 qemux86-64 avahi-daemon[808]: Registering new address record for fe80::5054:ff:fe12:3456 on eth0.*.
Feb  5 14:18:27 qemux86-64 avahi-daemon[808]: Registering new address record for 192.168.7.2 on eth0.IPv4.
Feb  5 14:18:27 qemux86-64 avahi-daemon[808]: Registering HINFO record with values 'X86_64'/'LINUX'.
Feb  5 14:18:27 qemux86-64 avahi-daemon[808]: Server startup complete. Host name is qemux86-64.local. Local service cookie is 1084014301.
Feb  5 14:18:28 qemux86-64 cupsd: Unknown SystemGroup "lpadmin sys root" on line 20 of /etc/cups/cups-files.conf.
Feb  5 14:18:28 qemux86-64 cupsd: Unable to read "/etc/cups/cups-files.conf" due to errors.
Feb  5 14:18:28 qemux86-64 crond[833]: (CRON) STARTUP (1.4.11)
Feb  5 14:18:28 qemux86-64 crond[833]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 21% if used.)
Feb  5 14:18:28 qemux86-64 avahi-daemon[808]: Service "qemux86-64" (/services/ssh.service) successfully established.
Feb  5 14:18:28 qemux86-64 avahi-daemon[808]: Service "qemux86-64" (/services/sftp-ssh.service) successfully established.
....

ps aux | grep avahi

avahi      808  0.0  0.7  32220  1752 ?        S    14:18   0:00 avahi-daemon: running [qemux86-64.local]
avahi      809  0.0  0.1  32092   444 ?        S    14:18   0:00 avahi-daemon: chroot helper
root       926  0.0  0.2   4408   608 pts/0    S+   14:32   0:00 grep avahi