<div dir="ltr">Hi Hannes,<div><br></div><div>Thanks for reporting this issue! Philippe has submitted two patches which are now merged in both master and stable-2.6 [1][2].</div><div><br></div><div>Let us know if the problem persists,</div><div>Jérémie</div><div><br></div><div><div>[1] <a href="https://github.com/lttng/lttng-tools/commit/9ae17e21d5de3a709182f11eaba3ba175ee0c432">https://github.com/lttng/lttng-tools/commit/9ae17e21d5de3a709182f11eaba3ba175ee0c432</a><br></div><div>[2] <a href="https://github.com/lttng/lttng-tools/commit/44603c80f2e1ce55b6237a02810de8e7fc1687d4">https://github.com/lttng/lttng-tools/commit/44603c80f2e1ce55b6237a02810de8e7fc1687d4</a><br></div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 25, 2015 at 10:37 AM, Hannes Weisbach <span dir="ltr"><<a href="mailto:hannes.weisbach@mailbox.tu-dresden.de" target="_blank">hannes.weisbach@mailbox.tu-dresden.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">><br>
> Why do you need to load those explicitly ? They should be<br>
> already loaded by default. I don't get those errors here.<br>
> Which shell are you using (sh symlink) ? Can you reproduce<br>
> using bash ?<br>
</span>Ok. Found the bug. In append_list_to_probes() index is used to get<br>
the current index into the probes array. However in the loop, index<br>
is never incremented. Therefore, the first entry of probes is<br>
overwritten, but nr_probes is incremented, and later those "empty"<br>
entries are referenced.<br>
<br>
There is also a memory leak in append_list_to_probes():<br>
<br>
tmp_list = strdup(list); // uses malloc()<br>
next = strtok(tmp_list, ","); // tmp_list needs to be NULL except in the first iteration<br>
tmp_list = NULL; // so set it NULL<br>
free(tmp_list); // good intention, does not work.<br>
<br>
Best regards,<br>
Hannes<br>
<br>_______________________________________________<br>
lttng-dev mailing list<br>
<a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
<a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Jérémie Galarneau<br>EfficiOS Inc.<br><a href="http://www.efficios.com" target="_blank">http://www.efficios.com</a></div>
</div>