[avahi] program keeps crashing on avahi_entry_group_add_service_strlst()
ecforu
ecforusers at gmail.com
Mon Mar 8 09:19:40 PST 2010
I am writing a c program using the avahi api. Below is the code that is
generating the error.
owner->_client = avahi_client_new(avahi_threaded_poll_get(owner->_poll),
AVAHI_CLIENT_NO_FAIL, ClientCallback, owner, &error);
AvahiEntryGroup * group = avahi_entry_group_new(owner->_client,
EntryGroupCallback, owner);
if (!group)
{
fprintf(stderr, "avahi_entry_group_new() failed: %s\n",
avahi_strerror(avahi_client_errno(owner->_client)));
}
else
{
ret = avahi_entry_group_add_service_strlst(group, AVAHI_IF_UNSPEC,
AVAHI_PROTO_UNSPEC, 0, serviceName, regType, domain, host,
port, txt);
}
When I step through the last call in my program is
avahi_entry_group_add_service_strlst. Then I get the following stack dump
from dbus. I have also see this happen from the avahi_entry_group_new call
above. But if it makes it passed this one, it dies on the next one with the
same dbus stack trace.
#0 0xb7c176b6 in ?? () from /lib/libdbus-1.so.3
#1 0xb7c1709a in ?? () from /lib/libdbus-1.so.3
#2 0xb7c17111 in ?? () from /lib/libdbus-1.so.3
#3 0xb7c14d39 in ?? () from /lib/libdbus-1.so.3
#4 0xb7c1592e in ?? () from /lib/libdbus-1.so.3
#5 0xb7bffbf8 in ?? () from /lib/libdbus-1.so.3
#6 0xb7c01d98 in ?? () from /lib/libdbus-1.so.3
#7 0xb7c01ef2 in ?? () from /lib/libdbus-1.so.3
#8 0xb7c0f1f1 in dbus_pending_call_block () from /lib/libdbus-1.so.3
#9 0xb7c00e9a in dbus_connection_send_with_reply_and_block ()
from /lib/libdbus-1.so.3
is there anything I could be doing to cause this? Is this a known error
(with a potential fix) somewhere?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/avahi/attachments/20100308/9a4fe2ff/attachment.html>
More information about the avahi
mailing list