Ticket #276 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

If've got a ralink (RT2860) and if the interface is up w/o a connection to an accesspoint then avahi won't start

Reported by: teh Owned by: lennart
Milestone: Avahi 0.6.26 Component: avahi-daemon
Keywords: Cc:

Description

run with --debug

root@codapod:~# avahi-daemon --debug
Found user 'avahi' (UID 105) and group 'avahi' (GID 107).
Successfully dropped root privileges.
avahi-daemon 0.6.23 starting up.
WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Successfully called chroot().
Successfully dropped remaining capabilities.
chroot.c: chroot() helper started
chroot.c: chroot() helper got command 02
No service file found in /etc/avahi/services.
Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.61.70.
New relevant interface eth0.IPv4 for mDNS.
Network interface enumeration completed.
Registering new address record for fe80::222:43ff:fe6f:3f29 on ra0.*.
Registering new address record for fe80::224:8cff:fed0:bc17 on eth0.*.
Registering new address record for 192.168.61.70 on eth0.IPv4.
Server startup complete. Host name is codapod.local. Local service cookie is 4210828135.
Registering HINFO record with values 'I686'/'LINUX'.
Received conflicting record [codapod.local	IN	AAAA fe80::224:8cff:fed0:bbd4 ; ttl=120] with local record to be. Withdrawing.
Withdrawing address record for fe80::222:43ff:fe6f:3f29 on ra0.
Withdrawing address record for 192.168.61.70 on eth0.
avahi-daemon: registering [codapod.local]: server.c:1110: avahi_server_decrease_host_rr_pending: Assertion `s->n_host_rr_pending > 0' failed.
chroot.c: chroot() helper exiting with return value 0
Aborted

gdb backtrace

(gdb) r
Starting program: /usr/sbin/avahi-daemon --debug
[Thread debugging using libthread_db enabled]
Process 7088 died: No such process; trying to remove PID file. (/var/run/avahi-daemon//pid)
[New Thread 0xb7d2f940 (LWP 7586)]
Found user 'avahi' (UID 105) and group 'avahi' (GID 107).
Successfully dropped root privileges.
avahi-daemon 0.6.23 starting up.
chroot.c: chroot() helper started
WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Successfully called chroot().
Successfully dropped remaining capabilities.
chroot.c: chroot() helper got command 02
No service file found in /etc/avahi/services.
Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.61.70.
New relevant interface eth0.IPv4 for mDNS.
Network interface enumeration completed.
Registering new address record for fe80::222:43ff:fe6f:3f29 on ra0.*.
Registering new address record for fe80::224:8cff:fed0:bc17 on eth0.*.
Registering new address record for 192.168.61.70 on eth0.IPv4.
Server startup complete. Host name is codapod.local. Local service cookie is 1702357597.
Registering HINFO record with values 'I686'/'LINUX'.
Received conflicting record [codapod.local	IN	AAAA fe80::224:8cff:fed0:bbd4 ; ttl=120] with local record to be. Withdrawing.
Withdrawing address record for fe80::222:43ff:fe6f:3f29 on ra0.
Withdrawing address record for 192.168.61.70 on eth0.
on: registering [codapod.local]: server.c:1110: avahi_server_decrease_host_rr_pending: Assertion `s->n_host_rr_pending > 0' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb7d2f940 (LWP 7586)]
0xb7f6c430 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7f6c430 in __kernel_vsyscall ()
#1  0xb7d7b6d0 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7d7d098 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7d745ce in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4  0xb7f2e84d in avahi_server_decrease_host_rr_pending (s=0x1da2) at server.c:1110
#5  0xb7f2c149 in avahi_hw_interface_update_rrs (hw=0x8c91818, remove_rrs=1) at iface.c:155
#6  0xb7f2c4a4 in avahi_interface_monitor_update_rrs (m=0x0, remove_rrs=1) at iface.c:168
#7  0xb7f2ed54 in withdraw_host_rrs (s=0x8c7fc98) at server.c:1103
#8  0xb7f2f0a5 in avahi_host_rr_entry_group_callback (s=0x8c7fc98, g=0x6, state=AVAHI_ENTRY_GROUP_COLLISION, userdata=0x0) at server.c:1126
#9  0xb7f318b2 in avahi_s_entry_group_change_state (g=0x8c94170, state=AVAHI_ENTRY_GROUP_COLLISION) at entry.c:1039
#10 0xb7f2e0b9 in withdraw_rrset (s=0x8c7fc98, key=<value optimized out>) at server.c:175
#11 0xb7f30ca7 in mcast_socket_event (w=0x8c7de70, fd=12, events=<value optimized out>, userdata=0x8c7fc98) at server.c:330
#12 0xb7f5ccfb in avahi_simple_poll_dispatch (s=0x8c7d5e0) at simple-watch.c:577
#13 0xb7f5d33c in avahi_simple_poll_iterate (s=0x8c7d5e0, timeout=-1) at simple-watch.c:597
#14 0x0804f762 in main (argc=2, argv=Cannot access memory at address 0x1da6
) at main.c:1078

Change History

Changed 3 years ago by lennart

  • status changed from new to closed
  • resolution set to duplicate

Duplicate of #302

Changed 3 years ago by oc3an

Hi lennart,

I don't think it is correct to mark this as a duplicate. #302 is a patch for a bug I introduced by accident against v0.6.25.

This bug report is against v0.6.23 and I think it is a different problem.

-Patrick

Changed 3 years ago by lennart

  • status changed from closed to reopened
  • resolution duplicate deleted

Changed 3 years ago by lennart

  • status changed from reopened to closed
  • resolution set to fixed
  • milestone set to Avahi 0.6.26

Ok, just commited a fix that should fix this issue for good.

Note: See TracTickets for help on using tickets.