https://bugs.lttng.org/https://bugs.lttng.org/themes/lttng/favicon/a.ico?14249722912019-10-03T16:38:32ZLTTng bugs repositoryLTTng-UST - Bug #1200: Preloading both ust-fd and ust-fork will endup in deadlock situation after fork()https://bugs.lttng.org/issues/1200?journal_id=34862019-10-03T16:38:32ZMathieu Desnoyersmathieu.desnoyers@efficios.com
<ul></ul><p>Please provide a small reproducer with instructions on how to launch it.</p>
<p>Thanks,</p>
<p>Mathieu</p> LTTng-UST - Bug #1200: Preloading both ust-fd and ust-fork will endup in deadlock situation after fork()https://bugs.lttng.org/issues/1200?journal_id=34882019-10-03T19:58:59ZTai Dinh
<ul></ul><p>Mathieu Desnoyers wrote:</p>
<blockquote>
<p>Please provide a small reproducer with instructions on how to launch it.</p>
<p>Thanks,</p>
<p>Mathieu</p>
</blockquote>
<p>Hi Mathieu,</p>
<p>You can use the same program provided at <a class="issue tracker-1 status-5 priority-5 priority-high2 closed" title="Bug: close() implementation of ust-fd is not async-signal-safe causing child processes to hang forever... (Resolved)" href="https://bugs.lttng.org/issues/1199">#1199</a>.<br />For the child part, you even don't need to do anything since the fault happens even before that section of child code can be executed, i.e: inside ust_after_fork_child.</p>
<p>/Tai</p> LTTng-UST - Bug #1200: Preloading both ust-fd and ust-fork will endup in deadlock situation after fork()https://bugs.lttng.org/issues/1200?journal_id=35092019-10-07T16:30:06ZMathieu Desnoyersmathieu.desnoyers@efficios.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Fix: Lock FD tracker across fork If fork() is performed while other threads are holding the fd t..." href="https://bugs.lttng.org/projects/lttng-ust/repository/lttng-ust/revisions/c1be081a2f016fb6dcaef1d471389ede3aa00103">lttng-ust|c1be081a2f016fb6dcaef1d471389ede3aa00103</a>.</p>