Re: [lttng-dev] [PATCH lttng-ust] Fix: destructors do not run on probe provider dlclose

2018-02-22 Thread Mathieu Desnoyers
- On Feb 21, 2018, at 5:10 PM, Francis Deslauriers francis.deslauri...@efficios.com wrote: > Calling dlclose on a probe provider library does not unregister the > probes from the callsites as the destructors are not executed. please specify that this is only true for the first shared object

[lttng-dev] [PATCH lttng-ust] Fix: destructors do not run on probe provider dlclose

2018-02-21 Thread Francis Deslauriers
Calling dlclose on a probe provider library does not unregister the probes from the callsites as the destructors are not executed. The __tracepoints__disable_destructors weak symbol was exposed by probe providers, liblttng-ust.so and liblttng-ust-tracepoint.so libraries. If a probe provider was