Fix: fix deadlock with dlopen() lttng-ust
[lttng-ust.git] / liblttng-ust / lttng-ust-comm.c
index 36f57efb25f4d97c31bcb04b7fd207f2807b9a8c..ba69f5fff35a84c14fa97e64de461957f634a37f 100644 (file)
@@ -827,6 +827,13 @@ void __attribute__((constructor)) lttng_ust_init(void)
        if (uatomic_xchg(&initialized, 1) == 1)
                return;
 
+       /*
+        * Fixup interdependency between TLS fixup mutex (which happens
+        * to be the dynamic linker mutex) and ust_lock, taken within
+        * the ust lock.
+        */
+       lttng_fixup_event_tls();
+
        /*
         * We want precise control over the order in which we construct
         * our sub-libraries vs starting to receive commands from
This page took 0.02376 seconds and 4 git commands to generate.