[avahi] Re: ** ERROR **: file dbus-protocol.c: line 814
(service_resolver_callback): assertion failed: (host_name)
Sebastien Estienne
sebastien.estienne at gmail.com
Sat Jul 30 08:25:57 EST 2005
it seems that it's the folowing service as it can resolve quux.local
that make the deamon exiting.
<service>
<type>_telnet._tcp</type>
<domain-name>local</domain-name>
<host-name>quux.local</host-name>
<port>23</port>
<txt-record>foo=bar</txt-record>
<txt-record>waldo=buzz</txt-record>
<txt-record>another=record</txt-record>
</service>
2005/7/30, Sebastien Estienne <sebastien.estienne at gmail.com>:
> when i run avahi-dump-all, it starts dumping the zeroconf host/service
> and then timeout, at the same time the deamon exit with on an
> assert(host_name) in service_resolver_callback
>
> sebest at xenon:~/svn/avahi/avahi-utils $ ./avahi-dump-all
> Browsing domain 'local' on -1.0 ...
> Browsing for services of type '_ssh._tcp' in domain 'local' on 2.2 ...
> Browsing for services of type '_telnet._tcp' in domain 'local' on 2.2 ...
> Browsing for services of type '_workstation._tcp' in domain 'local' on 2.2 ...
> Browsing for services of type '_sftp-ssh._tcp' in domain 'local' on 2.2 ...
> Found service 'Remote Terminal on xenon' of type '_ssh._tcp' in domain
> 'local' on 2.2.
> Found service 'Remote Terminal on xenon' of type '_telnet._tcp' in
> domain 'local' on 2.2.
> Found service 'xenon [00:0a:e4:24:10:7f]' of type '_workstation._tcp'
> in domain 'local' on 2.2.
> Found service 'Mini' of type '_ssh._tcp' in domain 'local' on 2.2.
> Found service 'Mini [00:0d:93:7a:d4:48]' of type '_workstation._tcp'
> in domain 'local' on 2.2.
> Service data for service 'Remote Terminal on xenon' of type
> '_ssh._tcp' in domain 'local' on 2.2:
> Host xenon.local (172.16.200.192), port 22, TXT data: []
> Found service 'Mini' of type '_sftp-ssh._tcp' in domain 'local' on 2.2.
> Service data for service 'xenon [00:0a:e4:24:10:7f]' of type
> '_workstation._tcp' in domain 'local' on 2.2:
> Host xenon.local (172.16.200.192), port 9, TXT data: []
> Service data for service 'Mini' of type '_ssh._tcp' in domain 'local' on 2.2:
> Host Mini.local (172.16.200.102), port 22, TXT data: ['']
> Service data for service 'Mini [00:0d:93:7a:d4:48]' of type
> '_workstation._tcp' in domain 'local' on 2.2:
> Host Mini.local (172.16.200.102), port 9, TXT data: ['']
> Service data for service 'Mini' of type '_sftp-ssh._tcp' in domain
> 'local' on 2.2:
> Host Mini.local (172.16.200.102), port 22, TXT data: ['']
> Error: Message did not receive a reply (timeout by message bus)
> sebest at xenon:~/svn/avahi/avahi-utils $
>
>
> (gdb) run
> Starting program: /usr/bin/avahi-daemon
> Process 31208 died: No such process; removing PID file.
> (/var/run/avahi-daemon//pid)
> Found user 'avahi' (UID 109) and group 'avahi' (GID 115).
> Successfully dropped root privileges.
> New relevant interface eth0.2 (#2)
> Enumeration complete
> Loading service file /etc/avahi/services/example.service
> Server startup complete. Host name is <xenon.local>
> Service "Remote Terminal on xenon"
> (/etc/avahi/services/example.service) successfully established.
> dbus: interface=org.freedesktop.Avahi.Server,
> path=/org/freedesktop/Avahi/Server, member=ServiceTypeBrowserNew
> dbus: interface=org.freedesktop.Avahi.Server,
> path=/org/freedesktop/Avahi/Server, member=DomainBrowserNew
> dbus: interface=org.freedesktop.Avahi.Server,
> path=/org/freedesktop/Avahi/Server, member=ServiceBrowserNew
> dbus: interface=org.freedesktop.Avahi.Server,
> path=/org/freedesktop/Avahi/Server, member=ServiceBrowserNew
> dbus: interface=org.freedesktop.Avahi.Server,
> path=/org/freedesktop/Avahi/Server, member=ServiceBrowserNew
> dbus: interface=org.freedesktop.Avahi.Server,
> path=/org/freedesktop/Avahi/Server, member=ResolveService
> dbus: interface=org.freedesktop.Avahi.Server,
> path=/org/freedesktop/Avahi/Server, member=ResolveService
> dbus: interface=org.freedesktop.Avahi.Server,
> path=/org/freedesktop/Avahi/Server, member=ServiceBrowserNew
> dbus: interface=org.freedesktop.Avahi.Server,
> path=/org/freedesktop/Avahi/Server, member=ResolveService
> dbus: interface=org.freedesktop.Avahi.Server,
> path=/org/freedesktop/Avahi/Server, member=ResolveService
> dbus: interface=org.freedesktop.Avahi.Server,
> path=/org/freedesktop/Avahi/Server, member=ResolveService
> dbus: interface=org.freedesktop.Avahi.Server,
> path=/org/freedesktop/Avahi/Server, member=ResolveService
>
> ** ERROR **: file dbus-protocol.c: line 814
> (service_resolver_callback): assertion failed: (host_name)
> aborting...
>
> Program received signal SIGTRAP, Trace/breakpoint trap.
> 0xb7e48978 in g_logv () from /usr/lib/libglib-2.0.so.0
> (gdb) bt
> #0 0xb7e48978 in g_logv () from /usr/lib/libglib-2.0.so.0
> #1 0xb7e48c1e in g_log () from /usr/lib/libglib-2.0.so.0
> #2 0xb7e48c8a in g_assert_warning () from /usr/lib/libglib-2.0.so.0
> #3 0x08050c68 in service_resolver_callback (r=0x8062f78,
> interface=105, protocol=2 '\002', event=AVAHI_RESOLVER_FOUND,
> name=0x8061420 "Remote Terminal on xenon", type=0x80639f0
> "_telnet._tcp", domain=0x8061e00 "local", host_name=0x0, a=0x0,
> port=0,
> txt=0x0, userdata=0x805f580) at dbus-protocol.c:814
> #4 0xb7e12d1e in finish (r=0x8062f78, event=AVAHI_RESOLVER_TIMEOUT)
> at resolve-service.c:119
> #5 0xb7e007c1 in dispatch_func (source=0x805aeb0, callback=0,
> user_data=0x0) at timeeventq.c:119
> #6 0xb7e3f86e in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
> #7 0xb7e42876 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
> #8 0xb7e42b63 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
> #9 0x0804cab4 in main (argc=1, argv=0xbfe2f284) at main.c:538
> (gdb)
>
>
> --
> Sebastien Estienne
>
--
Sebastien Estienne
More information about the avahi
mailing list