Ticket #277 (closed defect: lackofresponse)

Opened 4 years ago

Last modified 3 years ago

segfault if avahi isn't running

Reported by: alfille Owned by: lennart
Milestone: Avahi 0.6.26 Component: avahi-client
Keywords: Cc:

Description

I use Avahi in owfs -- the 1-wire file viewer (www.owfs.org)

Basically I use the client_publish_service.c with minor changes for my program. It works find if the avahi deamon is running, but segfaults at aas.client = avahi_client_new(avahi_simple_poll_get(aas.poll), 0, client_callback, (void *)(&aas), &error); when the deamon is not running.

Note this is even after avahi_simple_poll_new returned a non-NULL poll handle.

I guess I need a safe way to test if the avahi deamon is running.

Change History

Changed 4 years ago by lennart

No, normally avahi_client_new() should fail cleanly if Avahi is not running.

Please provide a backtrace or provide me with a simple test case that I can use to reproduce this.

Changed 3 years ago by lennart

  • status changed from new to closed
  • resolution set to lackofresponse
  • milestone set to Avahi 0.6.26

Closing due to lack of response.

Note: See TracTickets for help on using tickets.