[avahi] program keeps crashing on avahi_entry_group_add_service_strlst()

Lennart Poettering lennart at poettering.net
Mon Mar 8 10:23:19 PST 2010

On Mon, 08.03.10 12:19, ecforu (ecforusers at gmail.com) wrote:

>          ret = avahi_entry_group_add_service_strlst(group, AVAHI_IF_UNSPEC,
>                AVAHI_PROTO_UNSPEC, 0, serviceName, regType, domain, host,
> port, txt);

So, where is the code where you initialize the txt string list?

> 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.

Looks as if you are passing an invalid txt string list there.

Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4

More information about the avahi mailing list