Ticket #96 (closed defect: fixed)
locked mutex destroyed in dns-sd compat code
| Reported by: | Lurchi | Owned by: | lennart |
|---|---|---|---|
| Milestone: | Avahi 0.6.17 | Component: | avahi-compat-libdns_sd |
| Keywords: | Cc: |
Description
according to pthread_mutex_destroy(3p): "It shall be safe to destroy an initialized mutex that is unlocked. Attempting to destroy a locked mutex results in undefined behavior."
This may be causing some bugs (have seen some crashes) in the compat code. At least the "DNSServiceProcessResult(...)" function is affected.
Call graph: finish: sdref_unref() sdref_free() pthread_mutex_destroy() -> return, pthread_mutex_unlock()
Oh, and pthread_mutex_unlock uses sdref, which is freed in sdref_free() ...
Change History
Note: See
TracTickets for help on using
tickets.
