Fix: fix deadlock with dlopen() lttng-ust
[lttng-ust.git] / liblttng-ust / lttng-ust-comm.c
index 44e8bab4c24ca4aa2a77b72727288c9b24c8e67d..fa184ad74270d50dfe29e45c3c0984a2b2d6c4b5 100644 (file)
@@ -832,6 +832,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.025216 seconds and 4 git commands to generate.