<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><span id="zwchr" data-marker="__DIVIDER__">---- On Feb 11, 2016, at 9:01 AM, Sean Heelan <seanheelan@gmail.com> wrote:<br></span></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr">Hi all,<br><div>I am running a target within a Docker instance, and tracing function execution using the latest LTTng release (2.7). The commands I am issuing look as follows:</div><br><div>----<br></div><div><div>lttng create cc_session -o bla</div><div>lttng enable-event --userspace lttng_ust_cyg_profile:func_entry</div><div>lttng start</div><br><div>LD_PRELOAD=liblttng-ust-cyg-profile.so target</div><br><div>lttng stop</div><div>lttng destroy</div><div>----</div></div><br><div>When the target is executed it aborts with the following error:</div><br><div>----</div><div>php: lttng-ust-comm.c:1582: lttng_ust_init: Assertion `!ret' failed.<br></div><div>----</div><br><div>If I rerun the command it then works fine. In fact, simply doing the following within the Docker container demonstrates the issue:</div><br><div>----</div><div><div>LD_PRELOAD=liblttng-ust-cyg-profile.so ls</div><div>LD_PRELOAD=liblttng-ust-cyg-profile.so ls</div></div><div>----</div><br><div>The first 'ls' will fail at the same point mentioned above, while the second will succeed. Off the top of my head I'm struggling to come up with an explanation as to what impact the first execution using LD_PRELOAD would have on the second. Does it impact a shared lib cache in some way, which I'm unaware of?</div><br><div>Any assistance would be appreciated!</div></div></blockquote><div>It appears that sem_timedwait() returns an unexpected error.<br></div><div><br data-mce-bogus="1"></div><div>Can you add a ERROR("sem_timedwait"); just before the assert at line 1582 in your liblttng-ust/lttng-ust-comm.c<br></div><div>and show us the output ?<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Also, what is the value of your LTTNG_UST_REGISTER_TIMEOUT env. var. ?<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Thanks,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Mathieu<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div><br>Sean</div><br><br></div><br>_______________________________________________<br>lttng-dev mailing list<br>lttng-dev@lists.lttng.org<br>http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev<br></blockquote></div><div><br></div><div data-marker="__SIG_POST__">-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com</div></div></body></html>